The Joy Of Computing Using Python IIT Ropar
The Joy of Computing Using Python
IMP QUESTIONS PART 1
1) Which of the following is not a type of block in Scratch?
Motion Sound
Looks Jump
Accepted Answers: Jump
AM
2) What is the main function of the "if" block in Scratch?
To create a loop
AY
To repeat a set of instructions
To control the flow of the program
based on a condition
To play a sound
SW
Accepted Answers: To control the flow of the program based on a
condition
3) Which block in Scratch is used to control the movement of a
Y
sprite?
Motion Sound
M
Looks Jump
Accepted Answers: Motion
@
4) Which block in Scratch is used to make a sprite say something?
Motion Sound
Looks Control
Accepted Answers: Looks
Page 1 MY SWAYAM
The Joy Of Computing Using Python IIT Ropar
5) Which block in Scratch is used to wait for a certain amount of time
before continuing with the program?
Motion Sound
Looks Control
Accepted Answers: Control
AM
6) Which block in Scratch is used to detect when a sprite touches
another sprite?
Motion Sound
Looks
Accepted Answers: Sensing
AY Sensing
SW
7) What is the purpose of the "broadcast" block in Scratch?
To send a message to another
sprite To play a sound
Y
To move a sprite To change the background color
Accepted Answers: To send a message to another sprite
M
@
8) Which of the following is a high-level programming language?
Assembly C
Python Machine Language
Accepted Answers: Python
Page 2 MY SWAYAM
The Joy Of Computing Using Python IIT Ropar
9) Which of the following is an example of a front-end programming
language?
PHP Java
HTML SQL
Accepted Answers: HTML
10) Which of the following is used to store data in a programming
AM
language?
Variables Loops
Arrays Conditionals
Accepted Answers: Variables, Arrays
AY
SW
11) Which statement will print ‘The joy of computing’?
print(The joy of computing) printf(‘The joy of computing’)
print The joy of computing print(‘The joy of computing’)
Accepted Answers: print(‘The joy of computing’)
Y
M
12) What will be the output of the following code?
b=0
@
for i in range(10):
b = b+i
print(b)
0 43
45 50
Accepted Answers: 45
Page 3 MY SWAYAM
The Joy Of Computing Using Python IIT Ropar
13) Which of the following keyword is used to declare a function in
a programming language?
def int
var float
Accepted Answers: def
14) What value will c store in it after the execution of the below
AM
code?
c=b**3 Value of b multiplied by 3
It will throw an error Value of b multiplied with 3 twice
Accepted Answers: It will throw an error
15)
AY
What should be the value of _ to print all numbers from 0-10
SW
for i in range( _ ):
print(i)
10 11
9 12
Y
Accepted Answers: 11
M
16) What is the output for the following program?
@
b=4
a=3
c=a>b
print(c)
True False
It will display an error message Boolean
Accepted Answers: False
Page 4 MY SWAYAM
The Joy Of Computing Using Python IIT Ropar
Subscribe for
PART 2 AND 3
MY SWAYAM
AM
PDF LINK OF THIS QUESTIONS IS AVAILABLE IN THE
DESCRIPTION BOX OF THIS VIDEO.
AY
THANK YOU. HAPPY LEARNING.
SW
Y
M
@
Page 5 MY SWAYAM