WBJECA MCQ FOR NEW SYLLABUS
C Programming MCQ ( SET - 14)
- The statement char ch='a' would store in ch ?
- ASCII value of a
- a along with the single inverted comma
- the charater a
- none of the above
Answer: A
Explantion: None - Arguments passed to C language are called __________ ?
- Definite Arguments
- Ideal Arguments
- Actual Arguments
- Formal Arguments
Answer: C
Explantion: None - The function fprintf() is used in a program ?
- when output is to be printed on to a file
- When too many printf calls have been alrady used in the program
- inplace of printf , since pirintf used more memory
- all of these
Answer: A
Explantion: None. - What is the output of that program ?
main()
{
printf("hello World");
main() ;
return 0 ;
}- 255 times
- 0 times
- Till stack overflows
- Infinite times
Answer: C
Explantion: None - The function that actually created from a call to a template function is called ?
- Declassified
- Spawned
- Generated
- Inherited
Answer: B
Explantion: None - Which of the following cannot be checked in a switch-case statement ?
- int
- char
- long
- float
Answer: D
Explantion: None - choose the currect answer ?
main()
{
float num=4.5+4.5 ;
printf("%f",num) ;
return 0;
}- 9
- 9.0
- 4.5
- 9.000000
Answer: D
Explantion: None - C Formatted input output function is ?
- sscanf() , sprintf()
- fprintf() , fscanf()
- printf(),scanf()
- All of the above
Answer: D
Explantion: None - C unformatted input output function is ?
- getchar() , putchar()
- gets() , puts()
- both A and B
- None of the above
Answer: C
Explantion: None - 10What is the way to suddenly come out of or Quit any loop in c programming language ?
- leave; statement
- quit; statement
- break; statement
- continue; statement
Answer: C
Explantion: None
More C programming MCQ for
0 Comments