WorksheetsPython Test
Total questions: 65
Worksheet time: 34mins
How well are you "getting" the Python language so far?
I don't understand most of the words
I sort of understand the words, but I don't understand what it looks like in actual code
I'm pretty at the vocab and the TechSmart program. I have some work to do, but I'm getting it.
I get it all like a boss. You're moving too slowly for me, old man.
What is a computer?
All the hardware and software that work together to make a computer run
Scientists using computers to develop things that make lives easier
A device that stores and processes information
Changing, moving, or rewriting information
What is computer science?
All the hardware and software that work together to make a computer run
Python
A device that stores and processes information
The study of computers and how they can be used to solve problems
What is a computing system?
All the hardware and software that work together to make a computer run
Python
A device that stores and processes information
The study of computers and how they can be used to solve problems
Which of these IS computer science? (Hint: There are three)
Creating an app that allows friends to share funny cat videos
Commenting on friends' vacation photos
Reading a comic book on your iPad
Writing a program that checks your math homework for correct answers
Programming a video game
Which of these IS NOT computer science? (Hint: There are three)
Creating an app that allows friends to share funny cat videos
Commenting on friends' vacation photos
Reading a comic book on your iPad
Watching videos of cats riding tricycles
Programming a video game
What is a programming language
The result of your code, what is seen when it runs
Python is a widely used language for designing websites, analyzing data, etc.
Words, numbers, symbols and formatting used to tell computers what to do
Built-in tools, such a print
In python, what is output?
Built-in tools, such as print
Text in parentheses
The name of a variable
The result of the code, what is seen when it runs
In python, what is a function?
Built-in tools, such as print
Text in parentheses
The name of a variable
The result of the code, what is seen when it runs
In python, what is a parameter value?
Built-in tools, such as print
Text in parentheses
The name of a variable
The result of the code, what is seen when it runs
In python, what is a variable?
Built-in tools, such as print
Text in parentheses
The name of a variable
The result of the code, what is seen when it runs
Which of these is NOT a type of data that can be a variable?
Comments
Integers
Strings
Boolean values
A print statement is:
Input
Output
String
Comment
Error
Info a program receives from a user is:
Input
Output
String
Comment
Error
A line of code ignored by the computer is:
Input
Output
String
Comment
Error
A series of letters, numbers, or symbols in quotation marks is:
Input
Output
String
Comment
Error
What is it called when you join two strings together with the + symbol?
Assignment
Concatenation
Value
Float
Integer
What is a number that has a decimal point?
Assignment
Concatenation
Value
Float
Integer
What is a whole number?
Assignment
Concatenation
Value
Float
Integer
What is the process for storing a variable? (x = y, for example?)
Assignment
Concatenation
Value
Float
Integer
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
Why was Python (TM) developed?
To go back to the old way of programming
To create a programming language for students in grade school
To make it easier to learn Java
Python was developed by accident
Python (TM) is owned and managed by
Microsoft (c)
Sun Microsystems (c)
Python (TM) is open source and free to use
Google (c)
Python is ___________ level programming language and is ___________.
High, compiled
High, interpreted
Low, compiled
Low, interpreted
Generally speaking, a low level programming language is easier to read, write and maintain over a high level programming language
True
False
The syntax in Python (TM) is one of the main advantages over other high level programming languages.
True
False
A statement in programming
Expresses an action to be carried out
Always returns results like expressions
Rules controlling how components in a program are combined
An instruction to perform a task, usually one word
A string
carries out an action
the elements of a command
a collection of characters
how elements in a commad are arranged
A block is
a statement including elements of a command
the structure and form of the code
source code that is grouped together
meaning assigned to symbols, characters and words
What symbol comes before a comment?
$
>>
#
!
An exception is
the structure of form of the code
the meaning of the characters and words in the code
the statement that is missing from the instructions
an event occurring during execution of a program which disrupts the flow of the program's instructions
Debugging is
how characters are arranged in a statement
detecting or removing errors from a program
removing viruses from a computer
the meaning of each of the characters and symbols in the program
A disadvantage of Python is it is harder to debug than other higher level programming languages.
True
False
In programming, a (n) _______________ is a value that can change, depending on conditions or on information passed to the program
string
block
instruction
variable
Generally speaking Python (TM) would run _____________ than C++ and take ____________ time to create
faster, less
faster, more
slower, less
slower, more
Since Python (TM) is open source,
Support for using Python (TM) is easy to find
It is free
There is a large catalog of supporting documents
it is a less powerful programming languange
What is the title of the documentary?
(a)
The documentary focuses on what race (a) of Americans.
What does NASA stand for?
National Aeronautic and Space Administration
National Airplane and Space Administration
National Aeronautic and Space Agency
Who was Charlie Bolden?
Former NASA Administrator and Astronaut
Delta Pilot
News Reporter
Charlie Bolden was the first (a) NASA Administrator under the (b) Presidency
(a) was the first African American offered to become a NASA astronaut by President Kennedy.
African Americans became engineers by going to what schools?
Military
Public
Private
HBCU
A while loop can be used in which of the following situations?
Repeat a set of statements till a condition remains True.
Repeat a set of statements a finite or an infinite number of times.
Iterate through a string, list, and tuple.
All of the above
What is a variable?
a type of graphics
A box(memory location) where you store values
Data type
a type of memory
What symbol is used in python to assign values to a variable?
equals =
plus +
minus -
asterisk *
What will be the output?
name = "Dave"
print (name)
(name)
Dave
name
Nothing
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly
True
False
Which statement correctly assigns the string "Tanner" to the variable name?
name = print( "Tanner")
input("Tanner")
name= "Tanner"
name = input("Tanner")
What is the output from the following code?
print ("hello world")
hello world
nothing
"HELLO WORLD"
What will be the output?
name = "Dave"
print ("name")
Dave
name
"name"
"Dave"
Kind of loop used when you know the number of times you want it to repeat
list
for
while
if
Loop that runs till the condition is true
list
while
for
if
In Python, the two types of loops are _____ and _______
while
for
list
if
Choose the correct output of the following code.
for i in range(10,15):
print(i)
10
11
12
13
14
15
10
11
12
13
14
11
12
13
14
15
11
12
13
14
What symbol do you use to make a comment in Python?
+
//
$
#
