Option A. 1 20 5
Option B. 5 1 20
Option C. 5 20 1
Option D. 20 1 5
True Answer C

Explanation :

What will be the output of the following program?

int main()

{

int x=5;

printf(“%d %d %d”,x,x<<2,x>>2);

}

Question No# : 01 out of 20

What will be the output of the following program?

int main()

{

int x=5;

printf(“%d %d %d”,x,x<<2,x>>2);

}

What will be the output of the following program?

int main()

{

int x=5;

printf(“%d %d %d”,x,x<<2,x>>2);

}

A. 1 20 51 20 5

B. 5 1 205 1 20

C. 5 20 15 20 1

D. 20 1 520 1 5

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

Option A. rem = 3.14 % 2.1;
Option B. rem = modf(3.14, 2.1);
Option C. rem = fmod(3.14, 2.1);
Option D. Remainder cannot be obtain in floating point division.
True Answer C

Explanation :

fmod(x,y) - Calculates x modulo y, the remainder of x/y.
This function is the same as the modulus operator. But fmod() performs floating point divisions.

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

D. Remainder cannot be obtain in floating point division. शेष बिंदु फ्लोटिंग पॉइंट डिवीजन में प्राप्त नहीं किया जा सकता है।

Which of the following is false in ‘C’ Programming Language

Option A. Keywords can be used as variable names
Option B. Variable names can contain digits
Option C. Variable names do not contain blank spaces
Option D. Capital letters can be used in variable names.
True Answer A

Explanation :

Which of the following is false in ‘C’ Programming Language

Option A. Addition, Division, Modulus
Option B. Addition, Modulus, Division
Option C. Multiplication, Substration, Modulus
Option D. Modulus, Multiplication, Substration
True Answer D

A. Addition, Division, ModulusAddition, Division, Modulus

B. Addition, Modulus, DivisionAddition, Modulus, Division

C. Multiplication, Substration, ModulusMultiplication, Substration, Modulus

D. Modulus, Multiplication, SubstrationModulus, Multiplication, Substration

By default a real number is treated as a

Option A. float
Option B. double
Option C. long double
Option D. far double
True Answer B

Explanation :

In computing, 'real number' often refers to non-complex floating-point numbers. It include both rational numbers, such as 42 and 3/4, and irrational numbers such as pi = 3.14159265...
When the accuracy of the floating point number is insufficient, we can use the double to define the number. The double is same as float but with longer precision and takes double space (8 bytes) than float.
To extend the precision further we can use long double which occupies 10 bytes of memory space.

Option A. Either True or False
Option B. is less than or is more than
Option C. is equal or less or more
Option D. All of the above
True Answer A

Explanation :

Relational operators always yield a TRUE or FALSE result. Remember that a TRUE result evaluates to any non-zero value (often 1), while a FALSE result evaluates only to zero. Relational operators have a lower precedence than the arithmetic operators.

B. is less than or is more than से कम है या इससे अधिक है

C. is equal or less or more बराबर या कम या अधिक है

D. All of the above ऊपर के सभी

The && and | | operators

Option A. compare two numeric values
Option B. combine two numeric values
Option C. compare two boolean values
Option D. None of the above
True Answer C