Computer class 12th

Computer Science Class 12 Chapter 9 Elements Of C Test Paper

Q.1: Tick the correct Option.

1. A memory cell that has specific name and location is called………..?

(a) data type

(b) keyword

(c) constant

(d) variable✅

2. Relation operator takes operands:

(a) 2

(b) 3

(c) 4

(d) 1✅

3. If a relational expression is true, it has value?

(a) -1

(b) 0

(c) 1✅

(d) All

4. A binary stream is a sequence of:

(a) Kilo bytes

(b) Bytes

(c) Bits✅

(d) All

5. Which operator has the lowest precedence:

(a) !✅

(b) +

(c) =

(d) ==

Q.2: Give answer to any eight short questions of the following.

1. Define identifier with example.

2. Define key word, also give 10 key words.

3. Define compound assignment operator.

4. Define variable declaration.

5. Trace the output.

Void main()

{

 Char word1, word2, word3;

 word1 = ‘A’;

 word2 = ‘B’;

 word3 = ‘C’;

 Printf(“%c%c word3”, word1, word2);

6. What is difference between constant and variable?

7. What is data type?

8. What is user defined data type.

9. Write all the relation operator and their symbols.

Q.3: Give answer to any two questions of the following.

 (a) Define constant and explain its types in detail.

(b) Write down rules for naming a variable in C.

Related Articles

Back to top button
error: Content is protected !!
Enable Notifications OK No thanks