Worksheetsquiz1_python
Total questions: 11
Worksheet time: 5mins
Name
Class
Date
1.
What is the role of the compiler?
a)
Compresses code
b)
Converts higher level code into machine code.
c)
Compresses files
d)
Converts spoken language into code.
2.
How do you output a string to the screen?
a)
output()
b)
say("")
c)
print("")
d)
print()
3.
Is python an interpreter or compiler programming language?
a)
Compiler
b)
Interpreter
4.
Python sensitive to indentation
a)
True
b)
False
5.
What is the name of the programming language we are learning?
a)
Scratch
b)
Python
c)
Pie thin
d)
Scribble
6.
What is python?
a)
a programming language
b)
DTP software
c)
Spreadsheet software
d)
Computer
7.
What syntax can you use to insert a line break between strings so that they appear over multiple lines?
a)
/
b)
\n
c)
\l
d)
n
8.
runs code line by line and checks for errors
a)
interpreter
b)
variable
c)
modulo
d)
boolean
9.
Which one does take you to next line?
a)
\t
b)
\n
c)
/n
d)
\\
10.
Which one does take you to tab(4 spaces)?
a)
\t
b)
\n
c)
/n
d)
\\
11.
what is indentation refers to?
a)
Indentation refers to the spaces at the beginning of a code line
b)
programming language
c)
print text
100 %
