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

Computer 7 Review Sheet Test 1 Semester 3 PG 70 - 81

The document is a review sheet for Test 1 in Computer subject for Grade 7, covering multiple choice, true/false, and short answer questions related to programming concepts, specifically focusing on Python and Scratch. Key topics include the purpose of IDEs, data types, operators, and the difference between source code and machine code. It also addresses common programming errors and advantages of using Scratch for beginners.

Uploaded by

ahassan
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)
3 views4 pages

Computer 7 Review Sheet Test 1 Semester 3 PG 70 - 81

The document is a review sheet for Test 1 in Computer subject for Grade 7, covering multiple choice, true/false, and short answer questions related to programming concepts, specifically focusing on Python and Scratch. Key topics include the purpose of IDEs, data types, operators, and the difference between source code and machine code. It also addresses common programming errors and advantages of using Scratch for beginners.

Uploaded by

ahassan
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/ 4

Academic Session 2024-2025

Review Sheet Test 1 Semester 3 Grade: 7 Subject: Computer Page 70-81


Name of the Student:
Total Marks: 25 Date:

Q No. 1: Multiple Choice Questions (MCQs)


1. What is the purpose of an IDE in programming?
a) To play games
b) To write, save, and run programs
c) To browse the internet
2. Which of the following is an arithmetic operator in Python?
a) &
b) *
c) #
3. What data type is user input stored as in Python by default?
a) Integer
b) Float
c) String
4. Which command is used to output text in Python?
a) say
b) output
c) print
5. What is the correct way to assign the value 10 to a variable named "age" in Python?
a) age == 10
b) age = 10
c) 10 = age
6. Which of the following is a feature of Scratch but not Python?
a) Variables
b) Block-based programming
c) Arithmetic operators
7. What is the process of converting source code into machine code called?

ACIS, Jeddah KSA Page 1 of 4


a) Debugging
b) Compiling
c) Printing
8. Which of the following is an example of an executable file?
a) A text file
b) A Python source code file
c) A machine code file
9. What is the correct Python command to convert a string "5" to an integer?
a) int("5")
b) str(5)
c) float("5")
10. Which programming language was developed at MIT?
a) Python
b) Java
c) Scratch
11. Variables are shown _______________ in colour.
a) red
b) black
c) green
12. Symbols such as commas and brackets are shown in _______________ colour.
a) black
b) red
c) purple
13. The software that you use to write and run program is called an ________________.
a) PDE
b) IDL
c) IDE
14. ASCII characters are stored as _________________ data type.
a) integer
b) string
c) float

15. A python function called __________________ converts any variable to integer data type.

a. num
b. int
c. var

ACIS, Jeddah KSA Page 2 of 4


Q No. 2: True/False Questions
1) Scratch programs are written using text-based commands. False
2) Python is a free programming language. True
3) The input function in Python automatically converts user input to an integer. False
4) An executable file is made of machine code. True
5) Scratch and Python both use the same symbols for arithmetic operators. True
6) The Python Shell saves commands automatically. False
7) A variable name in Python can include spaces. False
8) Professional programmers often use Scratch to build large, complex apps. False
9) The print function in Python can output both text and variables. True
10) Java is computer program language. True

11) Text command take up less apace in Python program. True

12) You don’t need to type the command in scratch program. True

13) Professional programmers often use a mixture of different languages to make their programs. True

14) Input and print function are shown purple in color in Python program. True

15) Machine code is easy for humans to read and write. False

Q No. 3: Short Answer Questions


1. What is the difference between source code and machine code?
Answer: Source code is written by programmers in languages like Python, while machine code is numeric
and directly executable by the computer.

2. Name two ways to translate source code into machine code.


Answer: Compiling and interpreting.

3. What is the purpose of an "Event" block in Scratch?


Answer: It triggers the start of a program (e.g., "when sprite clicked").

4. Why must user input be converted to an integer before arithmetic in Python?


Answer: Input is stored as a string by default, which cannot be used in calculations.

5. What does IDE stand for?


Answer: Integrated Development Environment.
6. Give an example of an arithmetic operator in Python.
Answer: + (addition), - (subtraction), * (multiplication), / (division).

7. What is the output of print("a" + "b") in Python?


Answer: ab (string concatenation).

8. Name one advantage of using Scratch for beginners.


Answer: No typing required; uses visual blocks to avoid syntax errors.

ACIS, Jeddah KSA Page 3 of 4


9. What error occurs if you type Print("Hello") instead of print("Hello") in Python?
Answer: Name Error (capitalization matters in Python).

10. How is Scratch code translated into machine code?


Answer: Through a JavaScript interpreter in the web browser.

ACIS, Jeddah KSA Page 4 of 4

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy