WBJECA MCQ FOR NEW SYLLABUS
C Programming MCQ ( SET - 16)
- A multidimensional array of dimension n is a collection of ............. ?- n-1 dimensio arrays
- single dimensional arrays
- n-2 dimension arrays
- n dimensional arrays
 Answer: A
 Explantion: None
- Which keyword is used to prevent any changes in the variable within a C program ?- volatile
- register
- const
- break
 Answer: C
 Explantion: None
- What is the keyword used to declare a C file pointer ?- filefp
- file
- FILEFP
- FILE
 Answer: D
 Explantion: None.
- What is the output of this staement " ... printf("%d",(i--)); ...." ?- The current value of => i
- The value of (i+1)
- the value of (i-1)
- error message
 Answer: A
 Explantion: None
- What is a C FILE data type ?- FILE like a Structure only
- FILE is like a structure only
- FILE is like a user define int data type
- None of above
 Answer: B
 Explantion: None
- Directives are translated by the _______- Linker
- Editor
- Compiler
- Pre-processor
 Answer: D
 Explantion: None
- In Which of the following modes , the user can read and write the file ?- w
- b+
- x+
- r+
 Answer: D
 Explantion: None
- Let num1 and num2 be integer pointers . Which one is a syntactically wrong statement ?- num2=num2+7 ;
- num1=num1-7;
- V=num1-num2;
- num1=num1+num2;
 Answer: D
 Explantion: None
- Which of the following statement is right about the ftell() function ?- it reads a character from the file
- it returns the current position
- it sets the file pointer to give position
- none of above
 Answer: B
 Explantion: None
- 10Why is a macro used in place of a function ?- it reduces code size
- it reduces execution time
- it reduces execution time
- none of above
 Answer: C
 Explantion: None
 More C programming MCQ  for 
 

 
 
 
0 Comments