C/C / 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

Posted Date:-2022-02-19 07:24:57


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

1.immutable

2.mutable

3.const

4.volatile

Posted Date:-2022-02-19 07:23:09


Question:
All keywords in C are in ____________

1.LowerCase letters

2.UpperCase letters

3.CamelCase letters

4.None of the mentioned

Posted Date:-2022-02-19 07:18:49


Question:
Functions can return enumeration constants in C?

1.true

2.false

3.depends on the compiler

4.depends on the standard

Posted Date:-2022-02-19 07:28:27


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

Posted Date:-2022-02-19 07:29:23


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

Posted Date:-2022-02-19 07:32:10


Question:
What is an example of iteration in C?

1.for

2.while

3.do-while

4.all of the mentioned

Posted Date:-2022-02-19 07:25:42


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

Posted Date:-2022-02-19 07:30:56


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

1.volatile

2.true

3.friend

4.export

Posted Date:-2022-02-19 07:19:44


Question:
Who is the father of C language?

1.Steve Jobs

2.James Gosling

3. Dennis Ritchie

4.Rasmus Lerdorf

Posted Date:-2022-02-19 07:16:28


More MCQS

  1. help4info.com
  2. help4info.com
  3. help4info.com
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!