NAT I Computer Science With Answers

NAT I Computer Science

Sr. # Questions Answers Choice
1 What mechanism is used to execute a set of operations repeatedly? Goto statement Switch statement Loops Functions
2 Which of the following symbol is represented as unary operator? + ! / ~
3 A decision-making operator is called Arithmetic operator Assignment operator Conditional operator Logical operator
4 Expression 1? Expression 2: Expression 3; If the expression! is true then which of the following is correct? The value returned will be expression! The value returned will be expression 2 The value returned will be expression 3 No value return
5 Which of the following is a conditional operator ? and : : and ; ? and : ! and ?
6 Conditional operators are Unary operator Binary operator Ternary operator None
7 If we write an entire if-else construct within either the body of the if statement or the body of an else statement this is called Dangling else Multiple statement with if-else Nested 1-else Switch statments
8 If we dropped the pair of braces then what would happen? Only one statement to be executed in the if block Only one statement to be executed in the else block Only one statement to be executed in the if block and only one statement to be executed in the else block
9 If block is called The group of if and else statement The group of statements after the if up to and not including the else The group of statements after the else up to and not including the if All the above
10 Which of the following is not a relational operator? == = != <=
11 Which of the following operators are used to express the conditions? Arithmetic operator Relational operator Assignment operator Logical operator
12 What keyword does the C language to implement the decision control instruction use? If Else If-else Both a and c
13 The statements following else in an if-else construction are executed when The conditional expression following if is false The conditional expression following if is true The conditional expression following else is false The conditional expression following else is true
14 A,,,,,,,,,,,,,,,,is a series of declarations and statements surrounded by braces. Compound statement If statement If-else statement Switch statement
15 When we declare the integer as unsigned int num-students then what will be the range of integers? -32768 to +32767 -65535 to 0 0 to 5535 0 to 4294967295
16 Which of the following is correct? Sort unsigned int 1 Unsigned int I Unsigned I
17 23 is an integer and would occupy two bytes whereas 23L is a integer and would occupy Two bytes Three bytes Four bytes Six bytes
18 Which of the following function is used for scanf() function preceding the variable name used as an argument? % $ & @
19 If scanf function (&) represented as Relational operator Logical operator Address operator Precedence operator
20 Which of the following function allows us to enter the data from the keyboard Printf() Scanf() Getch() Getche()
Download This Set

Is this page helpful?