Log in
Sign up for FREE
arrow_back
Library

Python Programming Test JCL

star
star
star
star
star
Last updated about 3 years ago
10 questions
Note from the author:
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.

Question 2
2.

Question 3
3.

Question 4
4.

Question 5
5.

Question 6
6.

Question 7
7.

Question 8
8.

Question 9
9.

Question 10
10.

Which Python command asks the user a question?
question
ask
print
input
Which of the following is NOT one of the THREE basic programming constructs?
Conditional
Sequential
Iterative
Algorithm
Which data type is best for storing whole numbers?
Float
Integer
Whole
String
Which data type is best for storing numbers with decimal places?
Whole
Integer
String
Float
Which data type is best for storing a post code such as LE5 0BX?
Integer
String
Float
Whole
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
Which of the following is NOT a feature of Python's Integrated Development Environment?
Error diagnostics
Auto-correction
Auto-completion
Auto-indent
What method is used to translate Python code into binary machine code at run-time?
Compiler
Interpreter
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
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