C Programming For Engineers IMPORTANT QUESTIONS
C Programming For Engineers IMPORTANT QUESTIONS
1/2 units
MCQ QUESTIONS.
1. Which one of the following is a loop construct that will always be executed once? ( )
a) for b) while c) do while d) switch
2. _________ is a step-by-step method for solving a problem. ( )
a) Algorithm b) flowchart c) compiler d) pseudo-code
3. Constants are declared in ___________ section of C ( )
a) Documentation section b) definition section
c) main section d) link section
4. ALU Stands for ( )
a) Arithmetic logic unit b Arithmetic lower unit
c) Add logic unit d None
5. ------- Unit is used to store information ( )
a) Input b) output c) control d) Memory
6. What is the output of Compiler? ()
a) Executable code .
b) Source code
c) Object code
d) All of the above
7. __________can be defined as repeating the same process multiple times until a specific condition
is satisfied. ( )
a) Looping b) switch case c) pseudo-code d) none of these
8. Which function is used to show output ? ( )
a) Printf()
b) Print()
c) Show
d) Scanf
9. Which of the following is not a role of compiler? ( )
a) Linking b) Code optimization c) lexical analysis d Syntax analysis
b) write b) read c) append d) close
10. If the value of the variables a and b are 100 and 150 respectively. What will be the value of the
relational expression a>=b. ( )
a) 50 b) 1 c) 0 d) 20
1. __________ is the father of C language?
2. All keywords in C are in ______________ .
3. #include<stdio.h>is a ______________ .
4. The C-preprocessors are specified with ___ symbol.
5. Edit is the example of _______________?
6. __________ is the sizeof(char) in a 32-bit C compiler?
7. scanf() is a predefined function in _________ header file.
8. Assembly language is written with the help of ___________ .
9. The _________ statement is used to transfer the control to the end of statement block in a loop
10. __________ variable uses the same name in whole program.
2. The words if, else, auto, float etc. hasve predefined meaning and users cannot use them as
variables. These words are called ( )
a)constant b)identifier c)data types d)keywords
3. Which operators are used to compare the values of operands to produce logical value in C
language? ( )
a) Logical operator
b) Relational operator
c) Assignment operator
d) None of the above
4. What is/are the number of operand/operands needed to unary operator logical not(!)? ( )
a) 4 b)3 c) 2 d) 1
5. The operator "&" is used for ( )
a) Bitwise AND b)Bitwise OR c) Logical AND d) Logical OR
6. The size of a character variable in C is ( )
a)8 bytes b) 4 bytes c)2 bytes d) 1 byte
7. Maximum value of an unsigned integer is ( )
a)65535 b) 32767 c)-32767 d) -65535
8. The && and || operators ( )
a) compare two numeric values
b) combine two numeric valuesshort hand operator, &
c) compare two boolean values
d) none of these
9. Which of the following is used for conversion of C programs to machine language ? ( )
a) Operating system b) An editor c) A compiler d) An interpreter
10.What is the value of b? ( )
Int b;
b= printf(“Hello”);
a) 5 b) 6 c) 7 d) 10
1. Array is ______ datatype in C Programming language.
2. A declaration float a,b; occupies ______of memory ?
3. Any C program must contain _________function.
4. __________should be written in the program to get newline on the screen?
5. _________ have highest Precedence?
6. The format string to accept a string is___________
7. . The operator "&" is used for _________________
8. Which operators are used to compare the values of operands to produce
logical value in C language? _______________
9. The format specifier for float is ___________
a) %c b) %f c) %d d) %lu
10. The conversion of small datatype into large datatype is called____________.