0% found this document useful (0 votes)
65 views7 pages

Class 7 Computing Exam

The document is a computing exam for class 7 students. It contains instructions for the exam and questions in multiple choice, fill in the blanks and subjective question formats. The questions cover topics like Python syntax, variables, conditional statements, sensors and programming Edison robots and designing user interfaces for mobile apps.

Uploaded by

shameerahmad1029
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)
65 views7 pages

Class 7 Computing Exam

The document is a computing exam for class 7 students. It contains instructions for the exam and questions in multiple choice, fill in the blanks and subjective question formats. The questions cover topics like Python syntax, variables, conditional statements, sensors and programming Edison robots and designing user interfaces for mobile apps.

Uploaded by

shameerahmad1029
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/ 7

The City School

Prep Section
Comprehensive Examination
Subject: Computing
Class 7

Index No: __________________________ Section: _________________________

School/Campus: ____________________ Date: ___________________________

Maximum Marks: 50 Time Allowed: 1 hr 30 min.

INSTRUCTIONS

 Write your index number, section, school/campus and date clearly in the space
provided.
 Read and follow the instructions given in the questions.
 Answer all question in the spaces provided.
 Check your answer paper before you hand it in.
 Marks for each section are shown below.

TCS DK Prep Section/AY 22-23/Comprehensive Paper EoY/Subject/Class Page 1 of 7


Objective

Q1. Fill in the blanks [ /10]

a. The function used to print output to the console in Python is called _______________

b. _______________is a whole number, positive or negative without decimals of unlimited

length.

c. _______________command is used to show the result in python.

d. In python, counting starts from _______________

e. To make decisions in coding, we use _______________statements.

f. To get user input in Python, you use the _______________function.

g. To check if two values are equal in Python, you use the _______________operator.

h. _______________refers to the spaces at the beginning of a code line.

i. A _______________is just an ordered collection of items.

j. All Edison programs must contain _______________which is include lines 1 to 11.

Q2. State whether is True or False. If False give the correct answer. [ /10]

a. Edblock, Edscratch and Edpy are used to program an Edison robot


___________________________________________________________________________

b. Edware cable is used to connect Edison with the computer


___________________________________________________________________________

c. Edcom cable is used to charge the Edison robot.


___________________________________________________________________________

d. Robots are like humans they can sense things and respond to their senses this means that the
robot can be programmed to think on its own.
___________________________________________________________________________
___________________________________________________________________________

TCS DK Prep Section/AY 22-23/Comprehensive Paper EoY/Subject/Class Page 2 of 7


e. The technology that deals with the design, construction, operation, and application of robots is
called robotics.
___________________________________________________________________________

f. Python supports structured programming, functional programming and object-oriented


programming.
___________________________________________________________________________

g. Correct extension of the Python file is .pyth


___________________________________________________________________________

h. # is used to represent a comment.


___________________________________________________________________________

i. In app lab Buttons, labels, images and the screen are all examples of objects.
___________________________________________________________________________

j. Design mode is used to make user interface more attractive in app lab.
___________________________________________________________________________

Q3. Choose the best option. [ /10]

1. Which of the following is a correct way to declare a variable in Python?

a. variable = 5
b. 5 = variable
c. variable == 5
d. variable = "5"

2. Float means ________________

a. Integers
b. Decimal Numbers
c. Whole Numbers
d. Imaginary Numbers

TCS DK Prep Section/AY 22-23/Comprehensive Paper EoY/Subject/Class Page 3 of 7


3. To create shapes and graphics in Python, _________________ library is used

a. Tkinter
b. Edison
c. User Defined Functions
d. None of the above

4. What will be the output of the following code?

x=5
y=3
print(x + y)

a. 8
b. 15
c. 2
d. 53

5. Method which uses a list of well-defined instructions to complete a task starting form a
given initial state to end state is called as

a. Program
b. Flowchart
c. A & B
d. Algorithm

6. What will be the output of the following code?


x = "Python is "
y = "fun."
print(x + y)

a. Python is fun.
b. Python isfun.
c. Pythonis fun.
d. Pythonisfun.

7. The option which changes the look of the elements on your screen. Like the buttons, labels.

a. Setproperty()
b. Open(url)
c. textLabel
d. setScreen

TCS DK Prep Section/AY 22-23/Comprehensive Paper EoY/Subject/Class Page 4 of 7


8. The following box denotes?

a. Decision
b. Initiation
c. Initialization
d. I/O

9. The symbol denotes

a. I/O
b. Flow
c. Terminal
d. Decision

10. To add Events in App lab you need to use a new block called

a. onEvent()
b. setProperty()
c. playSound()
d. texLabel

Subjective [ /20]

Q1. You want to check if a variable called "x" is equal to 10. What is the syntax to do this
comparison? [ /2]
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________

TCS DK Prep Section/AY 22-23/Comprehensive Paper EoY/Subject/Class Page 5 of 7


Q2. You want to store the value of pi (3.14159) in a variable called "pi". What is the syntax to
assign this value to the variable? [ /2]
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________

Q3. You want your Edison robot to move forward for 3 seconds, and then turn left for 1 second.
What is the code you would use to program this behavior? [ /2]

____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________

Q4. Explain Conditional Statements and their types in Python. [ /2]

____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________

Q5. List down the four ways in which Edison robot can be programmed. [ /2]

____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________

Q6. You want to make your Edison robot follow a black line on the ground. What sensors on the
robot can you use to detect the line, and what code would you use to program this behavior? [ /2]

____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________

TCS DK Prep Section/AY 22-23/Comprehensive Paper EoY/Subject/Class Page 6 of 7


Q7. You are developing a mobile app using App Lab for a local coffee shop. The app needs to
allow customers to view the menu, place orders, and make payments. The coffee shop owner wants
to ensure that the app is user-friendly and visually appealing.

How would you go about designing the user interface of the app to ensure that it is user-friendly
and visually appealing? [ /2]

____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________

Q8. What is the purpose of the onEvent block in app lab? [ /2]

____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________

Q9. How an application can make our life easier? [ /2]

____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________

Q10. What are the characteristics of a good user interface? [ /2]


____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
______________________________________________________________________________________

TCS DK Prep Section/AY 22-23/Comprehensive Paper EoY/Subject/Class Page 7 of 7

You might also like