wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

AI-9A-PA1-Practical

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.
What is the word (command) used to display numbers and text on the screen?
a)
print
b)
input
c)
output
d)
command
2.
Which statement correctly assigns the string "Tanner" to the variable name?
a)
name  = print( "Tanner")
b)
input("Tanner")
c)
name = "Tanner"
d)
name = input("Tanner")
3.
What symbol do you use to make a comment in Python?
a)
@
b)
¬
c)
;
d)
#
4.
A data type than can have one of two values: True or False
a)
boolean
b)
variable
c)
modulus
d)
interpreter
5.
What will the output be from the following code?
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
6.
What will the output be from the following code?
print("3+4")
a)
7
b)
3+4
c)
34
d)
SyntaxError
7.

What is the answer of this expression, 22 % 3 is?

a)

7

b)

1

c)

0

d)

5

8.

ldentify the incorrect variable

a)

_bst

b)

my name

c)

fgh75

d)

A4F5

9.

a=input("Enter age")

b=input("Enter Experience")

a=a+b

print(a)

what will be the value of a if the value passed is 26 and 36

a)

62

b)

Error

c)

2636

d)

3626

10.

What is the Return type of input() function?

a)

Int

b)

float

c)

String

d)

List