You are on page 1of 1

JAWAHAR NAVODAYA VIDYALAYA

R.C. GHAT, KHOWAI, TRIPURA


CLASS- XI (SCI. & HUM.)
UNIT TEST-III

A. One marks questions


Q 1. What is program structure?
Q 2. What is the need for programming methodology?
Q 3. How many times is the loop body executed in a do-while loop?
Q 4. Which C++ loops are entry-controlled loop?
Mark True or False
Q 5. All the elements in an array need not be of the same type.
Q 6. An array element is accessed using an index number.
Q 7. In a while loop, the body of the loop is repeated as long as condition remains
false.
Q 8. A program which is effective and efficient is known as a useful program.
B. Two marks questions
Q 1. What is a good program? Write the characteristics of a good program.
Q 2. What are the advantages and disadvantages of the modular programming?
Q 3. What are run-time errors? How are they removed?
Q 4. What is an algorithm? What are the characteristics of an algorithm?
Q 5. What is the difference between a while and do-while loop?
Q 6. What is an array? How to declare and initialize an array?
Q 7. Write a program to check whether the given number is even or odd.
Q 8. How does the continue statement differ from the break statement?
Q 9. How can variables be initialized within a for loop? Explain with an example.
Q 10. What will be the output of following programs?
#include<iostream.h>
void main( )
{
int p=1;
do
{
cout<<p;
}while(p--);
}
C. Four marks questions
Q 1. Write a program to take 10 inputs from user and display it.
Q 2. Write a program to check whether the number input by the user belongs to an
array or not.
Q 3. Write a program to print the following series:
1 5 9 13 ………… 49

You might also like