0 penilaian0% menganggap dokumen ini bermanfaat (0 suara)
121 tayangan2 halaman
The document contains questions about C programming concepts. It asks to:
1. Explain the program life cycle and terms like preprocessor, compiler, linker, loader in 1-2 sentences.
2. Compare machine language to assembly language in 1 sentence.
3. Explain 4GL in 1 sentence.
4. Provide short answers and explanations for concepts like the comma operator, lvalue and rvalue with examples, sentinel values, and code snippets.
5. Write a short note about the int datatype.
6. Explain concepts like binary search, scanset, stdin stdout stderr, extern and static with examples.
7. Provide output or errors for code snippets using concepts
The document contains questions about C programming concepts. It asks to:
1. Explain the program life cycle and terms like preprocessor, compiler, linker, loader in 1-2 sentences.
2. Compare machine language to assembly language in 1 sentence.
3. Explain 4GL in 1 sentence.
4. Provide short answers and explanations for concepts like the comma operator, lvalue and rvalue with examples, sentinel values, and code snippets.
5. Write a short note about the int datatype.
6. Explain concepts like binary search, scanset, stdin stdout stderr, extern and static with examples.
7. Provide output or errors for code snippets using concepts
Hak Cipta:
Attribution Non-Commercial (BY-NC)
Format Tersedia
Unduh sebagai DOC, PDF, TXT atau baca online dari Scribd
The document contains questions about C programming concepts. It asks to:
1. Explain the program life cycle and terms like preprocessor, compiler, linker, loader in 1-2 sentences.
2. Compare machine language to assembly language in 1 sentence.
3. Explain 4GL in 1 sentence.
4. Provide short answers and explanations for concepts like the comma operator, lvalue and rvalue with examples, sentinel values, and code snippets.
5. Write a short note about the int datatype.
6. Explain concepts like binary search, scanset, stdin stdout stderr, extern and static with examples.
7. Provide output or errors for code snippets using concepts
Hak Cipta:
Attribution Non-Commercial (BY-NC)
Format Tersedia
Unduh sebagai DOC, PDF, TXT atau baca online dari Scribd
1 Explain the program life cycle along with the terms : Preprocessor, [04] Compiler, Linker, Loader 2 Explain any three escape sequences. [03] 3 Compare machine language to assembly language. [03] 4 Explain 4GL. [02] Q.2 Do as directd. [12] A Answer the TWO [04] 1 Explain comma operator. 2 Explain lvalue and rvalue with example. 3 Explain sentinel value. B Answer the following [04] 1 -17%5 and -17%-5 produce same results. True/False 2 printf(“%#6x”,1234) prints 0X4D2 on screen. True/False 3 Represent -8.375X10-3 in IEEE single-precision format.
C Give output/error of following code [04]
1 void main( ) 2 void main( ) { double d = 1/2.0 – 1/2; { int i = 9; printf(“d = %.2lf”,d); i=printf(“clever”)+printf(“student”); } printf(“%d”,i); } 3 void main( ) 4 void main( ) { int x = 20, y = 35; { char s1[]=”manas”; x = y++ + x++; char s2[]=”ghosh”; y = ++y + ++x; s1 = s2; printf(“x=%d y=%d”,x,y); printf(“%c”,toupper(s1[1])); } } OR C Write a short note about int datatype. [04] Q.3 Answer any THREE. [12] A Explain binary search along with a C program. [09] B Explain scanset in detail with suitable examples. C Explain stdin, stdout and stderr. Also show their usage with fprintf and fscanf. D Explain extern and static storage classes along with their scope and extent. E Explain the concept and working of recusion. F Give Output/error: [03] 1 static int f(int val) 2 void f(int _) { { static int sum; int j; sum += val; j = _-- + ++_ - _/2; return sum; printf("%d %d",_,j); } } void main() { void main() int i,n=9; { for(i=1;i<n--;i++) f(9); f(i*2); } printf("%d",f(0)); }
Q.4 Do as directed. [12]
A Explain pointer to function with suitable example. B Explain calloc, realloc, dangling pointer with suitable example. C Explain and differentiate between array-of-pointer and pointer-of-an-array with example. D Give Output/error: 1 void main() 2 void main() { { int a={1,2,3,4,5,6}; int a[]={1,2,3,4,5,6,7,8,9,10}; int *ptr = a+2; printf(“%d”,((a+9)+(a+1))); printf("%d %d",*++a,--*ptr); } } Q.5 Do as directed [12] A Explain enum with suitable examples. B Explain bitfields with suitable examples. C Explain fseek, ftell, rewind with suitable example. D Explain any three bitwise operators.