Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
141 views4 pages

Class 5 Computer Science Assignment

This document contains an assignment for a Class 5 student in Modern Indian School, Doha, Qatar for the 2017-2018 academic year. The assignment contains questions about identifying errors in BASIC programming language instructions, writing the output of sample programs, and writing the programming instructions to generate a given output. Students are asked to provide their name and section number. The questions cover topics like PRINT, TAB, SCREEN, DRAW commands and generating basic patterns.

Uploaded by

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

Class 5 Computer Science Assignment

This document contains an assignment for a Class 5 student in Modern Indian School, Doha, Qatar for the 2017-2018 academic year. The assignment contains questions about identifying errors in BASIC programming language instructions, writing the output of sample programs, and writing the programming instructions to generate a given output. Students are asked to provide their name and section number. The questions cover topics like PRINT, TAB, SCREEN, DRAW commands and generating basic patterns.

Uploaded by

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

DPS- MODERN INDIAN SCHOOL, DOHA- QATAR

ACADEMIC YEAR (2017-2018)


ASSIGNMENT
CLASS V
NAME : ________________________________ SEC : ______

1. IDENTIFY THE ERRORS AND WRITE THE CORRECT ANSWER FOR THE
FOLLOWING INSTRUCTIONS:

A. 10 Print hello
_______________________________________

B. 10 Print “Science

_______________________________________

C. Print ‘Vacation’

_______________________________________

2. WRITE THE OUTPUT FOR THE FOLLOWING INSTRUCTIONS :

A. 10 PRINT “ADDITION OF TWO NUMBERS”


20 PRINT “FIRST NUMBER IS 5”
30 PRINT “SECOND NUMBER IS 8”
40 PRINT 5 + 8
50 END
B. 10 PRINT TAB(2); “A”
20 PRINT TAB(4); “B”
30 PRINT TAB(2); “C”
40 PRINT TAB(6); “D”

C. 10 PRINT TAB(5); “JASMINE”


20 PRINT TAB(5); “ROSE” , “LOTUS”
30 PRINT TAB(15); “LILY” ; “TULIP”
40 END
D. 10 PRINT TAB(5); “- - - - - ”
20 PRINT TAB(5); “-” ; TAB(9); “-”
30 PRINT TAB(5); “-” ; TAB(9); “-”
40 PRINT TAB(5); “- - - - - ”
50 END

3. DRAW THE OUTPUT FOR THE FOLLOWING QBASIC PROGRAMS:

A. 10 SCREEN 1
20 DRAW “U50”
30 DRAW “R50”
40 DRAW “D30”
50 DRAW “R50”
60 DRAW “D30”
70 DRAW “L60”

B. 10 SCREEN 1
20 PRINT “R50”
30 PRINT “U50”
40 PRINT “R50”
50 PRINT “D50”
60 PRINT “R50”
70 PRINT “U50”
80 PRINT “R50”
90 PRINT “D50”
100 PRINT “R50”
4. WRITE THE QBASIC INSTRUCTIONS FOR THE FOLLOWING OUTPUT:
ANS:
A.
Starting point

B. *********** ************
* *
* *
* *
***********

ANS:

You might also like