11 Computer Science
11 Computer Science
SEPTEMBER
- 2022
ONEMARK EXAMINATION, COMPUTER SCIENCE
IMax. Marks: 100
used
First generation computers (b) Transistors
(c) I n t e g r a t e d c i r c u i t s (d) Microprocessors
1.
(a) Vacuum tubes
Name the volatile memory (c) RAM
(d) EPROM
(a) ROM (b) PROM
Identify the output device (c) Monitor
(d) Mouse
(a) Keyboard (b) Memory
4
ldentify the input device (c) Plotter (d) Projector
(a) Printer (b) Mouse ec.
used for printing building plan, flex board, (d) inkjet printer
.
55.
a)5 (b) 4
(c) 3 (d) 2
If 0<x before the assignment x := x-1 after the
(a) 0< x (6) 0 d" x assignment, we can condiude tnat
(C)x =0 (d) 0 e'x
56. Suppose u, v= 5, 10 before the assignment. What are the values of u and v after the sequence ot
assignments?
1u=VV
2v:u (d) u, v = 10, 10
(a) u, v = 5, 5 (b) u, v = 10, 5 10
(c) u, v 5,
=
57. Which of the following properties is true after the assignment at ineo
1-a+b =0
2 a, b a+1, b-1
3-
(a) atb > 0 (b) atb < 0 (c) atb= 0 (d) a = b
58. If C is false just before the loop, the control flows through
1 S1
2 while C
3 s2
4 $3
(a) S1,S3 (b) S1,S2;S3 (c) S1,$2;$2;$3 (d) S1,$2:$2:$2,$3
59. If C1 is false and C2 is true, the
1 if C1
compound statement
2 S1
3 else
4 if C2
5 s2
else
7 $3
executes
(a) S1 (b) $2 (c) $3 (d) none
60. How many times the loop is iterated?
0
while n <= 5
nn* 1
(a) 4 (b) 5 (c) 6 (d) 0
61. A loop invariant need not be true
(a) at the start of the loop. (b) at the start of each iteration
(c) at the end of each iteration (d) at the start of the algorithm
62. Which of the following is not an'invariant of the assignment?
m, n m+2, n+3
(a) mmod 2 (b) n mod 3 (c) 3 x m - 2xn (d) 2 x m - 3 xn
63. If Fibonacci number is defined recursively aas
F(n)= n
Fn- 1)+Ftn--2)otherwis*
toevaluate F(4), how many times F() is applied?
(a) 3 )4 (c) 8 (d) 9
64. Who developed C++?
(a) Charles Babbage (b) Bjarne Stroustrup (c) Bill Gates (d) Sundar Pichai
65. What was the original name given to C++?
(a) CPP (b) Advanced C (c) C with Classes
66. Who coined C++?
(d) Class with C
(a) Rick Mascitti (b) Rick Bjarne (c) Bill Gates
67. The smallest individual unit in a program is: (d) Dennis Ritchie
(a) Program (b) Algorithm (C) Flowchart (d) Tokens
68. Which of the following operator is extraction operator in C++?
(a) >>
(b) (c)<> (d)
69. Which of the following statements is not true?
(a) Keywords are the reserved words.
(b) Keywords can be used as an identifier name.
(c) An integer constant must have at least one digit without a decimal point.
(d) Exponent form of real constants consist of two parts
70. Which of the
following is a valid string literal
(a) 'A (b) Welcome (c) 1232
71.
Aprogram written in high level language is called as (d) 1232"
(a) Object code (6) Source code (c) Executable code (d) All the above
result ofa&b?
72
2. Assume a=5, b=6; what willb e c) 1 (d)
(b) 5
(a) 4
called as
compile
time
perators?
ope
73. Which of the following is
(b) pointer
(c) virtual (d) this
(a) size of keyword?
n o t a C++
74. Which of the following is
(b) template
(c) this (d) space
(a) switch having a fracti.
naving a
fractional
75. A.. ...Constant is a numeric
constant
(c) (d) 1
(a) T
82. The default extension of C++ source file..
)F
(a) obj (b) C (c) cpp (d) exe
Is a set of grammatical rules to construct a program
83.
(a) Syntax (6) Semantic (c) Rule (d) Law
84. Which kind of error occurs ifa program has not produced expected result even though the program is
grammatically correct?
(a) Syntax Error (b) Semantic Error (c) Run-time error (d) Unknown error
85. Which of the following is not an atomic data type in C++?
(a) int (6) float (c) void (d) pointer
86 .are user-defined names assigned to specific memory locations in which the values ate stored.
(a) Constants (b) Variables (c) Keywords (d) Operators
87. The unknown values occupied in memory is known as:
(a) Garbage (6) wastee (c) Invalid (d) Null
88. A variableinitialized during the execution of a program is known.as
(a) Runtime initialization (b) Dynamic initialization (c) Variable initialization (d) All the above
89. In C++ which of the following keyword is used to define a constant?
(a) int (6) long (c) double (d) const
90. Which of the following symbol is used to reference?
(a)$ (b) &
91. An expression is a combination of
# (d) ?
(a) operators (b) constants (c) variables (d) all the above
92. Implicit conversion in C++ is also called
(a) Automatic conversion (b) Dynamic conversion (c) Regular conversion (d) Explicit conversion
93 Let x=78.15; what will be the output of cout<<(int)xX;
(a) 15 (6) 15.78 (d) 7.815
94. How many categories of data types are available in C++?
(a) 5 (b) 4 (d) 2
95. What will be the result of following statement? c)3
char ch= 'B;
cout < (int) ch;