MCQs
MCQs
1. What is IDE
Independent Development Enterprise
A development environment for machine language
Software project management tool
Integrated Development Environment
2. We can insert pre written code in a C program by using
#read #include
#get #put
3. In “C” language ________ is used as statement terminator
: ; [ {
4. The format string %lf is used for?
Float Unsigned int
Double Long double
5. A variable of type unsigned int can have a value in the range of?
-32768 to +32767 0 to 65536
0 to 32768 -32767 to +32767
6. How much memory is required to store a value of type double?
4 bytes 8 bytes
6 bytes 10 bytes
7. What is the output of 6 % 5
0 1 4 5
8. ==” is an operator of this type:
Logical Assignment
Arithmetic Relational
9. The quantities which may change during program execution are called:
Constants Strings
Variables Integers
10. This operator has the lowest precedence.
-- * && >
11. The ‘\n’ character does this one of the following operations:
Double line spacing character backspace
character deletion place cursor on the next line
12. Names given to variable, constants and functions are called:
header files loops structures
identifiers Comments
13. This type of error is detected by the compiler:
Run time Syntax
Logical Absolute
14. The include<stdio.h> does not begin without the sign of:
$ != # @
15. The gets( ) and puts( ) functions offer simple alternatives to use of
sqrt( ) and pow(a,n) exp( ), toascii( )
scanf( ) and printf( ) abs() and ceil( )
16. A relational operator (>= )
distinguish different type of variables
combine values
distribute values
Compare values
17. The function void game(void); is the example of
A Prototype declare a function Itself function
Calling function Return type function
18. To increase the value of c by one which of the following statement is wrong?
c = c + 1; c += 1
c++; c += 1> c;
19. A variable name is also called a(n) ____.
Placeholder Constant
Identifier Hexadecimal
20. C language has been developed by ?
Dennis Ritchie Ken Thompson
Peter Norton Martin Richards
21. Data type of the controlling statement of a SWITCH statement cannot of the type:
int char short float
22. Data type of the controlling statement of a SWITCH statement cannot of the type:
int char short float
23. The diamond shaped symbol is used in flowcharts to show the
decision box error box
statement box if-statement box
24. The gets( ) and puts( ) functions offer simple alternatives to useof :
scanf( ) andprintf() abs() andceil()
sqrt( ) andpow(a,n) exp( ), toascii()
25. A relational operator (>=)
combine values Compare values
distinguish different type of variables istribute values
26. The directives for the preprocessors begin with
Ampersandsymbol(&) Number Sign(#)
Two Slashes (//) Less than symbol(<)
27. To increase the value of c by one which of the following statement iswrong?
c++; c + 1=> c;
c = c +1; c +=1
28. The precedence of arithmetic operators is (from highest to lowest)
%, *, /, +, – +, -, %, *, /
%, +, /, *, – %, +, -, *, /
29. What is the output of this C code?
#include <stdio.h>
void main()
{
int c = 2 ^ 3;
printf("%d\n", c);
}
1 8 9 0