Font size
Worksheetspython (coding)
Total questions: 20
Worksheet time: 8mins
WHICH OF THE PRINT CAMMANDS IS CORRECT.
print (hello world)
print (123)
print (_149)
print = hello world
which of them is integer(int)?
10.1
"5"
8
which of them is camel case?
HelloWorld
hello_world
helloWorld
Which of them is snake case
hello_world
HelloWorld
HelloWORLD
what is a variable?
a box(container) in which we store values and information.
something we use to print a block of code
a comment
an error
What symbol is used in python to assign values to a variable?
(a)
What Python command lets the user enter an answer to a question?
input()
output()
print()
uppercase()
To repeat a fixed number of times we use
repeat loop
print()
input()
or *for turtle import
The second part of if, that is executed when the condition is false
for turtle import
repeat loop
else
elif
The character that must be at the end of the line for if, while, for etc.
;
'
"
:
What is the correct format to form a comment?
'comment'
:comment:
#comment
!comment!
Data type for a whole number
boolean
string
integer
float
What does the term 'debug' mean?
there is a bug in the computer
fixing and finding errors
a set of instructions
a loop
What will be the output?
name = 'Dave'
print (name)
name
(name)
Dave
dave
x = 5
y = 6
print(x*y)
what will be the answer of the following
11
30
1
0
how does python identify if it is a block of code ?
Begin and end key words
(and)
align/indentation
guessing
Python language was developed in what year?
1998
1995
1991
1199
A line of text that Python won't try to run as code
float
string
integer
comment
python allows the user to put the question while they use the input command
TRUE
FALSE
which programming language are you using
C++
Java
JavaScript
Python
