stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Year 9 Computing - Text Based Programming Flashcards | StudBud
Explore
/
Year 9 Computing - Text Based Programming
Year 9 Computing - Text Based Programming
25 terms
·
StudBud Administration
·
4,448 plays
This quiz will test your knowledge of the theory behind programming in Python.
Flashcards
25 cards
F
Practice quiz
P
Host live
L
Questions
25
Answers
1
Which data type represents text?
Boolean
Integer
Float
String
2
Which of the following is NOT a command when using the TURTLE module in PYTHON?
UP
BACKWARD
LEFT
FORWARD
3
How many TURTLES are you restricted to using in a single file?
Unlimited
12
10
50
4
What is a string?
A sequence of characters
A number
A decimal number
A question
5
If you wanted to repeat the same code in a program OVER and OVER what would you use?
A Loop
An Assignment Statement
A Validation Check
An IF Statement
6
What does IDLE stand for?
Integrated Development List Echoed
Integrated Development Environment
Intel Development Environment
Interior Door Lighting Equipment
7
How many TURNS are included in the following DRAWING?
5
6
4
7
8
What is the picture an example of?
Assignment
An Error
A WHILE loop
A FOR loop
9
What would you use to
DRAW
the following image?
TRY and EXCEPT clause
CONDITIONAL select statement
IF statement
FOR loop
10
How many lines of code are you restricted to using in a new Python shell?
unlimited
100000
100
1000
11
What do you have to do to a program before you run it?
Compile it
Read it
Save it
Log it
12
What happens to the output consolse when you re-run a program?
it highlights the output in different colours
it resets the console
It keeps adding to it
It closes
13
What does the following
image
show?
Fault
Syntax error
Runtime error
No Turtle defined
14
Why would you use a WHILE loop?
To increase the range of code
To repeat code until a condition is met
To repeat code
To save you time
15
What would be the INSTRUCTIONS used for the following DRAWING?
BACKWARD LEFT BACKWARD
LEFT DOWN RIGHT
FORWARD RIGHT FORWARD
RIGHT UP LEFT
16
Why would you use a FOR loop?
To save energy
To repeat code
To repeat code for a certain number of times
To make the program quick
17
What will the following code do?
OUTPUT the numbers 1-5
OUTPUT the 1 timestable
OUTPUT the Greek alphabet
OUTPUT the numbers 1-10
18
What will happen when you execute the following code?
it will OUTPUT a square
An ERROR will occur
it will OUTPUT a triangle
it will OUTPUT a CIRCLE
19
How long does it take to run a program?
5 minutes
10 minutes
Instantly
depends on the size of the program
20
What will the following code produce when executed?
An ERROR
A Circle
A Triangle
A square
21
What is an
integer
?
A whole number
A sequence of characters
A question
A decimal number
22
Which data type represents whole number?
Integer
Boolean
Float
String
23
What is the shortcut you press in IDLE to run your program?
F6
F5
CTRL + R
CTRL + S
24
What is print()?
Decoder
Text
Console
Function
25
What would happen if you typed the code in a python program incorrectly?
It would create an error
It wouldn't show the output for that line
It would run without that line of code
the answers would all be null