Model Paper 1
1) Who is father of C Language?
A. Bjarne Stroustrup
B. Dennis Ritchie
C. James A. Gosling
D. Dr. E.F. Codd
2) C Language developed at _____?
A. AT & T's Bell Laboratories of USA in 1972
B. AT & T's Bell Laboratories of USA in 1970
C. Sun Microsystems in 1973
D. Cambridge University in 1972
3) For 16-bit compiler allowable range for integer constants is ______ ?
A. -3.4e38 to 3.4e38
B. -32767 to 32768
C -32768 to 32767
D. -32668 to 32667
4) C programs are converted into machine language with the help of
A. An Editor
B. A compiler
C. An operating system
D. None of the above
5) A C variable cannot start with
A. An alphabet
B. A number
C. A special symbol other than underscore
D. both (b) and (c)
6) Which of the following is allowed in a C Arithmetic instruction
A. []
B. {}
C. ()
D. None of the above
7) Which of the following shows the correct hierarchy of arithmetic operations in C
A. / + * -
B. * - / +
C. + - / *
D. * / + -
8) What is an array?
A. An array is a collection of variables that are of the dissimilar data type.
B. An array is a collection of variables that are of the same data type.
C. An array is not a collection of variables that are of the same data type.
D. None of the above.
9) What is right way to Initialization array?
A. int num[6] = { 2, 4, 12, 5, 45, 5 } ;
B. int n{} = { 2, 4, 12, 5, 45, 5 } ;
C. int n{6} = { 2, 4, 12 } ;
D. int n(6) = { 2, 4, 12, 5, 45, 5 } ;
10) An array elements are always stored in _________ memory locations.
A. Sequential
B. Random
C. Sequential and Random
D. None of the above
11) Bitwise operators can operate upon?
A. double and chars
B. floats and doubles
C. ints and floats
D. ints and chars
12) What is C Tokens?
A. The smallest individual units of c program
B. The basic element recognized by the compiler
C. The largest individual units of program
D. A & B Both
13) What is Keywords?
A. Keywords have some predefine meanings and these meanings can be changed.
B. Keywords have some unknown meanings and these meanings cannot be changed.
C. Keywords have some predefine meanings and these meanings cannot be changed.
D. None of the above
14) What is constant?
A. Constants have fixed values that do not change during the execution of a program
B. Constants have fixed values that change during the execution of a program
C. Constants have unknown values that may be change during the execution of a program
D. None of the above
15) What is the right way to access value of structure variable book{ price, page }?
A. printf("%d%d", book.price, book.page);
B. printf("%d%d", price.book, page.book);
C. printf("%d%d", price..book, page..book);
D. printf("%d%d", price->book, page->book);
16) perror( ) function used to ?
A.Work same as printf()
B. prints the error message specified by the compiler
C. prints the garbage value assigned by the compiler
D. None of the above
17)Which is the right way to declare constant in C?
A.int constant var =10;
B. int const var = 10;
C. const int var = 10;
D. B & C Both
18) Which operators are known as Ternary Operator?
A. .., ?
B. ?, .
C. ?, ;;
D. None of the above
19) In switch statement, each case instance value must be _______?
A. Constant
B. Variable
C. Special Symbol
D. None of the above
20) What is the work of break keyword?
A. Halt execution of program
B. Restart execution of program
C. Exit from loop or switch statement
D. None of the above
21) What is function?
A. Function is a block of statements that perform some specific task.
B. Function is the fundamental modular unit. A function is usually designed to perform a specific task.
C. Function is a block of code that performs a specific task. It has a name and it is reusable
D. All the above
22) Which one of the following sentences is true?
A. The body of a while loop is executed at least once.
B. The body of a do ... while loop is executed at least once.
C. The body of a do ... while loop is executed zero or more times.
D. A for loop can never be used in place of a while loop.
23) A binary tree with 27 nodes has _______ null branches.
A. 54
B. 27
C. 26
D. None of the above
24) Which one of the following is not a linear data structure?
A. Array
B. Binary Tree
B. Queue
D. Stack
25) Recursive functions are executed in a?
A. First In First Out Order
B. Load Balancing
C. Parallel Fashion
D. Last In First Out Order
26) Queue is a _____________ list.
A. LIFO
B. LILO
C. FILO
D. FIFO
27) The statement print f ("%d", 10 ? 0 ? 5 . 1 . 12); will print?
A. 10
B. 0
C. 12
D. 1
28) To represent hierarchical relationship between elements, which data structure is suitable?
A. Priority
B. Tree
C. Dqueue
D. All of the above
29) Which of the following data structure is linear type?
A. Strings
B. Queue
C. Lists
D. All of the above
30) The statement printf("%c", 100); will print?
A. prints 100
B. print garbage
C. prints ASCII equivalent of 100
D. None of the above
1) Who is father of C Language?
A. Bjarne Stroustrup
B. Dennis Ritchie
C. James A. Gosling
D. Dr. E.F. Codd
2) C Language developed at _____?
A. AT & T's Bell Laboratories of USA in 1972
B. AT & T's Bell Laboratories of USA in 1970
C. Sun Microsystems in 1973
D. Cambridge University in 1972
3) For 16-bit compiler allowable range for integer constants is ______ ?
A. -3.4e38 to 3.4e38
B. -32767 to 32768
C -32768 to 32767
D. -32668 to 32667
4) C programs are converted into machine language with the help of
A. An Editor
B. A compiler
C. An operating system
D. None of the above
5) A C variable cannot start with
A. An alphabet
B. A number
C. A special symbol other than underscore
D. both (b) and (c)
6) Which of the following is allowed in a C Arithmetic instruction
A. []
B. {}
C. ()
D. None of the above
7) Which of the following shows the correct hierarchy of arithmetic operations in C
A. / + * -
B. * - / +
C. + - / *
D. * / + -
8) What is an array?
A. An array is a collection of variables that are of the dissimilar data type.
B. An array is a collection of variables that are of the same data type.
C. An array is not a collection of variables that are of the same data type.
D. None of the above.
9) What is right way to Initialization array?
A. int num[6] = { 2, 4, 12, 5, 45, 5 } ;
B. int n{} = { 2, 4, 12, 5, 45, 5 } ;
C. int n{6} = { 2, 4, 12 } ;
D. int n(6) = { 2, 4, 12, 5, 45, 5 } ;
10) An array elements are always stored in _________ memory locations.
A. Sequential
B. Random
C. Sequential and Random
D. None of the above
11) Bitwise operators can operate upon?
A. double and chars
B. floats and doubles
C. ints and floats
D. ints and chars
12) What is C Tokens?
A. The smallest individual units of c program
B. The basic element recognized by the compiler
C. The largest individual units of program
D. A & B Both
13) What is Keywords?
A. Keywords have some predefine meanings and these meanings can be changed.
B. Keywords have some unknown meanings and these meanings cannot be changed.
C. Keywords have some predefine meanings and these meanings cannot be changed.
D. None of the above
14) What is constant?
A. Constants have fixed values that do not change during the execution of a program
B. Constants have fixed values that change during the execution of a program
C. Constants have unknown values that may be change during the execution of a program
D. None of the above
15) What is the right way to access value of structure variable book{ price, page }?
A. printf("%d%d", book.price, book.page);
B. printf("%d%d", price.book, page.book);
C. printf("%d%d", price..book, page..book);
D. printf("%d%d", price->book, page->book);
16) perror( ) function used to ?
A.Work same as printf()
B. prints the error message specified by the compiler
C. prints the garbage value assigned by the compiler
D. None of the above
17)Which is the right way to declare constant in C?
A.int constant var =10;
B. int const var = 10;
C. const int var = 10;
D. B & C Both
18) Which operators are known as Ternary Operator?
A. .., ?
B. ?, .
C. ?, ;;
D. None of the above
19) In switch statement, each case instance value must be _______?
A. Constant
B. Variable
C. Special Symbol
D. None of the above
20) What is the work of break keyword?
A. Halt execution of program
B. Restart execution of program
C. Exit from loop or switch statement
D. None of the above
21) What is function?
A. Function is a block of statements that perform some specific task.
B. Function is the fundamental modular unit. A function is usually designed to perform a specific task.
C. Function is a block of code that performs a specific task. It has a name and it is reusable
D. All the above
22) Which one of the following sentences is true?
A. The body of a while loop is executed at least once.
B. The body of a do ... while loop is executed at least once.
C. The body of a do ... while loop is executed zero or more times.
D. A for loop can never be used in place of a while loop.
23) A binary tree with 27 nodes has _______ null branches.
A. 54
B. 27
C. 26
D. None of the above
24) Which one of the following is not a linear data structure?
A. Array
B. Binary Tree
B. Queue
D. Stack
25) Recursive functions are executed in a?
A. First In First Out Order
B. Load Balancing
C. Parallel Fashion
D. Last In First Out Order
26) Queue is a _____________ list.
A. LIFO
B. LILO
C. FILO
D. FIFO
27) The statement print f ("%d", 10 ? 0 ? 5 . 1 . 12); will print?
A. 10
B. 0
C. 12
D. 1
28) To represent hierarchical relationship between elements, which data structure is suitable?
A. Priority
B. Tree
C. Dqueue
D. All of the above
29) Which of the following data structure is linear type?
A. Strings
B. Queue
C. Lists
D. All of the above
30) The statement printf("%c", 100); will print?
A. prints 100
B. print garbage
C. prints ASCII equivalent of 100
D. None of the above
see more at below link...