C Programming MCQ - Constant Variables & Data Types

11:   C programming language provides operations which deal directly with objects such as
A. strings and sets
B. lists and arrays
C. characters, integers, and floating point numbers
D. all of these
 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



12:   C programming language by itself provides
A. input facility
B. output facility
C. both input and output facilities
D. no input and output facilities
 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



13:   The variables which can be accessed by all modules in a program, are called
A. local variables
B. internal variables
C. external variable
D. global variables
 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Deepak prajapat said: (12:28am on Sunday 10th January 2016)
But external variable and global variable is same term

Write your comments here:



14:   The rule for implicit type conversion in 'C' is
A. int < unsigned < float < double
B. unsigned < int < float < double
C. int < unsigned < double < float
D. unsigned < int < double < float
 
 

Option: A

Explanation :

Click on Discuss to view users comments.

SURESH GOWRUBOYINA said: (7:08pm on Wednesday 8th November 2017)
The rule for implicit type conversion in 'C' isA.int < unsigned < float < doubleB.unsigned < int < float < doubleC.int < unsigned < double < floatD.unsigned < int < double < floatOption: Amy Option: B
SURESH GOWRUBOYINA said: (7:08pm on Wednesday 8th November 2017)
The rule for implicit type conversion in 'C' isA.int < unsigned < float < doubleB.unsigned < int < float < doubleC.int < unsigned < double < floatD.unsigned < int < double < floatOption: Amy Option: B

Write your comments here:


'>
15:   Consider the following statement
#define hypotenuse (a, b) sqrt (a*a + b*b);
The macro-call hypotenuse (a + 2, b + 3);
A. finds hypotenuse of triangle with sides a + 2 and b+3
B. finds square root of (a + 2)2 + (b + 3)2
C. is meaningless
D. finds square root of 3*a + 4*b + 5
 
 

Option: D

Explanation :

Click on Discuss to view users comments.

MAYANK said: (3:22pm on Wednesday 8th May 2013)
he macro will simply be replaced anywhEre they are called(no concept of brackets or parenthesis).thus in hypotenuse(a 2,b 3)a*a b*b = a 2*a 2 b 3*b 3= a 2a b 3b 5= 3a 4b 5

Write your comments here: