1. What is the only function all C programs must contain?
2. char* buf[100]; strcpy(buf, argv[1]); Which security risk is this code vulnerable to?
3. Which one is NOT a reserved keyword?
4. A C variable can start with a digit as well a letter.
5. Function Overloading is not supported in C.
6. How can you make an infinite loop in C?
7. #ifdef __APPLE__ # include <dir/x.h> #else # include <other_dir/x.h> #endif What does it mean?
8. What is i after the following block of code is executed : int i; i = 10/5/2/1;
9. What will be the output of: #include void main() { char a[6] = 'Hello'; printf('%d', sizeof(a)); }
10. What is the value of the variable x? int x; x = 32 / 64;
11. What does 'int *p = malloc(2);' do?
12. If we pass an array as an argument of a function, what exactly get passed?
13. In C, a block is defined by...
14. int tab[3] = {0,1,2}; int i = 0; tab[++i] == ?
15. In C language, && is a
16. int i = 17 / 3; what is the value of i ?
17. Is C Object Oriented?
18. Which special symbols are allowed in a variable name?
19. int *a, b; What is b ?
20. Which is the correct operator to compare two integer variables?
21. which of these is not valid keyword?
22. Following is not a predefined variable type?
23. The end of a C statement is indicated by this character.
24. The system function longjmp() can be used to return execution control to any user-specified point in the active function call tree.
25. Output of this Program? #include struct Data{ char a; char *data; int value; }; main() { printf('%d\n',sizeof(struct Data)); }
26. What is the value of p in int a,b,*p; p=&a; b=**p; printf('%d',p);
27. Will this loop terminate? int x=10; while( x-- > 0 );
28. Which statement is true about double?
29. How can you access the first element of an array called 'arr'?
30. What are the different types of floating-point data in C ?
31. With: sizeof(char *) == 4 sizeof(char) == 1 What will sizeof(plop) for char plop[2][3] be?
32. foo[4] is equivalent of :
33. Output of the following code? char * str1 = 'abcd'; char * str2 = 'xyz'; if( str1 < str2 ) printf( '1' ); else printf( '2' );
34. Following code print? void *p = malloc(0); printf ('%d\n', p);
35. What is the value of 1 & 2?
36. stdarg.h defines?
37. Output of the following? (int)b * (float)a / (double)d * (long)c
38. To send an array as a parameter to function, which one is a right way:
39. What is the output of printf('%d\n', sizeof(long) / sizeof(int))?
40. The main() function can be called recursively.
41. Which one is not a bitwise operator ?
42. What will this code print out? #include void function(char *name) { name=NULL; } main() { char *name='ELANCE'; function(name); printf('%s',name); }
43. What does malloc(0) return?
44. The operator used to get value at address stored in a pointer 'p' is :
45. #include int main(){ int a=0; #if (a==0) printf('Equal'); #else if printf('Not equal'); #endif return 0; } Output of above program is:
46. For a pointer to a 3 dimensional array (*foo)[2][3][4], how many calls to malloc do you need at least to allocate its contents?
47. Output of the Program : int main() { int i,j; i=1,2,3; j=(1,2,3); printf('%d %d',i,j); return 0; }
48. memmove() is safer than memcpy() when it comes to the location of its arguments.
49. Following code? #include int main(){ int x=25; if(!!x) printf('%d',!x); else printf('%d',x); return 0; }
50. Which function is a System Call?
51. Output if you will execute following code? #include int main(){ float a=0.5, b=0.9; if(a&&b>0.9) printf('Sachin'); else printf('Rahul'); return 0; }
52. The following program: #include int main(){ int a,b; a= -3 - - 25; b= -5 - (- 29); printf('a= %d b=%d', a, b); return 0; }
53. In C ....
54. C99 standard guarantees uniqueness of ____ characters for internal names.
55. Following is the correct way of initializing a two-dimensional array?
56. Following statements are correct for the keyword register?
57. Output of the following code snippet? main( ) { char *str[ ] = { 'Manish' 'Kumar' 'Choudhary' }; printf ( '\nstring1 = %s', str[0] ); printf ( '\nstring2 = %s', str[1] ); printf ( '\nstring3 = %s', str[2] ); }
58. This code snippet? int Recur(int num) { if(num==1 || num==0) return 1; if(num%2==0) return Recur(num/2)+2; else return Recur(num-1)+3; } int main() { int a=9; printf('%d\n', Recur(a)); return 0; }
59. Read the following two declaration statements. 1. #include 2. #include 'stdio.h' Which of the following statements pertaining to the above two statements are correct?
60. Following code where num is an integer array and n is the length of the array: for(i=0;i num[j]) { var=num[i]; num[i]=num[j]; num[j]=var; } } } What does the above code do?
61. Given the following array declaration: int a[2][3][4] what would be the number of elements in array a?
62. Which file modes would mean read + append?
63. Which header file are methods(or macros) isalpha(), islower() a part of?
64. Suppose there is a file a.dat which has to be opened in the read mode using the FILE pointer ptr1, what will be the correct syntax?
65. The following is not a storage type?
66. Following sets of conversion statements may result in the loss of data?
67. Which function allocates memory and initializes elements to 0?
68. Which function will you use to position the file pointer at the beginning of the file?
69. Which function will convert a string into an integer?
70. Output as a result of the following code snippet? void main() { int i,j,k; i=4; j=30; k=0; k=j++/i++; ++k; printf('%d %d %d',i,j,k); }
71. What does the argv[0] represent?
72. Following is a function for formatting data in memory?
73. The following code snippet? main() { int n=5, x; x = n++; printf('%d ', x); x = ++n; printf('%d ', x++); printf('%d', x); return 0; }
74. Following program, assuming that data type short takes 2 bytes for storage? struct node { unsigned char bit1 : 1; unsigned char bit2 : 1; unsigned short bit3 : 7; } node1; main() { int size = sizeof(node1); printf('%d', size); }
75. Following code snippet? main() { enum {red, green, blue = 6, white}; printf('%d %d %d %d', red, green, blue, white); return 0; }
76. Read the statement below: extern int a; Which statement/s pertaining to the above statement is/are correct?
77. Following function declaration? func(char c);
78. The declaration int *(*p)[10] indicates:
79. Following code snippet? main() { void addup (int b); addup(b); return 0; } int b = 5; void addup (int b) { static int v1; v1 = v1+b; printf('%d ', v1); }
80. The following code snippet? main() { char *pmessage = 'asdfgh'; *pmessage++; printf('%s', pmessage); return 0; }
81. Select the correct statement about arrays.
82. Following code snippet? void main() { char arr[] = {'R','A','M','\0'}; printf('%d',strlen(arr)); }
83. What happens when the continue keyword is encountered in the 'for loop'?
84. Given the following array: char books[][40]={ 'The Little World of Don Camillo', 'To Kill a Mockingbird', 'My Family and Other Animals', 'Birds, Beasts and Relatives' }; what would be the output of printf('%s',books[3]);?
85. Following code is executed? void main() { char arr1[] = 'REGALINT'; char *arr2; arr2 = arr1; printf('%d,',sizeof(arr1)); printf('%d',sizeof(arr2)); }
86. Output of the following code snippet? void main() { char arr1[] = 'REGALINT'; printf('%d,',strlen(arr1)); printf('%d',sizeof(arr1)); }
87. Which function will convert a string into a double precision quantity?
88. By which file function you can position the file pointer in accordance with the current position?
89. Output as a result of the following code snippet? #define Name Manish main() { printf('My name''Name'); }
90. Which is/are the correct signature/s of main with command line arguments?
91. Which statements will result in a compilation error?
92. Which is/are the type/s of memory allocation that needs/need the programmer to take care of memory management?
93. What is the function to concatenate two strings?
94. Following code snippet? #define max(a, b) ((a) > (b)?(a):(b)) main() { int a=4; float b=4.5; printf('%.2f\n',max(a, b)); }
95. Given the operators: 1) * 2) / 3) % What would be the order of precedence?
96. What will happen if you assign a value to an element of an array the subscript of which exceeds the size of the array?
97. Following code snippet? void main() { unsigned char a=25; a = ~a; signed char b = 25; b = ~b; printf('%d %d ', a, b); }
98. Which is not a file related function?
99. Which function will you use to write a formatted output to the file?
100. Given the array: int num[3][4]= { {3,6,9,12}, {15,25,30,35}, {66,77,88,99} }; what would be the output of *(*(num+1)+1)+1?
101. Output of the following code snippet? int funr(int x, int y) { if(x <= 0) { return y; } else { return (1+funr(x-1,y)); } } void main() { printf('%d',funr(2,3)); }
102. Given the following array: int a[8] = {1,2,3,4,5,6,7,0}; what would be the output of printf('%d',a[4]); ?
103. Following code snippet? void main() { int num1 = 30, num2 = 4; float result; result = (float)(num1/num2); printf('%.2f', result); return 0; }
104. Consider the following code. int i = 4, *j, *k; Which one of the following statements will not work?
105. What is wrong with the following statement? int func();
106. The declaration int (*p[5])() means:
107. Which statements is/are valid and correct? 1.char amessage[] = 'Imnop'; amessage++; 2.char *pmessage = 'abcde'; (*pmessage)++; 3.char amessage[] = 'lmnop'; (*amessage)++; 4.char *pmessage = 'abcde'; pmessage++;
108. What is the return value in case a file is not opened successfully by using fopen()?
109. Output as a result of the following code snippet? char *str1 = 'Hello World'; strcat(str1, '!'); printf('%s', str1);
110. Identify the incorrect statement.
111. Following code snippet? char i = 'A'; char *j; j = & i; *j = *j + 32; printf('%c',i);
112. Given the following array: char books[][40]={ 'The Little World of Don Camillo', 'To Kill a Mockingbird', 'My Family and Other Animals', 'Birds, Beasts and Relatives' }; what would be the output of printf('%c',books[2][5]);?
113. Which file header is to be included for file handling in a C program?
114. Which declarations of structures is/are valid? 1) struct node { int count; char *word; struct node next; }Node; 2) struct node { int count; char *word; struct node *next; }Node; 3) struct node { int count; char *word; union u1 { int n1; float f1; }U; }Node;
115. Following code snippet? int b = 5; main() { void addup (int b); int i; for(i=1; i<=5; i++) addup(1); return 0; } void addup (int b) { static int v1; v1 = v1+b; printf('%d ', v1); }
116. In order to read structures/records from a file, which function will you use?
117. Following statement where str is a character array and the statement is supposed to traverse through the whole character string str? for(i=0;str[i];i++)
118. Output of the following program? #include main() { int n = 5; assert(n > 3); //statement 1 n = n+2; assert(n > 7);//statement 2 return 0; }
119. Following function do? int fn(unsigned int x) { int count = 0; for(; x!=0; x&=(x-1)) count++; return count; }
120. Following functions is used to extract formatted input from a file?
121. Output as a result of the following code snippet? main() { char *s='Hello World'; char s1[20], s2[20]; int len = sscanf(s,'%s',s1); printf('%s : %d', s1, len); }
122. Is the following statement correct? If not, why not? If yes, what is the size of the array? int array[][3] = { {1,2}, {2,3}, {3,4,2} };
123. Output as a result of the following code snippet? void main() { int arr[5]={1,2,3,4,5}; printf('%d\n', *(arr+4)); }
124. Given the array: int num[3][4]= { {3,6,9,12}, {15,25,30,35}, {66,77,88,99} }; what would be the output of *(*(num+1))?
125. If a two dimensional array arr[4][10](an array with 4 rows and 10 columns) is to be passed in a function, which of the following would be the valid parameters in the function definition?
126. Output as a result of the following code snippet? main() { int a[5] = {1,4,5,6,9}; printf('%d\t', *a); //Line 1 printf('%d', *++a); //Line 2 return 0; }
127. Output as a result of the following code snippet? #define func(t, a, b) { t temp; temp=a; a=b; b=temp; } main() { int a=3, b=4; float c=4.5, d = 5.99; func(int, a, b); func(float, c, d); printf('%d %d ', a, b); printf('%.2f %.2f\n', c, d); }
128. Output as a result of the following code snippet? #define max(a, b)((a) > (b)?(a):(b)) main() { int a=4, c = 5; printf('%d ', max(a++, c++)); printf('%d %d\n', a,c); }
129. Output as a result of the following code snippet? main() { int i=5; char option = 5; switch(option) { case '5': printf('case : 1 \n'); break; case i: printf('case : 2 \n'); break; default: printf('case : 3 \n'); break; } return 0; }
130. Following code is executed? { int num; num =0; do {-- num; printf('%d\n', num); num++; } while (num >=0); }
131. Study the following code: int n = 2; int a[n]; What is the error in the above code?
132. Which standard functions is used to close a file?
133. Which is the correct way of initializing a twodimensional array?
134. An array is defined with the following statement in a file, file1.c int a[ ] = { 1, 2, 3, 4, 5, 6 }; In another file, file2.c, the following code snippet is written to use the array a: extern int a[]; int size = sizeof(a); What is wrong with the above code snippet?
135. Output as a result of the following code snippet? main() { signed char i = 1; for (; i<=255; i++) printf ('%d ',i); return 0; }
136. Which comparison statements will be true if an integer is 16 bits and a long is 32 bits on a machine?
137. From which of the following loop or conditional constructs, is 'break' used for an early exit?
138. Which is not a type of operator ?
139. Output of the following code snippet? void main() { int arr[][2] = {1,2,3,4,5,6}; printf('%d',arr[2][1]); }
140. Output of the following code snippet? void func() { static int i = 1; int j = 1; i++; j++; printf('%d %d ',i,j); } void main() { func(); func(); func(); }
141. Which is not a string function?
142. Which is not a valid mode for opening a file?
143. Output of the following code snippet? main() { enum {red, green, blue = 0, white}; printf('%d %d %d %d', red, green, blue, white); return 0; }
144. In which area of memory are static variables allocated?
145. Output of the following program ? main() { int u = 1, v = 3; printf('%d %d',u,v); funct1(&u,&v); printf('%d %d\n',u,v); } void funct1(int *pu, int *pv) { *pu=0; *pv=0; return; }
146. Which standard function is used to clear memory allocated by the malloc() function?
147. Output as a result of the following code snippet? main() { int arr[10]; int a = sizeof(arr); printf('%d\n',a); return 0; }
148. Output of the following code snippet? #include main() { unsigned char a=255; a = a+1; printf('%d',a); return 0; }
149. Output of following code? int' main() { int i; i = 0; for (i = 1; i <2; i++) { i++; printf( '%d', i ); continue; printf( "%d", i ); } return 0; }
150. How many times the program will print 'Hello World' ? #include int main() { printf('Hello World'); main(); return 0; }
151. The first argument in command line arguments is?
152. If the two strings are identical, the strcmp() function returns?
153. How many times i value is checked in the below code? #include int main() { int i = 0; do { i++; printf('in while loop\n'); } while (i < 3); }
154. Output of following code:- #include #include void display(int num,...); int main() { display(4,'A','B','C','D'); return 0; } void display(int num, ...) { char c,c1; int j; va_list ptr,ptr1; va_start(ptr,num); va_start(ptr1,num); for(j=1;j<=num;j++) { c=va_arg(ptr, int); printf('%c,',c); c1=va_arg(ptr1, int); printf('%d\n',c1); } }
155. Output of the following code? int main() { FILE *foobar = stdout; int foo; fprintf(foobar, '%d ', 20); fflush(stdout); fprintf(stderr, '%d', 99); return 0; }
156. log(x) function defined in math.h header file is
157. Output of this C code? int main() { int i = 10; void *p = &i; printf('%d\n', (int)*p); return 0; }
158. How many times 'Upwork' gets printed? #include int main() { int x; for(x=-1;x<=10;x++) { if(x<5) continue; else break; printf('Upwork'); } return 0; }
159. What is argc used for?
160. Which is TRUE about argv?
161. When a program uses command line arguments, then argv[0]?
162. Which is a correct format for declaration of a function?
163. Which is not a valid variable declaration?
164. Which is a correct way to initialize an array?
165. 'The expressions *ptr++ and ++*ptr are same'
166. Point out the error in the program? typedef struct data mystruct; struct data { int x; mystruct *b; };
167. Which functions can be used to set the file position indicator to the beginning of the file?
168. In which stage the following code : #include gets replaced by the contents of the file stdio.h?
169. What is the scope of a function?
170. Which can not be a member in a structure?
171. Point out the error in the following program(if it is compiled with Turbo C compiler)? #include int main() { display(); return 0; } void display() { printf('Upwork.com'); }
172. Which operation is illegal in structures?
173. Which keyword is used to transfer control from a function back to the calling function?
174. The prototype of a function can be used to :
175. Which operator connects the structure name to its member name?
176. Point out the error in the following code: struct emp { int ecode; struct emp *e; }
177. Which operators is used to access the data members of a structure?
178. Which declaration signify? char *arr[10];
179. Which type of files can’t be opened using fopen()?
180. The preprocessor provides the ability for ___.
181. Which syntax is correct for command-line arguments?
182. What does fp point to in the program ? #include int main() { FILE *fp; fp=fopen('trial', 'r'); return 0; }
183. All keywords in C are in _____.
184. What will be the content of 'file.c' after executing the following program? #include int main() { FILE *fp1,*fp2; fp1=fopen('file.c','w'); fp2=fopen('file.c','w'); fputc('A',fp1); fputc('B',fp2); fclose(fp1); fclose(fp2); return 0; }
185. Output of following code? main() { int foo = 20; int bar = 3; float foobar; foobar = (float) foo / bar; foo = foobar; printf('foobar = %5.3f\nfoo = %d', foobar, foo ); }
186. Let x be an array. Which operation is illegal? a) ++x b) x+1 c) x++ d) x*2
187. Output of following program? #include int main() { const int x=5; const int *ptrx; ptrx=&x; *ptrx=10; printf('%d\n',x); return 0; }
188. Can you combine the following two statements into one? char *p; p = (char*) malloc(100);
189. What is the following program doing? #include main() { FILE *stream=fopen('a.txt','r'); }
190. If there is any error while opening a file, fopen will return?
191. Which cannot be a variable name in C?
192. Following code, the p2 is Integer pointer or Integer? typedef int *ptr; ptr p1,p2;
193. Output of following program? #include int main() { int k=1; printf('%d==1 is ' '%s\n',k,k==1?'TRUE':'FALSE'); return 0; }
194. Which format specifier can be used to print a float value?
195. Which format specifier can be used to print a float value?
196. Bit wise & and | are unary operators.
197. Which bit wise operator is suitable for turning off a particular bit in a number?
198. Output of this C code? #include void main() { int x = 1, y = 0, z = 5; int a = x && y || z++; printf('%d', z); }
199. Which is the correct usage of conditional operator in C?
200. Output of the following code? main() { int foo = 10; foo = foo << 2; printf('foo = %d',foo); }
201. Output of following program? #include int main() { int y=128; const int x=y; printf('%d\n',x); return 0; }
202. Which is an invalid operator?
203. Output of following code? int main() { int a=5; if(a=10) printf('Value of a=%d',a); else printf('Value of a=%d',a); return 0; }
204. Which function is used to de-allocate the memory allocated using malloc()?
205. Output of the following code snippet? #include main() { int x = 5; if(x=5) { if(x=5) break; printf('Hello'); } printf('Hi'); }
206. Pick the incorrect fopen statement:
207. What is used to convert a C program into machine language for execution?
208. Output of the following program? int main () { int foo = 1; do{ printf('%d ', foo); foo++; }while( foo <= 10 ) return 0; }
209. What is (void*)0?
210. Consider the 32 bit compiler. We need to store address of integer variable to integer pointer. What will be the size of integer pointer ?
211. C preprocessors can have compiler specific features.
212. Which is C preprocessors?
213. #include is a __?
214. Which is not a Preprocessor Directive in C?
215. Where is the file searched, when #include is used with angular brackets <>?
216. Which header file should be included to use functions like malloc() and calloc()?
217. Output of the program ? #include int main() { int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m); return 0; }
218. The maximum combined length of the command-line arguments including the spaces between adjacent arguments is
219. Which function is used to check if the end of the file has been reached in C?
220. Left shifting a number by 1 is always equivalent to multiplying it by 2.
221. Declare the following statement? 'An array of three pointers to chars'
222. What type of array is generally generated in Command-line argument?
223. For binary files, a ___ must be appended to the mode string.
224. Output of the following program? main( ) { int foo = ('k' - 'j')/4; printf('foo = %d',foo); return 0; }
225. Smallest element of an array is called as __.
226. A file written in text mode can be read back in binary mode.
227. An array elements are always stored in ____ memory locations.
228. An array elements are always stored in ____ memory locations.
229. An array elements are always stored in ____ memory locations.
230. Which keyword is used to retain value of a variable in multiple function invocations?
231. Which storage class is the default storage class for all local variables?
232. Which operations can be performed on the file 'NOTES.TXT' using the below code? FILE *fp; fp = fopen('NOTES.TXT', 'r+');
233. Comment on the statement: int (*a)[7];
234. Which correctly shows the hierarchy of arithmetic operators in C?
235. Offset used in fseek() function call can be a negative number.
236. Offset used in fseek() function call can be a negative number.
237. What is the built in library function to adjust the allocated dynamic memory size?
238. How will you print \n on the screen?
239. How will you free the allocated memory?
240. The keyword ‘break’ cannot be simply used within __?
241. What does argc and argv indicate in command-line arguments? (Assuming: int main(int argc, char *argv[]) )
242. Which is not a logical operator?
243. What declaration mean? int(*ptr)[10];
244. Which declaration is not supported by C?
245. Which function is called at program startup?
246. Which keyword is used to declare a variable so that the variable can be accessed by all the functions in all the modules of a program?
247. In order to fetch the address of a variable, we write preceding _____ sign before variable name.
248. Bitwise operators can be used to generate random numbers.
249. Which statement is correct? Check all that apply.
250. If short takes 2 bytes of memory, Output of the following program? int main () { short foobar[2][3] = { {1,5}, {9,8,7}}; printf('%d', sizeof(foobar)); return 0; }
251. Assuming integer takes 4 bytes and the starting address of the array 'foo' is 2000, Output of the following code? int main() { int foo[2][3][4][5]; foo[2][3][4][5] = 50; printf('%d',*(*(*(*(foo+2)+3)+4)+5)); return 0; }
252. Assuming integer is 4 bytes long and the address for 'i' is 2000, Output for the following code? int main() { int ***foo, **bar, *foobar, i=5; foobar = &i; bar = &foobar; foo = &bar; printf('%d, %d, %d\n', *foobar, **bar, ***foo); return 0; }
253. Output of this C code (if run with no options or arguments)? #include int main(intargc, char *argv[]) { printf('%d\n', argc); return 0; }
254. If the storage size of unsigned int is 2 bytes, then the range of values of an unsigned integer is:
255. Considering the definition of a Union MyUnion, if int occupies 4 bytes, what is the memory size occupied by a variable of type MyUnion? union MyUnion { int foo; float bar; char foobar[16]; };
256. Considering that integer is 4 bytes long, Output of the code? int main() { intfoobar=20, *foo, *bar; foo=&foobar; /* Assume address of foobar is 2100*/ bar=foo; *foo++=*bar++; foobar++; printf('foobar=%d, foo=%d, bar=%d\n', foobar, foo, bar); return 0; }
257. Which statement will you add in following program to work it correctly? #includeint main() { printf('%f\n',log(360.0)); return 0; }
258. Which is not a Standard Predefined Macro?
259. #include int main() { char *var = 'Programming in C is fun.'; } Which format identifier can never be used for the variable var?
260. Which is an invalid identifier?
261. #include are ___ files and #include 'somefile.h' ____ files.
262. Many features of C were derived from an earlier language called _____.
263. #pragma exit is primarily used for?
264. Assuming, integer is 2 byte,Output of the program? #includeint main() { printf('%x\n', -2<<2); return 0; }
265. Which is used for dynamically allocating memory?
266. Output of the following code? void myFunction(int foo[2][3]) { foo[0][1] = 5; int i = 0, j = 0; for (i = 0; i < 2; i++) for (j = 0; j < 3; j++) printf('%d ', foo[i][j]); } int main() { int foo[2][3] = {0}; myFunction(foo); return 0; }
267. What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
268. Output of the given program? int main() { int i =1, j=1; for ( ; ; ) { if ( i > 5 ) break; else j += i--; Printf ( '%d\n', j ); i += j; j= j+7; } return 0; }
269. Output of the given program. #include main() { struct b { int on:1; }; struct b v = [1]; printf('%d\n', v.on); }
270. ________ can be used as pointers.
271. A ____ loop is best used when the specific number of iterations required is known.
272. Members of a(n) ________ union have names, but the union itself has no name.
273. The __________ function will return the number of characters in a given string.
274. The pl/sql block starts with the ____ clause.
275. The pointer is indicating the _____.
276. The purpose of the __________ is to get the first input value for the validation of a loop.
277. The standard header file for the abs(x)function is ____.
278. The symbol used to represent a loop condition on a flowchart is the ____ symbol.
279. The word “memory” consists of 48 bits, which is equivalent to _____ bytes.
280. This code is an example of a(n) ____ while loop.
281. To compare struct variables, you compare them ____.
282. To create a macro, you can enter a series of commands in the _____ programming language.
283. To use files in a c++ program you must include the ________ header file.
284. To use stream manipulators, you should include the ________ header file.
285. To use the strlen function in a program, you must also write #include ________.
286. Using the __________ cipher you choose some number by which to shift each letter of a text.
287. Usually, when you create nested loops, each loop has its own ____.
288. Value is a function of ___________ and ___________?
289. When a character is stored in memory, it is actually the ________ that is stored.
290. When you write a program that stores a value in a variable, you are using ____ storage.
291. When you dereference an object pointer, use the ________.
292. When you work with a dereferenced pointer, you are actually working with ________.
293. With pointer variables, you can ________ manipulate data stored in other variables.
294. You can use the ____ operator to increment or decrement the value of an enumeration type.
295. In any program that uses the cin object, you must include the ________.
296. The -- operator ________.
297. ________ functions are dynamically bound by the compiler.
298. ________ functions may have the same name, as long as their parameter lists are different.
299. ________ is a construct that defines objects of the same type.
300. A two-dimensional array contains two dimensions: ____.
301. An inner loop goes through all of its iterations for every single iteration of the ________ loop.
302. Functions that do not have a return type are called ____ functions.
303. Pointers are variables that contain __________ as their values.
304. Common ides include visual studio and ____.
305. Objects in an array are accessed with ________, just like any other data type in an array.
306. Function strcmp returns __________ if its first argument is equal to its second argument.
307. A ________ value in a loop can be either a positive or a negative number.
308. After a program is coded, it must be ____________.
309. When an array is passed to a function, it is actually ________ the array that is/are passed.
310. You may define a __________ in the initialization expression of a for loop.
311. A(n) ____ loop executes a predetermined number of times.
312. Many programming languages include a string operation called __________.
313. Each array element occupies an area in memory next to, or ____, the others.
314. What is the name for calling a function inside the same function?
315. What does the declaration of variable c2 demonstrate? main(){ char c1 ='a'; char c2 = c1+10;}
316. A pointer to void named vptr, has been set to point to a floating point variable named g. What is the valid way to dereference vptr to assign its pointed value to a float variable named f later in this program? float g; void *vptr=&g;
317. A C header file is a file with extension .h that contains function declarations and macro definitons to be shared between several source files. Header files are listed using the preprocessing directive #include, and can have one of the following formats: #include or #include "fileB". What is the difference between these two formats?
318. What is not one of the reserved words in standard C?
319. In this code sample, what is not a problem for C compiler? main(){ constant int PI = 3.14; printf("%f\n", pi);}
320. Which is the smallest program to compile and run without errors?
321. What is optional in a function declaration?
322. C treats all devices, such as the display and the keyboard, as files. Which files opens automatically when a program executes?
323. In which segment does dynamic memory allocation takes place?
324. Which function do you use to deallocate memory?
325. In C language what are the basic building blocks that are constructed together to write a program?
326. When is memory for a variable allocated?
327. By default c uses the call by value method to pass arguments to functions. How can you invoke the call by reference method?
328. A union allows you to store different ___ in the same ___.
329. What is the difference between scanf() and sscanf() functions?
330. What is not a valid command with this declaration? char *string[20] = { "one", "two", "three"};
331. What is the expression player->name equivalent to?
332. What is an alternative way to write the expression (*x).y?
333. Compile time errors are static errors that can be found where in the code?
334. File input and output (I/O) in C is heavily based on the way it is done ___?
335. What does the strcmp(str1, str2); function return?
336. Which is not a correct way to declare a string variable?
337. File input and output (I/O) in C is done through what?
338. Directives are translated by the?
339. The main loop structures in C programming are the for loop, the while loop, and which other loop?
340. By default, C Functions are what type of functions?
341. A Stack data structure allows all data operations at one end only, making it what kind of an implementation?
342. Describe the relationship between lvalue and rvalue.
343. Which operator is used to access the address of a variable?
344. Which is not a storage class specifier?
345. Which line of code, after execution, results in i having the value of 1?
346. What is not one of the basic data types in C
347. What is the member access operator for a structure?
348. What standard data type provides the smallest storage size and can be used in computations?
349. What does the ctype tolower() function do?
350. Void pointer vptr is assigned the address of float variable g. What is a valid way to dereference vptr to assign its pointed value to a float variable named f later in the program? float g; void *vptr=&g;
351. The dynamic memory allocation functions are defined in which system header file ?
352. An array name and index are separated using ____.
353. If a condition in a post-test loop can never be met, the loop is an _________ loop.
354. When a structure is passed ________ to a function, its members are not copied.