Home Login

C Language Multiple Choice Question MCQ

Categories: PROGRAMMING LANGUAGE

Ques 1. Who is the father of C language?

a) Steve Jobs

b) James Gosling

c) Dennis Ritchie

d) Rasmus Lerdorf

Answer: c


Ques 2. Which of the following is not a valid C variable name?

a) int number;

b) float rate;

c) int variable_count;

d) int $main;

Answer: d


Ques 3. All keywords in C are in ____________

a) LowerCase letters

b) UpperCase letters

c) CamelCase letters

d) None of the mentioned

Answer: a


Ques 4. Which of the following is true for variable names in C?

a) They can contain alphanumeric characters as well as special characters

b) It is not an error to declare a variable to be one of the keywords(like goto, static)

c) Variable names cannot start with a digit

d) Variable can be of any length

Answer: c


Ques 5. Which is valid C expression?

a) int my_num = 100,000;

b) int my_num = 100000;

c) int my num = 1000;

d) int $my_num = 10000;

Answer: b


Ques 6. Which of the following cannot be a variable name in C?

a) volatile

b) true

c) friend

d) export

Answer: a


Ques 7. What is short int in C programming?

a) The basic data type of C

b) Qualifier

c) Short is the qualifier and int is the basic data type

d) All of the mentioned

Answer: c


Ques 8. Which of the following declaration is not supported by C language?

a) String str;

b) char *str;

c) float str = 3e2;

d) Both “String str;” and “float str = 3e2;”

Answer: a


Ques 9. Which keyword is used to prevent any changes in the variable within a C program?

a) immutable

b) mutable

c) const

d) volatile

Answer: c


Ques 10. What is the result of logical or relational expression in C?

a) True or False

b) 0 or 1

c) 0 if an expression is false and any positive number if an expression is true

d) None of the mentioned

Answer: b


Ques 11. Which of the following typecasting is accepted by C language?

a) Widening conversions

b) Narrowing conversions

c) Widening & Narrowing conversions

d) None of the mentioned

Answer: c


Ques 12. Where in C the order of precedence of operators do not exist?

a) Within conditional statements, if, else

b) Within while, do-while

c) Within a macro definition

d) None of the mentioned

Answer: d


Ques 13. Which of the following is NOT possible with any 2 operators in C?

a) Different precedence, same associativity

b) Different precedence, different associativity

c) Same precedence, different associativity

d) All of the mentioned

Answer: c


Ques 14. What is an example of iteration in C?

a) for

b) while

c) do-while

d) all of the mentioned

Answer: d


Ques 15. Functions can return enumeration constants in C?

a) true

b) false

c) depends on the compiler

d) depends on the standard

Answer: a

Top articles
Twisted (software) Published at:- Applications using Twisted Published at:- Introduction to Quantum Programming Published at:- Quantum Computers Published at:- Quantum Programming Published at:- QUBIT Published at:- QUANTEM GATE Published at:- MIT CSAIL has developed a programming language for Quantum Computing, Twist Published at:- MIT’s New Programming Language for Quantum Computing Published at:- Most popular programming languages Published at:- Component level design in software engineering Published at:- A Ultimate Guide for Choosing the Perfect Programming Language for Application Development Published at:- Cracking the Code and Essential Concepts of C Programming Language for Interview Success Published at:- Evolution of Programming Languages Published at:- Basic Programming Interview Questions Published at:- Basic Programming language Interview Question Published at:- C Language Multiple Choice Question MCQ Published at:-
Main Category
|| Java || Technology || US Education News || Others || Spring || PROGRAMMING LANGUAGE || NEW SCHEMES || Education || UK EDUCATION NEWS || US EDUCATION GRADE 9 || WORLD EDUATION NEWS || UNITED STATE COMPUTER EDUCATION || PEBC Exam Canada || Software Engineering || science education || GRE QUESTION PAPER || History || Health ||
closeConn($conn); ?>