C/C /C Programming MCQ Sample Test,Sample questions

Question:
 What is the result of logical or relational expression in C?

1.True or False

2.0 or 1

3.0 if an expression is false and any positive number if an expression is true

4.None of the mentioned


Question:
 Which keyword is used to prevent any changes in the variable within a C program?

1.immutable

2.mutable

3.const

4.volatile


Question:
All keywords in C are in ____________

1.LowerCase letters

2.UpperCase letters

3.CamelCase letters

4.None of the mentioned


Question:
Functions can return enumeration constants in C?

1.true

2.false

3.depends on the compiler

4.depends on the standard


Question:
Functions in C Language are always _________

1.Internal

2.External

3.Both Internal and External

4.External and Internal are not valid terms for functions


Question:
Property which allows to produce different executable for different platforms in C is called?

1.File inclusion

2.Selective inclusion

3.Conditional compilation

4.Recursive macros


Question:
What is an example of iteration in C?

1.for

2.while

3.do-while

4.all of the mentioned


Question:
Which of following is not accepted in C?

1.static a = 10; //static as

2.static int func (int); //parameter as static

3.static static int a; //a static variable prefixed with static

4.All of the mentioned


Question:
Which of the following cannot be a variable name in C?

1.volatile

2.true

3.friend

4.export


Question:
Who is the father of C language?

1.Steve Jobs

2.James Gosling

3. Dennis Ritchie

4.Rasmus Lerdorf


More MCQS

  1. C++ Programming MCQS Set-1
  2. C++ Multiple Choice Questions Set-1
  3. C++ Multiple Choice Questions Set-2
  4. C++ Programming MCQS Set-2
  5. C++ Programming MCQS Set-3
  6. C++ Programming MCQS Set-4
  7. C++ (CPP) MCQ Question with Answer
  8. Advanced c++ multiple choice question(MCQS)
  9. OOPS Quiz Questions and Answers(MCQS)
  10. C Programming - MCQ Questions Set 1
  11. C Programming - MCQ Questions Set 2
  12. C Programming - MCQ Questions Set 3
  13. C Programming - MCQ Questions Set 4
  14. C Programming - MCQ Questions Set 5
  15. C++ programming language MCQ Questions Set 1
  16. C++ programming language MCQ Questions Set 2
  17. C++ programming language MCQ Questions Set 3
  18. C++ programming language MCQ Questions Set 4
  19. C++ programming language MCQ Questions Set 5
  20. C++ Programming -Constructors and Destructors
  21. C++ Programming -OOPS Concepts
  22. C++ Programming - References
  23. C++ Programming - Functions
  24. C MCQS:-The ABC of C
  25. C MCQS Interview Questions
  26. C++ Questions and Answers OOPs Basic Concepts
  27. C++ Questions and Answers Returning Objects
  28. C Programming MCQ Part 1
  29. C Programming MCQ
  30. Computer Science & Engineering C Multiple Choice Questions set 1
  31. Computer Science & Engineering C Multiple Choice Questions set 2
  32. C Multiple Choice Questions C Functions Set 1
  33. C Multiple Choice Questions C Functions Set 2
  34. C Multiple Choice Questions C Operators
  35. C Multiple Choice Questions & AnswersConditional Expressions
  36. C Multiple Choice Questions & Answers Data Types
  37. C Multiple Choice Questions & Answers File Access
  38. Computer Science & Engineering Cloud Computing MCQs Part 1
  39. CPP Programming MCQ Set 1
  40. CPP Programming MCQ Set 2
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!