Unique School System: Q.1: Choose The Correct Answer.
Unique School System: Q.1: Choose The Correct Answer.
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=
(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 ☺