Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Unit No: 04(Programming)

Q1. Choose the correct answer from the given options.

1. Which of the following is not a positional number system?


(A)Roman number system (B) Octal number system

(C )Binary number system (D) Hexadecimal number system

2. The value of radix in binary number system is:


(A)2 (B) 8 (C) 10 (D) 1
3. The binary equivalent of the decimal number 10 is:
(A)0010 (B) 10 (C) 1010 (D) 010
4. Convert the binary equivalent 10101 to its decimal equivalent:
(A)21 (B) 12 (C) 22 (D) 31
5. Which of the following is known as information?
(A)Verified input (B) binary data (C)
textual form of data (D) processed form of data
6. The code blocks below are an example of:
(A)Event (B) pen (C) looks (D) control
7. To create a loop in scratch we:
(A)Use a repeat block (B) snap a block (C)
use a condition block (D) use a cat sprite
8. In scratch, the yellow blocks are named as:
(A)Motion (B) control (C) sensing (D) variables
9. In scratch, what are blue blocks called:
(A)Motion (B) control (C) lock (D) sound
10. Which of the following is the process of translating an algorithm into a programming?
(A)Designing (B) debugging (C) coding (D) converting

Q2. Give short answers of the following questions.

1. How is data stored on a computer?

Data in a computer is a stream of bits (0s and 1s) that are saved in computer memory. These
bits of information can take the shape of text documents, images, videos, etc.

2. Define CPU?

The CPU (Central Processing Unit) performs this data processing and stores it in the
computer’s memory.
3. Convert the following decimal numbers to binary numbers?
i. 18

Decimal to binary calculation steps.

Divide by the base 2 to get the digits from the remainders:

Division Quotient Remainder Bit# Division Quotient Remainder Bit#


by 2 (Digit) by 2 (Digit)
(18)/2 9 0 0 (2)/2 1 0 3
(9)/2 4 1 1 (1)/2 0 1 4
(4)/2 2 0 2

ii. 53

Decimal to binary calculation steps.

Divide by the base 2 to get the digits from the remainder:

Division by 2 Quotient Remainder Bit#


(Digit)
(53)/2 26 0 0
(26)/2 13 1 1
(13)/2 6 1 2
(6)/2 3 0 3
(3)/2 1 1 4
(1)/2 0 1 5
=110101)2

iii. 261

Decimal to binary calculation steps.

Divide by the base 2 to get the digits from the remainders:

Division by 2 Quotient Remainder Bit#


(Digit)
(261)/2 130 1 0
(130)/2 65 0 1
(65)/2 32 1 2
(32)/2 16 0 3
(65)/2 8 0 4
(65)/2 4 0 5
(65)/2 2 0 6
(65)/2 1 0 7
(65)/2 0 1 8
=(100000101)2
4. Convert the following binary numbers to decimal number.
i. 111

(111)2 = (1 × 22) + (1 × 21) + (1 × 20) = (7)10

ii. 11001

(11001)2 = (1 × 24) + (1 × 23) + (1 × 22) + (1 × 21) + (1 × 20) = (25)10

Q3. Give the detailed answers of the following questions.

1. How does data differ from information? Explain.

Data Information
Data is unorganized and unrefined facts Information comprises processed,
organized data presented in a meaningful
context.
Data does not depend on information. Information depends on data.

2. Differentiate between binary and decimal number systems?

Binary number system Decimal number system


A number system that expresses a number The number system that represents a
in terms of 0 and 1 digits is a binary number in terms of 0 to 9 digits is a
number system. decimal number system.
A binary system has only two digits, i.e 0 A decimal number system has ten digits,
and 1. i.e., 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
The base of a number in this system is 2. The base of a number in this system is 10.

3. Interpret the meaning of different colors of Code Block in Scratch?

Block categories are the way blocks are sorted in scratch’s block palette. These are nine
main block categories in scratch. Motion, looks, sound, events, control, sensing,
operators, variables and my block respectively.

4. Define loop. How do you create a loop in scratch?

Loop:

It involves a condition to repeat a task.

Loops are valuable tools for repeating an action within code and projects.

Types of loops in Scratch:


In the ‘control’ section of block code, you can see 3 types of loops: repeat until, repeat x
number of times and forever loop.

Repeat until loop.

Forever loop.

Repeat x number of times loop.


Unit No: 04(Programming)

Q1. Choose the correct answer from the given options.

11. Which of the following is not a positional number system?


(B) Roman number system (B) Octal number system

(C )Binary number system (D) Hexadecimal number system

12. The value of radix in binary number system is:


(B) 2 (B) 8 (C) 10 (D) 1
13. The binary equivalent of the decimal number 10 is:
(B) 0010 (B) 10 (C) 1010 (D) 010
14. Convert the binary equivalent 10101 to its decimal equivalent:
(B) 21 (B) 12 (C) 22 (D) 31
15. Which of the following is known as information?
(B) Verified input (B) binary data
(C) textual form of data (D) processed form of data
16. The code blocks below are an example of:
(B) Event (B) pen (C) looks (D) control
17. To create a loop in scratch we:
(B) Use a repeat block (B) snap a block
(C) use a condition block (D) use a cat sprite
18. In scratch, the yellow blocks are named as:
(B) Motion (B) control (C) sensing (D) variables
19. In scratch, what are blue blocks called:
(B) Motion (B) control (C) lock (D) sound
20. Which of the following is the process of translating an algorithm into a
programming?
(B) Designing (B) debugging (C) coding (D) converting

Q2. Give short answers of the following questions.

5. How is data stored on a computer?

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

6. Define CPU?

__________________________________________________________________________
__________________________________________________________________________

__________________________________________________________________________

7. Convert the following decimal numbers to binary numbers?


iv. 18

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

v. 53

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

vi. 261

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________
__________________________________________________________________________

8. Convert the following binary numbers to decimal number.


iii. 111

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

iv. 11001

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

Q3. Give the detailed answers of the following questions.

5. How does data differ from information? Explain.

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________
__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

6. Differentiate between binary and decimal number systems?

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________
7. Interpret the meaning of different colors of Code Block in Scratch?

_________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

8. Define loop. How do you create a loop in scratch?

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________
__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________
__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

9. What is the difference between the following two commands from motion
category?

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

10. List down the components of Scratch interface?

__________________________________________________________________________
__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

You might also like