The Joy of Computing Using Python PART 1
The Joy of Computing Using Python PART 1
The Joy of Computing Using Python PART 1
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
sprite?
Motion Sound
M
Looks Jump
Accepted Answers: Motion
@
Page 1 MY SWAYAM
The Joy Of Computing Using Python IIT Ropar
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
Page 2 MY SWAYAM
The Joy Of Computing Using Python IIT Ropar
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
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
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
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