0% found this document useful (0 votes)
18 views

Unique School System: Q.1: Choose The Correct Answer.

The document is a test paper for class 10th with questions about computer programming concepts like arrays, loops, and data structures. It contains multiple choice, short answer and long answer questions testing knowledge of topics like array declaration syntax, nested loops, for loop flow and working, programs to print tables and patterns using loops.

Uploaded by

MUHAMMAD RASHID
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Unique School System: Q.1: Choose The Correct Answer.

The document is a test paper for class 10th with questions about computer programming concepts like arrays, loops, and data structures. It contains multiple choice, short answer and long answer questions testing knowledge of topics like array declaration syntax, nested loops, for loop flow and working, programs to print tables and patterns using loops.

Uploaded by

MUHAMMAD RASHID
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

UNIQUE SCHOOL SYSTEM ®

BHOBTIAN CHOWK
Date: 01-02-2022 Time: 40 min
Class: 10th Test: Computer Chapter#04 page 86 to 100 Total Marks: 25
Name: __________________________________________
Q.1: Choose the correct answer. (06)
i. Array elements are stored at ---------------memory location.
(a) Contiguous (b) Scattered (c) Divided (d) None
ii. If the size of an array is 100, the range of indexes will be ---------------.
(a) 0 - 99 (b) 0 - 100 (c) 1 - 100 (d) 2 - 102
iii. Array can be initialized ------------------- declaration.
(a) At the time of (b) After (c) Before (d) Both a &b
iv. How many Structures of loop?
(a) 2 (b) 3 (c) 1 (d) 5
v. ------------- part of the is executed first?
(a) Condition (b) Body (c) initialization (d) Increment/Decrement
vi. After a given condition is true than program control move ------------ in for loop.
(a) Body of the loop (b) Increment/Decrement (c) initialization (d) None of these

Q.2: Give the short answers to the following questions. Note: “Any 07” (14)
i. What is the use of nested loops?
ii. Define Array Declaration also write its syntax.
iii. Define Data structure.
iv. int sum = 0, p;
for( p=5; p <= 25; p= p +5)
sum = sum + 5;
printf (“ Sum is %d”, sum); Output=

v. Write the flow chart of for loop.


vi. Write the working of for loop.
vii. for( int i =36; i < = 60 ; i*2)
printf(“**”); } Output=

viii. Define array.


ix. Write a program that display the table of 7.
x. Write a program that display the values from 1 – 10 on the computer screen by using for loop.
Q.3: Write the answer of the following long question. Note “Any One” (05)

(a) Write a program that calculate the factorial of a number of inputs by user. (note using for loop)
(b) Write a program to display the following pattern of stars on screen.

******
*****
****
***
**
*

BEST OF LUCK ☺

You might also like