C Programming MCQ - Mixed Bag

16:  

 Choose the correct statement

A.

0 represents a false condition

B.

non-zero value represents a false condition

C.

1 represents a false condition

D.

anything that is not 1 represents a false condition

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



17:  

Which of the following features of C is meant to provide reliable access to special memory locations?

A.

static_const

B.

pragma

C.

volatile

D.

immutable

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



18:  

Choose the best answer. Storage class defines

A.

the datatype

B.

the scope

C.

the scope and permanence

D.

the scope. permanence and datatype

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



19:  

 puts(argv[0]);
 

A.

prints the name of the source code file

B.

prints argv

C.

prints the number of command line arguments

D.

prints the name of executable code file

 
 

Option: D

Explanation :

arg [0] is a pointer to the executable code file name. So, puts (argv [0]) ; prints it.

Click on Discuss to view users comments.

Write your comments here:



20:  

Bit field

A.

is a field having many sub-fields

B.

is a structure declaring the sizes of the members in terms of bits

C.

is a member of a structure whose size is specified in terms of bits

D.

none of the above

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here: