3. ___ are special storage areas within a computer’s Central Processing Unit.
(a) Static (b) Extern
(c) Register (d) auto
4. C= a % 2 when a is 25 what is value of C?
(a) 10 (b) 24 (c) 12 (d) 1
5. ______ operators are used to manipulate the data at bit level.
(a) Assignment (b) Relation (c) Special (d) Bitwise
6. _____ structure, in which statements are repeatedly executed.
(a) Selection (b) Sequential (c) Iteration (d) Encapsulation
7. The ______ statement is used to terminate the loop
(a)Exit (b) Break (c) goto (d) continue
8. _______Determines first occurrence of a given character in a string
(a) stricmp() (b) strchr()
(c) Strrchr() (d) Strnset()
9. ______ is collection of different data types.
(a) Array (b) Function (c) Structure (d) File
10. A pointer is said to be _____ when its right value is 0.
(a) Zero pointer
(b) empty pointer
(c) Null pointer
(d) Free pointer
Answers
Answer:
(1) register
(2) 0.5 , the option is not there ...
(3) bitwise operator
(4) Iteration
(5) Break
(6) strchr()
(7)Data structure
(8)null pointer
Answer:
3.Option (c)
Register are special storage areas within a computer's Central Processing Unit.
4.Option (d)
The value of C is 1
5.Option (d)
Bitwise operators are used to manipulate the data at bit level.
6.Option (c)
Iteration is a structure, in which the statements are repeatedly executed.
7.Option (b)
The Break statement is used to terminate the loop.
8.Option (b)
strchr() determines first occurrence of a given character in a string.
9.Option (a)
Array is a collection of different data types.
10.Option (c)
A pointer is said to be Null pointer when its right value is 0.
Explanation:
3.CPU's use Register storage class to store intermediate data and instructions.
4.The value of C is 1.Because % (module) operator returns only the remainder to the output.
5.Bitwise operators are used to manipulate the data at bit levels .
Some of them are
- Bitwise AND operator
- Bitwise OR operator
- Bitwise EX-OR operator
6.Iteration is type of structure in which the statements are repeatedly executed. They are also called Looping statements.
For example:
(In C language)
- for loop
- while loop
- do-while loop
7.To terminate the above looping statements we use break statement.
8.strchr() find the first occurrence of a given character in a string.
9.An array is a combination of different data types such as integer, float, character etc...,
10.A Null pointer is a pointer with location 0.