Font size
WorksheetsISA281 Exam 1
Total questions: 85
Worksheet time: 1hrs 11mins
What is an algorithm?
Finite number
Doable steps
Provides solution
All the above
In Python, (a) is used to request and get information from the user
What is IDE?
Integrated Development Environment
Implicit Deployment Environment
Interrogated Development Environment
String literals are represented using _____
' '
" "
All the above
Binary operators use _____ operands and unary operators use _____ operand
one, one
two, one
two, two
three, two
in, not in are ________ operators
arithmetic
membership
relational
logical
Repeated execution of statements will be implemented by _____
conditional struture
sequential structure
looping structure
____ loops will never terminate.
Definite
Indefinite
Infinite
A single boolean variable used as the condition of a given control statement is called a _____
boolean flag
conditional variable
condition
(a) is the most important part of the program development cycle
fake code, informal language that has no syntax rule, not mean to be complied or executed. Used to create model program
pseudocode
flow design
flowdiagram
flowchart
diagram that graphically depicts the steps in a program.
pseudocode
flow design
flowdiagram
flowchart
Ovals are what in a flowchart?
terminal symbols
input and output symbols
processing symbols
Parallelograms are what in a flowchart?
terminal symbols
input and output symbols
processing symbols
Rectangles are what in a flowchart?
terminal symbols
input and output symbols
processing symbols
:piece of prewritten code that performs an operation
(a)
displays output on the screen
(a)
data given to a function is known as an (a)
(a) :sequence of characters that is used as data
(a) :string that appears in actual code of a program
notes of explanation within a program, ignored by Python interpreter, intended for a person reading the program's code not the computer.
(a)
name that represents a value stored in the computer, a (a) references the value it represents
(a) used to create a variable and make it reference data
the assignment operator is the (a)
Select of the illegal variable names in Python
course evaluation
99bottle
july2009
theSalesFigureForFiscalYear
r&d
removal of values that are no longer referenced by variables and carried out by Python interpreter is known as (a) .
1+2 is the same as "a" + "b"
TRUE
FALSE
what function converts something into an integer
(a)
what function converts something to a decimal formatted number
(a)
(a) : values surrounding operator
(a) performs floating point division
(a) performs integer division
3//2 = ?
(a)
3/2=?
(a)
Where does remainder(%) go in PEMDAS for Python Order of Operations
P
E
M/D
A
S
5+2*4 = ?
(a)
(a) : allows a break a statement into multiple lines
this (a) symbol allows to break a statement into multiple lines
(a) allows us to append one string to the end of another string
the default value for the end of printed data is (a)
special argument (a) causes print to use delimiter
(a) causes print to place delimiter at end of data instead of newline character
what does this do?:
\n
(a)
what does this do?
\t
(a)
Python allows one to display multiple items with a single call to print
TRUE
FALSE
(a) is a special type of string literal. This supports placeholders for variables
.2f means"
- round the value to 2 decimal places
display the value as a floating point number
(.2 is (a) )
(a) is an unexplained numeric value that appears in a program's code.
Write a statment that displays the following text: Python's the Best!
print("Python's the Best!")
print('Python's the Best!')
print(Python's the best!)
print("Python's the Best")
What value will be assigned to result after the following statement executes>
result = 9//2
2
4
1
4.5
When writing a Python code, we should use Magic numbers instead of Named Constants to reduce the risk of making a typographical mistake
TRUE
FALSE
(a) : logical design that controls order in which set of statements execute.
set of statements that execute in the order they appear
(a)
specific action(s) perfomred only if a condition exists
(a)
repeatedly executing a certain piece of a code block
(a)
the symbols <, >, and = are all ________ operators.
relational
logical
conditional
ternary
the symbols and, or, not are all ________ operators.
relational
logical
conditional
ternary
(a) :expression tested by if statement to determine if it is true or false
a>b
(a) : operators that can be used to create complex Boolean expressions
: references one of two values, True or False
represented by bool data type
(a)
: variable that signals when some condition exists
when ______- set to False > Condtion does not exist
when ________ set to True > Condition exists
(a)
programming structure that causes a statement or set of statements to repeat as long as something evaluates to True is known as (a) .
programming structure that iterates a specific number of times is known as (a)
to calculate the total number of iterations of a nested loop, add the number of iterations of all loops
TRUE
FALSE
GIGO stands for ________
great input, great output
garbage in, garbage out
GIgahertz Output
GIGabyte Operation
A(n) is a special value that signals when there are no more items from a list of items to be processed. This value cannot be mistaken as an item from the list.
sentinel
flag
signal
accumulator
The process of input validation works as follows: when the user of a program enters invalid data, the program should ask the user "Are you sure your meant to enter that?" If the user answers "yes", the program should accept the data.
TRUE
FALSE
(a) : when condition is true, do something
: one execution of the body of a loop
(a)
while loop is known as (a)
My grade is ISA281 consists of exams, homework, quizzes, project, and attendance. To calculate the total grade I would throughout the semester I would use a (a) .
: special set of operators designed for this type of job.
(a)
Which of the following is a correct way of using an augmented assignment operator
x=+1
x+=1
x=-1
x!=1
the (a) is a special Python command that can be used to immediately end a loop.
It does not end the program but simply ends the current repetition structure (loop) and moves on to the next line of code.
what will be the output? (put a comma in between answers)
(a)
inspecting input before it is processed by the program is known as (a) .
(a) iterates a special number of times
(a) : the variable which is the target of the assignment at the beginning of each iteration
the (a) function simplifies the process of writing a for loop.
(a) characteristics:
one argument: used as ending limit
Two arguments: starting value and ending limit
Three arguments: third argument is step value
loop that is contained inside another loop is known as (a)
5 != 5 what is the result
(a)
What is the result
(a)
Even
Odd
b is greater or equal to a
Syntax error
What is the output?
(a)
