Log in
Sign up for FREE
arrow_back
Library
Python Programming Test JCL
By John Clampin
star
star
star
star
star
Share
share
Last updated about 3 years ago
10 questions
Add this activity
Note from the author:
Instructions
1
1
1
1
1
1
1
1
1
1
This is just my initial attempt at a Python Programming Test - aimed at Year 9/10/11
Select the BEST answer to each of the following questions
Question 1
1.
Which Python command asks the user a question?
question
ask
print
input
Question 2
2.
Which of the following is NOT one of the THREE basic programming constructs?
Conditional
Sequential
Iterative
Algorithm
Question 3
3.
Which data type is
best
for storing whole numbers?
Float
Integer
Whole
String
Question 4
4.
Which data type is
best
for storing numbers with decimal places?
Whole
Integer
String
Float
Question 5
5.
Which data type is
best
for storing a post code such as LE5 0BX?
Integer
String
Float
Whole
Question 6
6.
Which of the following is the
best
explanation of casting ?
Changing the value of a variable
Creating a variable
Changing the data type of a variable
Assigning a variable
Question 7
7.
Which of the following is NOT a feature of Python's Integrated Development Environment?
Error diagnostics
Auto-correction
Auto-completion
Auto-indent
Question 8
8.
What method is used to translate Python code into binary machine code at run-time?
Compiler
Interpreter
Question 9
9.
What is the name given to a programmer's error where the code runs to completion, but gives unexpected results?
Syntax error
Run-time error
Programmer error
Logic error
Question 10
10.
What is the name given to a programmer's error where the code fails due to a typing mistake by the programmer?
Programmer error
Run-time error
Logic error
Syntax error