c Objective

6
. Which of the following is an example of compounded assignment statement? a = 5 a += 5 a = b = c a = b 2. The operator && is an example for ___ operator. Assignment Increment Logical Rational 3. The operator & is used for Bitwise AND Bitwise OR Logical AND Logical OR 4. The operator / can be applied to integer values float values double values All of these 5. The equality operator is represented by := .EQ. = == 6. Operators have hierarchy. It is used to know which operator is most important is used first is faster operates on large numbers 7. The bitwise AND operator is used for Masking Comparison Division Shifting bits 8. The bitwise OR operator is used to set the desired bits to 1 set the desired bits to 0 divide numbers multiply numbers

Transcript of c Objective

Page 1: c Objective

. Which of the following is an example of compounded assignment statement?

a = 5 a += 5 a = b = c a = b

2. The operator && is an example for ___ operator.

Assignment Increment Logical Rational

3. The operator & is used for

Bitwise AND Bitwise OR Logical AND Logical OR

4. The operator / can be applied to

integer values float values double values All of these

5. The equality operator is represented by

:= .EQ. = ==

6. Operators have hierarchy. It is used to know which operator

is most important is used first is faster operates on large

numbers

7. The bitwise AND operator is used for

Masking Comparison Division Shifting bits

8. The bitwise OR operator is used to

set the desired bits to 1

set the desired bits to 0

divide numbers multiply numbers

9. Which of the following operator has the highest precedence?

* == => +

10. The associativity of ! operator is

Right to Left Left to Right (a) for Arithmetic (a) for Relational

Page 2: c Objective

and (b) for Relational and (b) for Arithmetic

11. Which operator has the lowest priority?

++ % + ||

12. Which operator has the highest priority?

++ % + ||

13. Operators have precedence. A Precedence determines which operator is

faster takes less memory evaluated first takes no arguments

14. Integer Division results in

Rounding the fractional part

truncating the fractional part

Floating value An Error is

generated

15. Which of the following is a ternary operator?

? * sizeof ^

16. What will be the output of the expression 11 ^ 5?

5 6 11 None of these

17. The type cast operator is

(type) cast() // " "

18. Explicit type conversion is known as

Casting Conversion Disjunction Separation

19. The operator + in a+=4 means

a = a + 4 a + 4 = a a = 4 a = 4 + 4

20. p++ executes faster than p+1 because

Page 3: c Objective

p uses registers p++ is a single

instruction ++ is faster than + None of these

21. A Compiler is ____

a combination of computer hardware

a program which translates from one high-level language to another

a program which translates from one high-level to a machine level

None of these

22. When a key is pressed on the keyboard, which standard is used for converting the keystroke into the corresponding bits

ANSI ASCII EBCDIC ISO

23. A Pixel is

A computer program that draws picture

A picture stored in secondary memory

The smallest resolvable part of a picture

None of these

24. Which device is used as the standard pointing device in a Graphical User Environment

Keyboard Mouse Joystick Track ball

25. Which number system is usually followed in a typical 32-bit computer?

2 10 16 32

26. Which of the following is not an output device?

Scanner Printer Flat Screen Touch Screen

27. Which of the following devices have a limitation that we can only information to it but cannot erase or modify it

Floppy Disk Hard Disk Tape Drive CDROM

28. Which technology is used in Compact disks?

Mechanical Electrical Electro Magnetic Laser

Page 4: c Objective

29. Which of the following storage devices can store maximum amount of data?

Floppy Disk Hard Disk Compact Disk Magneto Optic

Disk

30. Which of the following is the largest manufacturer of Hard Disk Drives?

IBM Segate Microsoft 3M

31. The memory location address are limited to

00000 to 9ffff(16) 00001 to 9ffff(16) 00010 to 9ffff(16) 10000 to 9ffff(16)

32. The programs which are as permanent as hardware and stored in ROM is known as

Hardware Software Firmware ROMware

33. Memory is made up of

Set of wires Set of circuits Large number of

cells All of these

34. Primary memory stores

Data alone Programs alone Results alone All of these

35. EPROM can be used for

Erasing the contents of ROM

Reconstructing the contents of ROM

Erasing and reconstructing the contents of ROM

Duplicating ROM

36. Which device can understand difference between data & programs?

Input device Output device Memory Microprocessor

37. The contents of information are stored in

Memory data register

Memory address register

Memory access register

Memory arithmetic register

Page 5: c Objective

38. Memory unit is one part of

Input device Control unit Output device Central Processing

Unit

39. Algorithm and Flow chart help us to

Know the memory capacity

Identify the base of a number system

Direct the output to a printer

Specify the problem completely and clearly

40. Which of the following is not a valid size of a Floppy Disk?

8" 5 1/4" 3 1/2" 5 1/2"