Search This Blog

Thursday, April 2, 2015

Operators bits



1. Which of the following is not unary operator
A &(address)
B sizeof
C ++
D /

 ANSWER  D                                       

2. if x=2*3/2 then x value is -------------
A 3
B 0
C 2
D none

 ANSWER  A                                       

3. 5 > 3 returns the value
A 1
B 0
C 2
D none

 ANSWER  A                                       

4. sum=1+2+3+4+5 it evaluates -----------------
A left to right
B right to left
C both
D none

 ANSWER  B                                       

5. sizeof(int) how many bytes
A 1
B 2
C 3
D 4

 ANSWER  B                                       

6. ANSI abbrevation
A American National Standard Institute
B American New Standard Interface
C A American National Standard Industry
D none

 ANSWER  A                                       

7. BCPL abbrevation
A Basic Combined Programming Language
B Basic computer programming Language
C Basic Control Programming Language
D none

 ANSWER  A                                       

8. Binary Operator Contains ___________operands
A 2
B 3
C 4
D 5

 ANSWER  A                                       

9. X=5 % 2 X value ________
A 2
B 1
C 0
D 3

 ANSWER  B                                       

10. 10 !=20 returns _____
A 1
B 2
C 0
D 3

 ANSWER  A                                       

11. 10 > 2 && 2 < 10 returns
A 1
B 0
C 2
D 3

 ANSWER  A                                       

12. conditional operator also known as _____________operator
A unary
B binary
C ternary
D none

 ANSWER  C                                       

13. which of following is not delimitor
A #
B ,
C :
D !

 ANSWER  D                                       

14. logical AND symbol is ___________
A **
B @@
C &&
D ^^

 ANSWER  C                                       

15. Assignment operators are evaluates from _________
A left to right
B right to left
C all
D none

 ANSWER  B                                       

16. for working of printf() which header file is required
A conio.h
B limits.h
C stdio.h
D float.h

 ANSWER  C                                       

17. % (modulo division )operator is not valid for
A int
B char
C float
D none

 ANSWER  C                                       

18. C variable cannot start with
A number
B special symbol except _
C an alphabet
D a and b

 ANSWER  D                                       

19. The address of a variable temp of type float is
A &temp
B *temp
C float *temp
D none

 ANSWER  A                                       

20. what is range of char data type
A -128 to 127
B -127 to 128
C 0 to 255
D none

 ANSWER  A                                       

21. unsigned char data type range ______ bytes
A -128 to 127
B 0 to 255
C 127 to 128
D none

 ANSWER  B                                       

22. unsigned int data type size ______ bytes
A 2
B 4
C 8
D 10

 ANSWER  A                                       

23. double data type size ______ bytes
A 10
B 8
C 4
D 2

 ANSWER  B                                       

24. char data type size ______ bytes
A 4
B 8
C 2
D 1

 ANSWER  D                                       

25. int data type size ______ bytes
A 2
B 3
C 4
D 1

 ANSWER  A                                       

No comments:

Post a Comment