Академический Документы
Профессиональный Документы
Культура Документы
12.BASIC STATEMENTS
[5
QUESTIONS]
[Turn over
12.BASIC STATEMENTS
BOARD EXAM
EXCEL HIGHER SECONDARY SCHOOL, 17/190A, Awai Farm Lane, THIRUVATTAR.
Tel: 04651-282319 Fax: 04651-282312
email: excelschoolhsec@gmail.com
website: www.excelschools.edu.in
[Turn over
12.BASIC STATEMENTS
[Oct-08]
d) Operators
2. How many methods are there for assigning data to the variables?
[Oct12]
a) 3
b) 2
c) 4
d) 5
[Mar-07,Oct-09,Jun-11]
c) @
d) $ $
[Turn over
12.BASIC STATEMENTS
[Jun-10,Mar-13]
d) 5
[Turn over
12.BASIC STATEMENTS
[Oct-11,12,Jun-12]
d) while
18. Which statement transfers control to one of the many possible points?
[Jun-09,Mar12]
a) switch
b) if
c) do..while d) for
19. Every action block in switch statement should be terminated with a
.statement.
[Jun-08]
a) break
b) continue
c) stop
d) exit
20. Include ..statement in action block in order to exit from switch
statement.
[Mar-08]
a) continue
b) break
c) stop
d) exit
21. There are .kinds of loops in C ++.
a) 3
b) 2
c) 5
[Oct-07]
d) 4
[Mar-07]
d) if
[Oct-09]
d) switch
[Turn over
12.BASIC STATEMENTS
27. Which statement accomplishes jump from the current loop or exit the current
loop?
[Mar-10,Jun-11]
a) stop
b) continue
c) break
d) quit
28. A program written in high level language is called as .
[Mar-07,Oct08]
a) object code
b) complier c) executable file d) source code
29. The machine readable from of a program is called as
[Jun-08,11,Oct-10,12]
a) source code
b) object file c) executed file d) application file
30. ..creates object files from source code.
[Mar-08,10,Oct-11]
a) complier
b) executable file
c) object file
d) application file
31. Which is a multiple branching statement where, based on a condition, control
is transferred to one of many possible points
[Mar-12]
a) if
b)switch
c) do
d) for
32. Which statement is used to terminates the loop irrespective of the expression
in C++
[Mar-12]
a) exit
b) continue
c) while
d) break
33. The statement int A;b; is invalid because
a) Only one variable should be given
c) Variable should is not allowed
[Jun-07,09,Oct-09]
b) Capital A is not allowed
d) All of these
34. How many times the following loop will be executed? For (i=1; i<6; i ++)
[Jun07]
a) 1
b) 5
c) 6
d) 7
35. The break statement would exit only
[Jun-07,09]
[Turn over
12.BASIC STATEMENTS
a) current loop
b) current function
c) current program
d) none of these
Read the following C++ program carefully and answer the Questions from
36 to 40
#include<iostream .h>
void main ()
{
int num=2;
do
{
cout<<num*num<<\t;
num + =1;
} while (num<6);
}
36. Name the control variable used in the program.
[Mar-09]
a) num
b) + =
c) \t
d) None of these
37. What is the test expression (conditional) used?
a) num
b) num * num c) (num < 6)
[Mar-09]
d) None of these
d) 3
[Mar-09]
[Mar-09]
[Mar-09]
41. How many times the following loop will be executed? For (i=1; i=<30; i=++)
[Mar10]
a) 1
b) 29
c) 30
d) 31
[Turn over
12.BASIC STATEMENTS
42. What is the error throw by the complier for the following snippt?
[Mar10]
if (a>b);
cout << Greater
else
cout<< Lesser;
a) Misplaced if
c) Misplaced if else
b) Misplaced else
d) Misplaced else if
43. How many times the following loop will be executed? For (i=0; i=++)
[Jun10]
a) Only one
b) Nine times c) Ten times
d) Not executed
44. Which is linked with libraries to create an executed file?
a) Source code
b) Object code c) Programs
[Jun-10]
d) Computer
45. The appropriate declaration statement to initialize the variable name with
the value Abdual Kalam is
[Oct-10]
a) char name = Abdual Kalam;
b) char [ ] name =Abdual Kalam;
c) char name [ ] = Abdual Kalam;
d) char name [ ] =Abdual Kalam;
46. While < (condition)> {.} loop is called as
a) entry check loop
b) exit check loop
c) multi-check loop
d) nested loop
[Mar-11]
47. Program statement that causes jump from one part of the program to another
is
[Mar-11]
a) Control Structure
b) Assignment Statement
c) Input/ Output Statement d) Conditional Structure
[Turn over
12.BASIC STATEMENTS
48. In C++, which should be declared or defined before they are used in a
program?
[Oct-11,Mar-12]
a) Data base b) Variable
c) Objects
d) Class
49. The variable used in for loop is called
a) Static variable
b) Counting variable
c) Control variable
d) for variable
[Oct-11]
[Turn over
12.BASIC STATEMENTS
CREATED
1. How many methods are there for assigning date to the variable in C++ ?
a) 2
b) 3
c) 4
d)5
[Turn over
12.BASIC STATEMENTS
2. Date is read from the keyboard during run time by using the object
a) cin
b) cni
c) nic
d) nic
3. Cin is a predefined object which corresponds to a standard ..stream
a) input
b) output
c) process
d) 10
4. file comprises of all standard declarations and definitions for
predefined functions
a) header
b) footer c) istream
d) iostream
5. The extraction operator that extracts date from the input stream object
is.
a) cin
b) cout
c) cio
d) count
6. Program statements that causes jumps are called as statements are
structures.
a) control b) assignment
c) increment
d) decrement
7. ..statement which choose between two alternatives.
a) if else b) if
c) for
d) while
8. The multiple branching statement is.statement?
a) if
b) switch
c) for
d) while
9. Switch expression should be evaluated to an ..constant only.
a) integer b) string
c) variable
d) float
10. ----------is an entry controlled loop and is used when an action is to be
repeated for a predetermined number of times .
a) for
b) switch
c) if
d) break
11. statement is used when a loops execution is terminated when the
text condition evaluates to false.
a) continue
b) break
c) if
d) switch
12. A loop embedded within another loop is called
[Turn over
12.BASIC STATEMENTS
b) Loop
c) Break
d) continue
********
[Turn over