Font size
WorksheetsComputing: Introduction to Python Lesson One
Total questions: 103
Worksheet time: 52mins
Programming is:
A way to cook food
A method to create computer software
A type of sport
A musical instrument
Which of the following is a programming language?
Python
HTML
Microsoft Word
Python language is:
A type of snake
A programming language
A car brand
A musical instrument
Which of the following are valid Python functions or syntax?
print(), for loop
echo(), select statement
System.out.println(), while (true)
cout <<, repeat until
IDLE is:
A programming language
An integrated development environment for Python
A type of computer virus
A hardware device
DO NOW CHALLENGE: What is input in Python?
A function to display output
A function to get user input
A variable type
A loop statement
DO NOW CHALLENGE: What is 'print' in Python?
A function to display output
A variable
A loop
A data type
What is the Python environment called where you can write and execute code interactively?
IDLE
Notepad
Photoshop
Excel
Which Python function is used to display a string in the console?
show
display
echo
Which Python function is used to get input from the user?
input
get()
scan()
read()
What is a variable in Python used for?
Used to store values
To create functions
To display output
To define loops
What is a function in Python?
Pre-written code that can be used repeatedly
A type of variable used to store numbers
A built-in Python error message
A special kind of loop
What is syntax in Python?
The set of rules that defines the combinations of symbols that are considered to be correctly structured programs in that language.
A type of data structure used to store values.
A built-in function for mathematical operations.
A library for creating graphical user interfaces.
What is a script in Python?
A file containing Python code that can be executed.
A type of hardware device.
A built-in Python function.
A graphical user interface.
What does interactive mean in the context of Python programming?
Working with Python in a way that allows immediate execution and feedback, such as in the Python shell or IDLE.
Writing Python code only in text editors without running it.
Using Python exclusively for web development.
Running Python scripts only as scheduled background tasks.
Which of the following is NOT a data type in Python?
String
Int
Float
A Boolean value in Python can be either ______ or ______.
True or False
Yes or No
1 or 0
On or Off
What is an operator used for in Python?
Used for assigning a value to a variable and for math between two values or variables.
Used only for printing output to the screen.
Used only for creating functions.
Used only for importing modules.
What is an error in Python?
Text displayed in the console when Python detects a mistake. Shows the location (line number) of the mistake.
A type of variable used to store numbers in Python.
A function that prints output to the screen.
A special keyword used to define loops in Python.
What is a statement in Python?
A single line of code that does something. Like a sentence, every statement has a subject and a verb.
A type of variable used to store data.
A function that returns a value.
A special symbol used for comments.
What is a comment in Python used for?
Used to explain what the code does. Not interpreted by Python.
To execute a block of code repeatedly.
To define a function in Python.
To import external libraries.
What is the function in Python that allows for user input?
input
scan
get_input
readline
Which Python function displays a string in the console?
show
display
echo
Which Python data type represents a number value with no decimal places?
int
float
str
list
Which Python data type represents a number value that has decimal places?
float
int
str
bool
A Boolean in Python can only be
True
False
In Python, what is used to store values and has a unique name that you choose?
Variable
Function
Loop
Operator
What is used in Python for assigning a value to a variable or for math between two values or variables?
Operator
Function
String
Loop
What do you call pre-written code in Python that can be used repeatedly?
Function
Variable
Loop
String
What is displayed in the console when Python detects a mistake and shows the location (line number) of the mistake?
Error
Warning
Output
Success
What do you call a single line of code in Python that does something, similar to a sentence?
Statement
Paragraph
Function
Block
What is not interpreted by Python and is used to explain what the code does?
Comment
Variable
Function
Loop
In Python, which key concept refers to (data types) and may use quotation marks around a string or decimal points to turn an int into a float?
Value
Function
Loop
Operator
What does 'IDLE' mean in the context of Python programming?
IDLE stands for Integrated Development and Learning Environment, which is an environment for writing and running Python programs.
IDLE is a command used to install Python packages.
IDLE is a type of error that occurs when Python is not running.
IDLE is a library for creating graphical user interfaces in Python.
What is the purpose of the 'print' function in Python?
The 'print' function is used to display output to the screen in Python.
The 'print' function is used to take input from the user in Python.
The 'print' function is used to define a function in Python.
The 'print' function is used to terminate a program in Python.
What is the use of 'input' in Python programming?
The 'input' function is used to get user input in Python programs.
It is used to display output on the screen.
It is used to define a function in Python.
It is used to import external libraries.
What is a 'variable' in Python?
A variable is a named location used to store data in a program.
A variable is a type of loop in Python.
A variable is a built-in function in Python.
A variable is a reserved keyword in Python.
What is a 'function' in Python?
A function is a block of code that performs a specific task and can be reused.
A function is a type of variable that stores numbers only.
A function is a built-in Python library for graphics.
A function is a comment used to describe code.
What does 'syntax' mean in programming?
Syntax refers to the set of rules that defines the structure of a programming language.
Syntax is the process of debugging code.
Syntax is the hardware used to run programs.
Syntax is the output produced by a program.
What is a 'script' in Python?
A script is a file containing Python code that can be executed as a program.
A script is a built-in Python function.
A script is a type of Python variable.
A script is a Python error message.
What does 'interactive' mean in the context of programming?
Interactive means that the program can respond to user input while it is running.
Interactive means the program runs without any user input.
Interactive means the program only displays output and never takes input.
Interactive means the program stops running after one command.
What is Python?
A type of snake
A programming language
A comedy group
A search engine
When was the first release of the Python programming language?
1980
1985
February 20, 1991
2000
Python was named after which comedy group?
The Three Stooges
Monty Python
Saturday Night Live
The Marx Brothers
Python is used by companies such as Yahoo, Google, NASA, and ________.
Burger King
Pepsi
Nike
Which of the following is NOT listed as a use of Python?
Shopping comparison site
Computer games
Cooking recipes
Search engine
What is the meaning of the vocabulary word: IDLE?
IDLE is an Integrated Development and Learning Environment for Python.
IDLE is a type of computer virus.
IDLE is a programming language.
IDLE is a hardware device used for networking.
What is the meaning of the vocabulary word: print?
print is a command in Python used to display output.
print is a type of data storage device.
print is a programming language.
print is a mathematical operation.
What is the meaning of the vocabulary word: input?
input is a command in Python used to take user input.
input is a type of loop in Python.
input is a function to print output on the screen.
input is a keyword to define a variable.
What is the meaning of the vocabulary word: variable?
A variable is a storage location identified by a name that holds data in a program.
A variable is a type of computer hardware used for processing data.
A variable is a programming language used to write software.
A variable is a tool used to connect computers to the internet.
What is the meaning of the vocabulary word: function?
A function is a block of code that performs a specific task and can be reused.
A function is a type of variable that stores numbers only.
A function is a tool used to draw shapes in a program.
A function is a comment added to explain code.
What is the meaning of the vocabulary word: syntax?
Syntax refers to the set of rules that defines the structure of a programming language.
Syntax is a type of computer hardware component.
Syntax is a popular programming language.
Syntax is a software used for graphic design.
What is the meaning of the vocabulary word: script?
A script is a file containing Python code that can be executed.
A script is a type of hardware device used in computers.
A script is a graphical user interface for web browsers.
A script is a network protocol for data transfer.
What is the meaning of the vocabulary word: interactive?
Interactive refers to the ability to interact with the program or environment in real time.
Interactive means something that cannot be changed.
Interactive refers to something that is always offline.
Interactive means something that is only for display and cannot be used.
What does IDLE stand for in Python?
Integrated Development Learning Environment
Integrated Development Environment
Interactive Development Language Environment
Integrated Data Learning Environment
Fill in the blank: The window that first appears when you start Python IDLE is called the _______ mode window.
Interactive
Script
Command
Edit
What is the purpose of an Integrated Development Environment (IDE)?
An Integrated Development Environment contains all the tools needed to write, test and run computer programs.
An Integrated Development Environment is used only for compiling hardware circuits.
An Integrated Development Environment is a type of operating system for mobile devices.
An Integrated Development Environment is a database management tool.
What is the meaning of 'IDLE' in the context of Python?
IDLE stands for Integrated Development Environment.
IDLE stands for Interactive Data Language Editor.
IDLE stands for Internal Debugging Language Environment.
IDLE stands for Internet Development Language Editor.
What does 'print' do in Python?
'print' is a function used to display output in Python.
'print' is used to take input from the user in Python.
'print' is a keyword to define a variable in Python.
'print' is used to comment code in Python.
What is an 'input' in Python?
'input' is a function used to take user input in Python.
'input' is a keyword used to define a variable in Python.
'input' is a module for mathematical operations in Python.
'input' is a data type in Python.
What is a 'variable' in Python?
A variable is a storage location identified by a name that holds a value.
A variable is a type of Python function.
A variable is a built-in Python module.
A variable is a special kind of loop in Python.
What is a 'function' in Python?
A function is a block of code that performs a specific task and can be reused.
A function is a type of variable that stores numbers only.
A function is a built-in Python library for data analysis.
A function is a comment used to describe code.
What does 'syntax' mean in Python?
Syntax refers to the set of rules that defines the structure of Python code.
Syntax is the process of executing Python code line by line.
Syntax is a type of variable used in Python programs.
Syntax is the name given to Python's built-in functions.
What is a 'script' in Python?
A script is a file containing Python code that can be executed.
A script is a built-in Python function.
A script is a type of Python variable.
A script is a Python error message.
What does 'interactive' mean in the context of Python IDLE?
Interactive means you can type commands and see results immediately in the Python shell.
Interactive means you can only write code in a text editor and run it later.
Interactive means Python IDLE automatically saves your work every minute.
Interactive means you can only use Python IDLE with an internet connection.
What is the meaning of the term 'IDLE' in Python programming?
IDLE stands for Integrated Development and Learning Environment, which is an environment for writing and running Python programs.
IDLE stands for Internal Data Logging Engine, used for debugging Python code.
IDLE stands for Interactive Data Language Editor, a tool for editing Python scripts.
IDLE stands for Internet Development Language Environment, a web-based Python IDE.
What does the 'print' function do in Python?
The 'print' function outputs text or other data to the screen.
The 'print' function saves data to a file.
The 'print' function reads input from the user.
The 'print' function creates a new variable.
What is the purpose of the 'input' function in Python?
The 'input' function allows the user to enter data into a program.
The 'input' function displays output to the screen.
The 'input' function performs mathematical calculations.
The 'input' function defines a new variable.
What is a 'variable' in Python programming?
A variable is a named location used to store data in a program.
A variable is a type of loop in Python.
A variable is a built-in function in Python.
A variable is a special kind of comment in Python.
What is a 'function' in Python?
A function is a block of code that performs a specific task and can be reused.
A function is a type of variable that stores numbers only.
A function is a built-in Python library for data analysis.
A function is a comment used to explain code.
What does 'syntax' mean in Python programming?
Syntax refers to the set of rules that defines the structure of Python code.
Syntax is the process of executing Python code line by line.
Syntax is a type of variable used in Python.
Syntax is a built-in Python function for mathematical operations.
What is a 'script' in Python?
A script is a file containing Python code that can be executed.
A script is a built-in Python function.
A script is a type of Python variable.
A script is a Python error message.
What does 'interactive' mean in the context of Python programming?
Interactive refers to the mode where you can type and execute Python commands one at a time and see the results immediately.
Interactive refers to writing Python code only in a text editor without seeing results.
Interactive means Python can only be used for web development.
Interactive refers to the ability to run Python code only after compiling it into machine code.
According to the worksheet, what is good practice when starting Python IDLE?
Only use the Interactive mode window
Only use the Script mode window
Have both Interactive and Script mode windows open side-by-side
Do not use any windows
Fill in the blank: On the right is the ______ mode window.
Script
Edit
View
Insert
Which window is labeled as 'Interactive' in the worksheet?
The left window
The right window
Fill in the blank: The program used to write and run Python code is called _______.
IDLE
Notepad
Excel
Photoshop
Fill in the blank: The command used to display output in Python is _______.
echo
display
output
Fill in the blank: The function used to get data from the user in Python is _______.
input
scan
fetch
read
Fill in the blank: A named storage location in a program is called a _______.
variable
function
loop
constant
Fill in the blank: A block of code that performs a specific task in Python is called a _______.
function
loop
variable
class
Fill in the blank: The set of rules that defines how a Python program is written is called _______.
syntax
variable
function
loop
Fill in the blank: A file containing Python code is called a _______.
script
notebook
spreadsheet
database
Fill in the blank: The mode where you can type and execute Python commands one at a time is called _______ mode.
interactive
script
batch
compiled
Which of the following is always seen at the start of each new line in Python's interactive mode window?
A) >>>
B) ###
C) ===
D) ***
What is the Interactive mode window in Python used for?
Writing and saving scripts only
Typing and executing commands one at a time
Drawing shapes
Printing documents
What does the acronym IDLE stand for in Python?
Integrated Development and Learning Environment
Interactive Data Language Environment
Integrated Debugging and Learning Engine
Intelligent Development Language Editor
Which of the following is NOT a mode of running Python IDLE?
Interactive
Script
Batch
Both A and B
The Interactive mode in Python IDLE gives immediate feedback to every line of code that is entered.
True
False
Fill in the blank: The ______ mode allows a programmer to type in many lines of Python code and save the code as a single program with a file name.
Script
Interactive
Debug
Command
Match the following vocabulary words with their correct definitions:
IDLE
Integrated Development and Learning Environment
variable
A named storage for data
function
A block of code that performs a task
syntax
The rules for writing code
script
A set of instructions saved as a file
What does the Python command 'print' do?
Prints information onto the screen
Prints information onto a printer
Saves information to a file
Deletes information
Fill in the blank: The first program that most programmers write is often a ________ program.
Hello World
Goodbye Moon
First Steps
Test Run
True or False: The 'print' command in Python prints information onto a printer.
True
False
What is the tradition in computer programming for the first program written by most programmers?
Writing a 'Hello World' program.
Writing a 'Goodbye World' program.
Creating a calculator application.
Designing a website homepage.
What is IDLE in the context of Python programming?
IDLE is an Integrated Development and Learning Environment for Python.
IDLE is a Python library for data analysis.
IDLE is a command-line tool for compiling Python code.
IDLE is a version control system for Python projects.
What does the 'input' function do in Python?
It allows the user to enter data from the keyboard.
It prints output to the screen.
It defines a new function.
It terminates the program.
What is a variable in programming?
A variable is a storage location for data that can change during program execution.
A variable is a fixed value that cannot be changed.
A variable is a type of programming language.
A variable is a function that performs calculations.
What is a function in programming?
A function is a block of code that performs a specific task and can be reused.
A function is a type of variable that stores numbers only.
A function is a graphical representation of data.
A function is a hardware component in a computer.
What does 'syntax' mean in programming?
Syntax refers to the set of rules that defines the combinations of symbols that are considered to be correctly structured programs in a language.
Syntax is the process of debugging errors in a program.
Syntax is the graphical representation of data flow in a program.
Syntax is the hardware component required to run a program.
Python is an example of a:
Text-based programming language
Visual-based programming language
Block-based programming language
Language written in JavaScript
What does term ‘debug’ mean:
looking at the code
a set of instructions
Identify errors and fix them
Making a calculation
What is the word (command) used to display numbers and text on the screen?
Input
Output
Command
