Class 6 Computers Half Yearly 2018

Section A [40 Marks]

1. Fill in the blanks:

i) In machine language, each instruction is written in the form of a string of 0s and 1s.
ii) A compiled program runs faster than an interpreted program.
iii) A word document has .docx extension.
iv) Wildcards are special symbols that can be used to search a file or a folder.
v) A cell is the intersection of a row and a column.
vi) A web browser is used to view the HTML document.
vii) <body> is the part of the HTML document containing information about the webpage.
viii) Google is a popular search engine.
ix) E-mail is quicker than ordinary mail.
x) Internet is frequently used to retrieve information.

2. a) Write True or False for the following statements:

i) A program written in a high-level language is called an object code. (False)
ii) Mainframes are multi-user computers. (True)
iii) A file extension consists of only two characters. (False)
iv) You cannot convert existing text into a table. (False)
v) An OFF tag looks the same as the ON tag except that it has a forward slash before the command. (True)

2. b) Select the correct option:

i) Each computer language has a set of rules called:
a) Highlighted
b) Syntax
c) Symbols
d) Reserved
ii) Which one is not a high-level programming language?
a) Perl
b) Ruby
c) Diamond
d) Python
iii) Which of the following can be the extension of an image file?
a) .jpg
b) .gif
c) .png
d) All
iv) To move to the next cell, press ________ key.
a) Enter
b) Tab
c) Shift
d) Ctrl

3. a) Match the following:

i) Object code – Machine language program.
ii) Delphi – High-level language
iii) .avi – Video file
iv) URL – Unique address
v) www.anywho.com – Finding people

3. b) Write the following in one word:

i) A program written in a high-level language. (Source Program)
ii) Horizontal series of cells in a table. (Row)
iii) bgcolor is an attribute of this element. (BODY)
iv) Searching for information on the Internet or exploring the Internet. (Surfing)
v) Electronic message sent from one computer to another. (E-mail)

4. Answer the following questions:

i) Write any two features of the fourth generation languages.
a) They are programmer friendly.
b) They use English words and phrases.
ii) What are the two symbols used in wildcard characters?
* and ?
iii) Name the tab and group that have the option to change the table column’s width.
LAYOUT tab, Cell Size group.
iv) Name any two types of HTML editors.
WYSIWYG editors and text editors.
v) Write the uses of Sent and Draft folder.
Sent folder stores the messages that we have already sent.
Draft folder stores the messages that are not yet sent.

Section B [40 Marks]

Q5. a) Write a program to print the following using TAB(), starting with the 8th column:

INDIA
NDIA
DIA
IA
A
10 CLS
20 PRINT TAB(8); "INDIA"
30 PRINT TAB(9); "NDIA"
40 PRINT TAB(10); "DIA"
50 PRINT TAB(11); "IA"
60 PRINT TAB(12); "A"
70 END

b) Give the syntax with an example of the INPUT statement.
Syntax:
INPUT <variable>
Example:
INPUT AGE

Q6. a) Write a program to input two numbers and calculate and display their sum, difference, product and quotient. NOTE: Quotient to be found only if the second number is not zero.

10 CLS
20 INPUT "First number"; A
30 INPUT "Second number"; B
40 LET SUM = A + B
50 LET DIFF = A - B
60 LET PRO = A * B
70 PRINT "Sum = "; SUM
80 PRINT "Difference = "; DIFF
90 PRINT "Product = "; PRO
100 IF B <> 0 THEN PRINT "Quotient = "; A / B
110 END

b) What will be the output of the following program when it is run?

10 PRINT 1,
20 PRINT 2; 3;
30 PRINT 5
40 END
OUTPUT:
1 235

Q7. a) Write a program to accept the radius of a circular field and calculate its area and circumference. Display the result.
PI = 22 / 7
Area = PI × R2
Circumference = 2 × PI × R

10 CLS
20 INPUT "Enter radius"; R
30 LET PI = 22 / 7
40 LET A = PI * R ^ 2
50 LET C = 2 * PI * R
60 PRINT "Area = "; A
70 PRINT "Circumference = "; C
80 END

b) Explain the INPUT statement with a proper example.
INPUT statement is used to accept values from the user when the program is executing. Example: INPUT “Enter radius”; R

Q8. Write a program to assign/store the title, author, and price of any book and display them in the following position on the screen:
Title (2nd row and 7th column)
Author (4th row and 3rd column)
Price (6th row and 4th column)

10 CLS
20 LET T$ = "Harry Potter"
30 LET A$ = "J K Rowling"
40 LET P = 379
50 CLS
60 LOCATE 2, 7: PRINT T$
70 LOCATE 4, 3: PRINT A$
80 LOCATE 6, 4: PRINT P
90 END

b) Write the syntax for IF THEN ELSE statement with a proper example.

Syntax:
IF <condition> THEN <statement 1> ELSE <statement 2>
Example:
IF A > B THEN PRINT A ELSE PRINT B

Q9. a) A man buys a laptop worth Rs. 46,499 and later sold it for Rs. 21,390. Write a program to calculate and display the loss percentage.
Loss % = Loss / CP × 100

10 CLS
20 LET CP = 46499
30 LET SP = 21390
40 LET LOSS = CP - SP
50 LET LP = LOSS / CP * 100
60 PRINT "Loss % = "; LP
70 END

b) Rewrite the following BASIC statement(s) correctly:

10 DISPLAY THE AREA OF A SQUARE IS ; A
20 PRINT TAB (10, 25), "MESSI"
30 IF TEMP > 40 THEN PRINT "VERY HOT" OTHERWISE DISPLAY "NORMAL"
10 PRINT "THE AREA OF A SQUARE IS "; A
20 LOCATE 10, 25: PRINT "MESSI"
30 IF TEMP > 40 THEN PRINT "VERY HOT" ELSE PRINT "NORMAL"

Q10. a) Write a program to accept the measure of two angles and check if they are complementary.

10 CLS
20 INPUT "First angle"; A
30 INPUT "Second angle"; B
40 LET SUM = A + B
50 IF SUM = 90 THEN PRINT "Complementary" ELSE PRINT "Not complementary"
60 END

b) Convert the following into BASIC statements:
i) Calculate the Simple Interest as P * R * T / 100 and store it in SI.
ii) Check if N is less than 0 then display the message “ZERO”

LET SI = P * R * T / 100
IF N < 0 THEN PRINT "ZERO"

Leave a Reply