C Programming Questions & Answers: part10



Software Programming : C Programming QUESTIONS AND ANSWERS :: part10 : 1 to 5

Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :

1.What is the final value of �a�, if the following code is executed with initial value of �a� as 10? int b=10, c=20, d=-10; a = 20-c > b+d; a--;

9
0
10
1
-1.

2.The function islower (char) checks whether a character is in lower case or not and hence it should return

The character in lower case
The character itself
Nothing
-1, 0, or 1
0 or 1.

3.Pick the fully correct and portable method to obtain the most significant byte of an unsigned integer x.

x >>24
x || 0xFF00
x && 0xFF00
x >> (CHAR_BIT * (sizeof(int)-3))
x >> (CHAR_BIT * (sizeof(int)-1)).

4.The number of binary bitwise operators are

2
3
4
5
6.

5.What is the final output for the below code? int i = 020; int j = 025; int k = 50; k=i + j; printf( �%d�, k );

45
045
50
037
37.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Trust because you are willing to accept the risk, not because it’s safe or certain