STD 10 CH 11, 12 MCQ
STD 10 CH 11, 12 MCQ
1. The keywords associate a data with its types are known as____.
A) Variable B) keyword C) data type D) token
2. The type of value to be stored in identifier is known as____.
A) Variable B) keyword C) data type D) token
3. _____ is defined by the keyword that relate data with its value.
A) the type of value stored in B) the memory space required by C) both a and b D) none
4. Each data type is allocated a fixed memory space in C and it is denoted ____.
A) bytes B) constant C) variable D) none of these
5. Which are the basic or primitive data types in C language?
A) integer, decimal, character B) void C) both a and b D) none of these
6. Integer, decimal, character are represented by _____.
A) integer, decimal, char B) int, dec, char C) int, float, char D) any of these
7. Which is a positive or negative whole number with no fraction part in it?
A) Char B) Real C) Integer D) Void
8. Which keyword is used to make use of only positive values in C language memory?
A) Signed int B) Unsigned int C) Positive int D) none of these
9. Which data type stores values having fractional part in it?
A) int B) Float C) float D) INT
10. Which of the following is a valid keyword in C that identifies valid character value?
A) int B) CHAR C) character D) char
11. If we want to say the function would not return any values then ____ is used.
A) Container B) Null C) void D) Blank
12. Which statement tells the compiler to exit from the function body?
A) exit B) return 0 C) quit D) end
13. Which are different arithmetic operators available in C language?
A) +, -, *, /, % B) >,< , != C) &&, || D) ? :
14. The data on which the operations is performed using a operator is known as _____.
A) Operator B) Operands C) Expression D) Program
15. Modulo (%) operator is used to get a _____.
A) Division B) Modular C) Remainder D) quotient
16. Which sign is used as assignment operator in C language?
A) = = B) = C) ! = D) = !
17. Which of the following refer to the meaning of value++ in C?
A) Post-increment B) Post-decrement C) Pre-increment D) Pre-decrement
18. ____ Operator is used to compare two similar types of operands.
A) Logical B) Relational C) Conditional D) Bitwise
19. Which is used to change the flow of execution of the program?
A) Logical B) Relational C) Conditional D) Bitwise
20. Which is used to check the equality of operands?
A) = B) = = C) =! D) !=
21. Which are two special unary operators which working with the single operand?
A) + and - B) ++ and -- C) & and ! D) && and ||
22. Conditional operator is also known as ____ operator.
A) unary B) binary C) ternary D) none of these
23. Which are two ternary or conditional operators available?
A) ? and : B) ? and ; C) : and : D) none of these
24. Logical expression gives an output either 0 or 1 which refer to ___?
A) True, false B) false, true C) true, true D) none of these
25. How many storage classes are provides by C language?
A) 2 (external, internal) B) 3(physically, mentally, logically)
C) 4(automatic, external, register, static) D) 1(protected)
26. All the variables by default have storage class is____.
A) Auto B) Extern C) Static D) Register
1. Which of the following files contains various input and output operations related functions?
A) math.h B) string.h C) stdio.h D) conio
2. ____ means standard input output header file.
A) stdio.h B) stdio.hf C) sio.h D) none of these
3. One of the simplest way to read a character in a C program at runtime is ___ function.
A) gertc( ) B) getch( ) C) gerchar( ) D) gets( )
4. With ____ function the character keyed in will not visible on the screen.
A) gertc( ) B) getch( ) C) gerchar( ) D) gets( )
5. Which of the following function is more appropriate for accepting a string?
A) gertc( ) B) getch( ) C) gerchar( ) D) gets( )
6. Which of the following is formatted input function?
A) gerchar( ) B) getch( ) C) scanf() D) printf()
7. Which of the following is address of operator in C language?
A) # B) > C) & D) $
8. The ____ in C specifies the memory location of the variable.
A) %d B) %c C) %s D) &
9. ___ format specifier in scanf() read a decimal integer.
A) %d B) %c C) %s D) %u
10. ___ format specifier in scanf() read a character.
A) %d B) %c C) %s D) %u
11. ___ format specifier in scanf() read a string.
A) %d B) %c C) %s D) %u
12. Which of the following is not function of output?
A) puts() B) putchar() C) printf() D) scanf( )
13. function can be used to display messages
A) printf() B) scanf() C) int main() D) test expression
14. Which function is used to write a single character to the standard output device?
A) gets B) getc() C) puts()| D) putchar()
15. Which function is used to display multiple character or string on an output device?
A) gets B) getc() C) puts()| D) putchar()
16. Which function is used to display formatted output on a screen?
A) puts( ) B) putchar( ) C) printf( ) D) gets( )