stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
CCT II Flashcards | StudBud
Explore
/
CCT II
CCT II
27 terms
·
StudBud Administration
·
13 plays
Imported from external platform
Flashcards
27 cards
F
Practice quiz
P
Host live
L
Questions
27
Answers
1
What is the turtle module?
A feature used to manage and organise files
A tool for predicting animal behavior
It is used to display animated images of sea turtles
A tool for creating shapes, patterns and drawings
2
What is a float?
A command that creates animated, floating elements
A type of boat used to navigate through code
A function that allows numbers to "float" around the code
A data type that represents numbers with a decimal point
3
What is a list in Python?
A collection of items
A data type that can only store numbers
A keyword for defining functions
A data type that can only store strings
4
What is a while loop?
A command used to draw colorful shapes on the screen
A tool for counting the total number of functions used in a program
A technique used to shuffle the order of items in a list
A way to run block of code as long as a specified condition is true
5
What is a module in Python?
A collection of prewritten, ready to use code
A device used to improve the performance of the code
A feature that converts text into emojis
A collection of snakes commonly found in tropical regions
6
What is an algorithm?
A programming language used to code games
A sequence of instructions used to solve a problem or perform a task
A software tool used for creating shapes
A type of computer virus
7
What is a dictionary in Python?
A data type that automatically sorts items
A data type that can only store boolean values
A collection of key-value pairs
A data type that stores functions
8
How is an item added to a list in Python?
remove()
append()
extend()
insert()
9
How is an item removed from a list in Python?
add()
delete()
clear()
pop()
10
What is an integer?
A mathematical symbol
A type of function
A whole number
A data type that represents infinity
11
What is an input statement?
A statement used to create if/else statements
A statement used for commenting in Python code
A statement used to import modules in Python
A statement that takes user input from the keyboard
12
What is an if statement?
A statement used to edit strings
A statement used to run a block of code when a condition is true
A statement used to loop through lists
A statement used to repeat code multiple times
13
What is an else statement?
A statement used to run multiple blocks of code at the same time
A statement used to fix syntax errors
A statement used to run a block of code when the "if" condition is false
A statement used to print out a message 10 times
14
How is a print statement written in Python?
display("Hello, world!")
show("Hello, world!")
output("Hello, world!")
print("Hello, world!")
15
How is an input statement written in Python?
type_input("Enter something: ")
input("Enter something: ")
get_input("Enter something: ")
read_input("Enter something: ")
16
What is a print statement?
A statement used to define a new function
A statement used to perform mathematical operations
A statement that displays text on the screen
A statement used to create loops
17
What is a for loop?
A tool to measure the length of time a program takes to run
A way to run a block of code a set number of times
A function used to create new variables
A way to run code only once
18
How is a delay written in Python?
time.sleep(1)
stop(1)
pause(1)
delay(1)
19
What is the math module?
Provides functions for mathematical operations: arithmetic, logarithms
A virtual reality environment for exploring mathematical ideas
A tool for converting text data into numerical values
A virtual teacher who guides your mathematical calculations
20
What is a function in Python?
A block of reusable code that performs a specific task
A decorative element used to add colors and styles to the code
A tool that generates random numbers
A command that directly controls the keyboard
21
How is a comment written in Python?
#comment
!comment
comment()
"comment"
22
What is a boolean?
A tool used to perform mathematical operations with odd numbers
A special keyword used to create loops
A type of snack used to reward the code
A data type that represents True or False
23
What is a string in Python?
Physical strings that can be pulled
A collection of one or more characters
A single letter
A type of thread that connects different elements of a program
24
Which one of these is NOT a type of error in coding
Syntax error
Runtime error
Algorithm error
Logic error
25
Which one of these is NOT a logical operator in Python?
not
and
or
to
26
What is the random module?
It generates random numbers and performs randomisation operations
A virtual reality simulator for creating random environments
A tool that generates the same sequence of numbers
A tool for creating unpredictable errors
27
Which one of these is NOT an example of good coding practice?
Using descriptive variable names
Writing clear code
Writing comments to explain complex code sections
Ignoring error messages