Sunteți pe pagina 1din 1

Class 2nd Year OBJECTIVE Paper Computer

Program ICS Time 20 min

Note: Cutting and overwriting is not allowed


14 Marks

1 Pre-processor directives are commands for:


a Compiler b Linker c Preprocessor d All of these
2 Loop inside another loop is called:
a while loop b do-while loop c for loop d none
3 Which of the following are NOT relational operators?
a > b < c == d <=
4 ------ is used to specify two different choices with ‘if’ statement:
a if-else statement b else statement b if statement d All
5 Which is not a logical operator
a 11 b ! C != d &&
6 Which of the following operator has lowest precedent:
a ! b + c = d ==
7 Which loop statement execute the body of loop at last once?
a do-while b While c for d None
8 The shortcut key ____ is used to compile a C program
a F5 b F2 c F9 d None
9 Which of the following is a correct comment?
a */Comment*/ b **Comment** c {Comment} d /*Comment*/
10 Local variable are also called:
a Normal b Global c Automatic d None
11 Semicolon is placed at the end of condition in:
a Do-while loop b While loop c For loop d All
12 Switch statement is an alternative of:
a If b If-else c nested-if d None
13 Logical operators are:
a NOT b AND c OR d All
14 In my opinion this paper (subjective + Objective) is :
a Easy b Normal c Difficult d Very Difficult

www.ravianseducation.webs.com

S-ar putea să vă placă și