stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python quiz 1 Flashcards | StudBud
Explore
/
Python quiz 1
Python quiz 1
19 terms
·
StudBud Administration
Basics on computer programming
Flashcards
19 cards
F
Practice quiz
P
Host live
L
Questions
19
Answers
1
python scripts have names that end in
.doc
.txt
.exe
.py
2
A usb drive is an example of ....
a CPU
an output device
main memory
secondary memory
3
This program is an example of which instruction pattern?
store and retrieve
repeated steps
sequential steps
conditional steps
4
A program is ....
something that happens afterschool
something hard to learn.
a set of instructions
all 1s and 0s
5
Repeated instructions
are "remebered" by python to be used later
execute in the order in which they are written
execute only when stated parameters are met
execute again and again for a definite or indefinite time
6
Sequential instructions
execute again and again for a definite or indefinite time
execute only when stated parameters are met
execute in the order in which they are written
are "remebered" by python to be used later
7
Python has special words that mean a lot to it, so we can not use them to name variables.
These are called methods.
These are called reserved words.
These are called parsel words.
These are called functions.
8
If we receive a "syntax error" or "traceback" this is Python's way of saying:....
python needs to be updated
You are a meanie booboo butt who doesn't know how to program
help! I don't know what to do now.
the computer is overheating and needs to cool down
9
say "good bye" to python by typing...
//stop
#exit
while
quit()
10
Conditional instructions
execute again and again for a definite or indefinite time
execute only when stated requirements are met
execute in the order in which they are written
are "remebered" by python to be used later
11
Which one of these is an example of a reserved word in Python
if
four
walk
wait
12
There are four basic programming instruction patterns...
sequestor, conditional , repeated, store and retrieve
sequential, parameters, repetitive, store and retrieve
sequential, conditional, repeated, catch and release
sequential, conditional, repeated, store and retrieve
13
This program is an example of which instruction pattern?
sequential steps
store and retrieve
repeated steps
conditional steps
14
In a python story counts[words]=counts.get(word,0)+1
is a paragraph about how to find the largest item in a list
is a letter used to hold the value of a variable
is a word used to read data from a user
is a sentence about updating one of the many counts
15
In this python story "input" is
a paragraph about how to find the largest item in a list
a sentence about updating one of the many counts
a function used to read data from a user
a letter used to hold the value of a variable
16
In a python story if bigcount is None or count > bigcount: bigword=word bigcount=count
is a paragraph about how to find the largest item in a list
is a sentence about updating one of the many counts
is a letter used to hold the value of a variable
is a word used to read data from a user
17
This program is an example of which instruction pattern?
sequential steps
repeated steps
store and retrieve
conditional steps
18
The part of a computer that executes the program is the
input/output devices
main memory
secondary memory
central processing unit
19
when we refer to code in this class we mean
a sequence of instructions written in a programming language
a set of rules that govern the style of programs
a password to unlock hidden python powers
a way to write secret messages our teachers can't understand