Important C Language MCQ


Q.-1: Who is father of C Language?

A) Bjarne Stroustrup
B) Dennis Ritchie
C) JamesGosling
D) Dr. E.F. Codd


Q.-2: C Language developed at _____?

A) AT & T Bell Laboratories of USA in 1972
B) AT & T Bell Laboratories of USA in 1970
C) Sun Microsystems in 1973
D) Cambridge University in 1972


Q.-3: For 16-bit compiler allowable range for integer constants is ______ ?

A) -3.4e38 to 3.4e38
B) -32767 to 32768
C) -32768 to 32767
D) -32668 to 32667


Q.-4: C programs are converted into machine language with the help of ______

A) An Editor
B) A compiler
C) An operating system
D) None of the above


Q.-5: C variable cannot start with

A) An alphabet
B) A number
C) A special symbol other than underscore
D) both A and B


Q.-6: Which of the following is allowed in a C Arithmetic instruction

A) []
B) {}
C) ()
D) None of the above


Q.-7: Which of the following shows the correct hierarchy of arithmetic operations in C

A) *+-/
B) *+/-
C) /*+-
D) /+-*


Q.-8: What is an array?

A) An array is a collection of variables that are of the dissimilar data type.
B) An array is a collection of variables that are of the same data type.
C) An array is not a collection of variables that are of the same data type.
D) None of the above


Q.-9: What is right way to Initialization array?

A) int num[6] = { 2, 4, 12, 5, 45, 5 } ;
B) int n{} = { 2, 4, 12, 5, 45, 5 } ;
C) int n{6} = { 2, 4, 12 } ;
D) int n(6) = { 2, 4, 12, 5, 45, 5 } ;


Q.-10: An array elements are always stored in _________ memory locations.

A) Sequential
B) Random
C) Sequential and Random
D) None of the above


Q.-11: What is constant?

A) Constants have fixed values that do not change during the execution of a program
B) Constants have fixed values that change during the execution of a program
C) Constants have unknown values that may be change during the execution of a program
D) None of the above


Q.-12: What is the work of break keyword?

A) Halt execution of program
B) Restart execution of program
C) Exit from loop or switch statement
D) None of the avobe


Q.-13: What is function?

A) Function is a block of statements that perform some specific task.
B) Function is the fundamental modular unit. A function is usually designed to perform a specific task.
C) Function is a block of code that performs a specific task. It has a name and it is reusable
D) All the above


Q.-14: Which one of the following sentences is true ?

A) The body of a while loop is executed at least once.
B) The body of a do ? while loop is executed at least once.
C) The body of a do ? while loop is executed zero or more times.
D) A for loop can never be used in place of a while loop.


Q.-15: The statement printf("%c", 100), will print?

A) prints 100
B) print garbage
C) prints ASCII equivalent of 100
D) None of the above


Q.-16: C is ______ Language?

A) Low Level
B) High Level
C) Assembly Level
D) Machine Level


Q.-17: What will be the output of the following arithmetic expression ?5+3*2%10-8*6

A) -37
B) -42
C) -32
D) -28


Q.-18: What will be the output of the following statement ?int a=10; printf("%d &i",a,10),

A) error
B) 10
C) 10 10
D) none of these


Q.-19: How to declared a character data type?

A) Int
B) Char
C) Float
D) double


Q.-20: These are not a Arithmetical Operators type:

A) +
B) -
C) ==
D) *


Q.-21: Which of the following is a Logical Operator?

A) +
B) &&
C) /
D) None of These


Q.-22: Which symbol is used as a Condition in C?

A) {}
B) ()
C) []
D) % %


Q.-23: When we use ?alt+f9? Shortcut Key?

A) Run a Program
B) Compile a Program
C) Exit the Program
D) Help us


Q.-24: When we use ?F3? Shortcut Key?

A) For Open a Program
B) For Save a Program
C) Run a program
D) Exit the Program


Q.-25: The expression of the right hand side of

A)
B) operators does not get evaluated if the left hand side determines the outcome.
C) True
D) False


Q.-26: default:statement is a part of ___

A) If
B) switch case
C) If else
D) Loop


Q.-27: what is the answer of 8%5?

A) 3
B) 4
C) 1.6
D) 1


Q.-28: getch() is defined in?

A) stdio.h
B) conio.h
C)
D)


Q.-29: Types of Loop

A) 1
B) 2
C) 3
D) 4


Q.-30: What is Operator?

A) A set of Data
B) A set of Language
C) A set of Symbol
D) All Above

Contact Fee Courses in Rishieksh