0% found this document useful (0 votes)
137 views1 page

Test Chapter # 3

Here are 5 parts with answers: 1. Control structures are programming constructs that control the flow of execution of a program. There are 4 basic control structures in BASIC - sequence, selection, iteration and jump. Sequence structures (like PRINT statement) execute statements in sequence from top to bottom. Selection structures (like IF...THEN...ELSE) allow choosing one of several blocks of code to execute based on a condition being true or false. Iteration structures (like FOR...NEXT loop) allow repeating a block of code a specified number of times or until a condition is met. Jump structures (like GOTO statement) allow skipping code and jumping to another part of the program. 2.

Uploaded by

Sikandar Aman
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)
137 views1 page

Test Chapter # 3

Here are 5 parts with answers: 1. Control structures are programming constructs that control the flow of execution of a program. There are 4 basic control structures in BASIC - sequence, selection, iteration and jump. Sequence structures (like PRINT statement) execute statements in sequence from top to bottom. Selection structures (like IF...THEN...ELSE) allow choosing one of several blocks of code to execute based on a condition being true or false. Iteration structures (like FOR...NEXT loop) allow repeating a block of code a specified number of times or until a condition is met. Jump structures (like GOTO statement) allow skipping code and jumping to another part of the program. 2.

Uploaded by

Sikandar Aman
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

GOVT.

OF PUNJAB
Punjab Daanish Schools &Centers of Excellence Authority

DAANISHSCHOOL (BOYS) FAZILPUR


Test 3rdChapter
Subject: COMPUTER SCIENCE ` Class: 10th

Max Marks: Time Allowed:

Name: Date:

DBR: Section:

Objective
Note: You have four choices for each objective type question as A. B, C and D. The choice which you think is correct; fill that
circle infront of that question number. Use Marker or pen to fill the circle cutting or filling two or more circles will result
in zero mark in that question.
Total Marks: 10
1. FOR…NEXT is used to implement.
(A) Iteration (B) Selection (C)Sequence (D) All of the above

2. Which of the following is not a logical operator?


(A) AND (B) OR (C) NEITHER (D)NOT
3. If the integer value of the numeric expression following the keyword ON, in ON…GOTO statement, is greater
than 255, which type of error occurs?
(A) Syntax error (B) Logical Error (C) Runtime error (D) It’s not an error

4. Which of the following cannot be used to exit from an error handling routine:
(A) RESUME (B) RESUME NEXT (C)END (D) STOP

5. Which one is a multiple branching statement?


(A) IF…ELSE (B) GOTO (C)ON….GOTO (D) ON ERROR GOTO line_number

6. IN GWBASIC, ________ command is used to clear the screen.


(A) CLS (B) DLS (C) RLS (D) Screen clear
7. _______ Statement is used to accept data from the user during program execution.
(A) LOAD (B) PRINT (C) INPUT (D) READ-DATA

8. _____ is a named space in the computer’s memory whose value can be changed during the execution of a
program.
(A) Constant (B) Program (C) Data (D) Variable

9. In BASIC programming language which character is used as a last character with string variable?
(A) $ (B)& (C) % (D) ?

10. The _________ statement is used to display message or output to the screen.
(A) LOAD (B) SAVE (C) PRINT (D) RUN

2. Attempt any five Parts: [5x3=15]

1. Define control structure. How many control structures are available in BASIC, Discuss briefly?
2. Write a program to find larger of two numbers. The program should get the numbers from the user.
3. Write a program to print the sum of sequence of first five even numbers using FOR…NEXT loop.
4. Write a program to print first ten odd numbers using WHILE…WEND loop.
5. Write a program to print the table of a given number.The program should get the number from the user.

You might also like