Font size
WorksheetsG9-Introduction to Python Programming
Total questions: 25
Worksheet time: 15mins
What is Python?
A programming language
A type of computer
A game
A website
What does IDE stand for?
Integrated Development Environment
Interactive Development Language
Integrated Data Language
Interactive Development Environment
What does the print command do?
Prints information onto the screen
Prints to a printer
Saves a file
Prints results of operations onto the screen
What is the purpose of the input command?
To wait for user input
To print output
To save a file
To run a program
What does BIDMAS stand for?
Brackets, Indices, Division, Multiplication, Addition, Subtraction
Brackets, Indices, Division, Multiplication, Addition, Subtraction
Brackets, Indices, Division, Multiplication, Addition, Subtraction
Brackets, Indices, Division, Multiplication, Addition, Subtraction
What does the double-slash // do in Python?
Rounding-down division
Normal division
Multiplication
Addition
What does the percentage sign - % - do in Python?
Rounding-down division
Normal division
gives the remainder of a division between two values.
Addition
What is the result of 3**2
6
9
27
18
What is the purpose of variables in Python?
To store data
To print output
To run programs
To create functions
What is the output of print('Hello', name, ', how are you today?') - Where name="Monty"
Hello Monty, how are you today?
Hello, how are you today?
Hello Monty
Hello, name
Is the result of 9 + 4 * 2
26
28
39
17
Is the result of (9 + 4) * 2
26
28
39
17
Is the result of the code :
print ("Hello World)
Hello World
"Hello world
"Hello World"
Syntax error
Syntax Error
Run-Time Error
Logical Error
semantic errors
To avoid the Run time errors ;
Test your code thoroughly
Use error - handling techniques
Use clear descriptive variable
Run the compiler often to get early feed back
is the type of errors that happens when the computer is not able to make the conversion reliably
Syntax error
Compilation error
Run- time error
semantic errors
logical error
A data type that stores alphanumeric information
(a)
A data type that stores Whole numbers
(a)
A data type that can only be one of two values : True or False
String
Boolean
Float
integer
The suitable data type to store the value 9.76
Integer
Float
Boolean
String
Used to add annotation to the code :
%
*
&
#
Adding strings together is called --------- & ----------- is used in it
Concatenation - +
Annotation - %
Division - **
Joining - #
Is the comparison operator in python
=
==
= *
===
Is the result of the code:
print( 9 > 4)
(a)
Is the not equal operator in python
not =
!=
x=
not equal
