NAT I Computer Science With Answers

NAT I Computer Science

Sr. # Questions Answers Choice
1 Printf() is a Built-in function User-defined function Local function Keyword
2 Formal arguments are also called Actual arguments Dummy arguments Original arguments Referenced arguments
3 Which of the following looks for the prototypes of functions are used in a program? Linker Loader Compiler Parser
4 Which of the following is true about a function call? Stops the execution of the program Transfers control to the called functions Transfers control to the main function
5 Global variables are created in RAM ROM Hard disk Cache
6 Function prototypes for built-in function are specified in Source files Header files Object files Image files
7 A do-while loop is useful when The body of the loop will never be executed The body of the loop will be executed at least once The body of loop may never be execute
8 In the do while loop the test condition is evaluated After the loop is executed Before the loop is executed Between the loop is executed All the above
9 The for loop contains the Initialize expression Test expression Increment expression All the above
10 Comma operator is also called Update operator Sequential evaluation operator Unary operator None
11 The break statement is used to exit from which part of a loop? Beginning Middle End None of the above
12 The initialize expression and increment expression are contained in the loop expression in a While loop For loop Do-while loop Mathematical while loop
13 A multiple statement while loop is terminated with a Right brace Right bracket Coma Semicolon
14 ,,,,,,,,,,,,,,is used to separate the three parts of the loop expression in a for loop : ; " |
15 The Ionc variable is initialized Inside the loop Outside the loop Either inside or outside the loop At the end of loop
16 The condition being tested may use which of the following operations? Relational operators Assignment operators Logical operator Both A and B
17 To associate a group of statements with the while statement enclose them between a pair of { .} {} ( ) "  "
18 The statement associated with the while statement can be a ........... Unary statement Compound statement Binary statement Ternary statement
19 In case of programing when you want to do something a fixed number of times then which of the following statement is used? For statement While statement Do-while statement Continue statement
20 The method by way of which we can repeat a part of program is Using a for statement Using a do-while statement Using a while statement Using a if-then-else statement
Download This Set

Is this page helpful?