wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ISA281 Exam 1

Total questions: 85

Worksheet time: 1hrs 11mins

Name
Class
Date
1.

What is an algorithm?

a)

Finite number

b)

Doable steps

c)

Provides solution

d)

All the above

2.

In Python, (a)   is used to request and get information from the user

3.

What is IDE?

a)

Integrated Development Environment

b)

Implicit Deployment Environment

c)

Interrogated Development Environment

4.

String literals are represented using _____

a)

' '

b)

" "

c)

All the above

5.

Binary operators use _____ operands and unary operators use _____ operand

a)

one, one

b)

two, one

c)

two, two

d)

three, two

6.

in, not in are ________ operators

a)

arithmetic

b)

membership

c)

relational

d)

logical

7.

Repeated execution of statements will be implemented by _____

a)

conditional struture

b)

sequential structure

c)

looping structure

8.

____ loops will never terminate.

a)

Definite

b)

Indefinite

c)

Infinite

9.

A single boolean variable used as the condition of a given control statement is called a _____

a)

boolean flag

b)

conditional variable

c)

condition

10.

(a)   is the most important part of the program development cycle

11.

fake code, informal language that has no syntax rule, not mean to be complied or executed. Used to create model program

a)

pseudocode

b)

flow design

c)

flowdiagram

d)

flowchart

12.

diagram that graphically depicts the steps in a program.

a)

pseudocode

b)

flow design

c)

flowdiagram

d)

flowchart

13.

Ovals are what in a flowchart?

a)

terminal symbols

b)

input and output symbols

c)

processing symbols

14.

Parallelograms are what in a flowchart?

a)

terminal symbols

b)

input and output symbols

c)

processing symbols

15.

Rectangles are what in a flowchart?

a)

terminal symbols

b)

input and output symbols

c)

processing symbols

16.

:piece of prewritten code that performs an operation

(a)  

17.

displays output on the screen

(a)  

18.

data given to a function is known as an (a)  

19.

(a)   :sequence of characters that is used as data

20.

(a)   :string that appears in actual code of a program

21.

notes of explanation within a program, ignored by Python interpreter, intended for a person reading the program's code not the computer.

(a)  

22.

name that represents a value stored in the computer, a (a)   references the value it represents

23.

(a)   used to create a variable and make it reference data

24.

the assignment operator is the (a)  

25.

Select of the illegal variable names in Python

a)

course evaluation

b)

99bottle

c)

july2009

d)

theSalesFigureForFiscalYear

e)

r&d

26.

removal of values that are no longer referenced by variables and carried out by Python interpreter is known as (a)   .

27.

1+2 is the same as "a" + "b"

a)

TRUE

b)

FALSE

28.

what function converts something into an integer

(a)  

29.

what function converts something to a decimal formatted number

(a)  

30.

(a)   : values surrounding operator

31.

(a)   performs floating point division

32.

(a)   performs integer division

33.

3//2 = ?

(a)  

34.

3/2=?

(a)  

35.

Where does remainder(%) go in PEMDAS for Python Order of Operations

a)

P

b)

E

c)

M/D

d)

A

e)

S

36.

5+2*4 = ?

(a)  

37.

(a)   : allows a break a statement into multiple lines

38.

this (a)   symbol allows to break a statement into multiple lines

39.

(a)   allows us to append one string to the end of another string

40.

  • the default value for the end of printed data is (a)  

41.

special argument (a)   causes print to use delimiter

42.

(a)   causes print to place delimiter at end of data instead of newline character

43.

what does this do?:

\n

(a)  

44.

what does this do?

\t

(a)  

45.

Python allows one to display multiple items with a single call to print

a)

TRUE

b)

FALSE

46.

(a)   is a special type of string literal. This supports placeholders for variables

47.

.2f means"

  • - round the value to 2 decimal places

  • display the value as a floating point number

  • (.2 is (a)   )

48.

(a)   is an unexplained numeric value that appears in a program's code.

49.

Write a statment that displays the following text: Python's the Best!

a)

print("Python's the Best!")

b)

print('Python's the Best!')

c)

print(Python's the best!)

d)

print("Python's the Best")

50.

What value will be assigned to result after the following statement executes>

result = 9//2

a)

2

b)

4

c)

1

d)

4.5

51.

When writing a Python code, we should use Magic numbers instead of Named Constants to reduce the risk of making a typographical mistake

a)

TRUE

b)

FALSE

52.

(a)   : logical design that controls order in which set of statements execute.

53.

set of statements that execute in the order they appear

(a)  

54.

specific action(s) perfomred only if a condition exists

(a)  

55.

repeatedly executing a certain piece of a code block

(a)  

56.

the symbols <, >, and = are all ________ operators.

a)

relational

b)

logical

c)

conditional

d)

ternary

57.

the symbols and, or, not are all ________ operators.

a)

relational

b)

logical

c)

conditional

d)

ternary

58.

(a)   :expression tested by if statement to determine if it is true or false

a>b

59.

(a)   : operators that can be used to create complex Boolean expressions

60.

: references one of two values, True or False

  • represented by bool data type



(a)  

61.

: variable that signals when some condition exists

when ______- set to False > Condtion does not exist

when ________ set to True > Condition exists

(a)  

62.

programming structure that causes a statement or set of statements to repeat as long as something evaluates to True is known as (a)   .

63.

programming structure that iterates a specific number of times is known as (a)  

64.

to calculate the total number of iterations of a nested loop, add the number of iterations of all loops

a)

TRUE

b)

FALSE

65.

GIGO stands for ________

a)

great input, great output

b)

garbage in, garbage out

c)

GIgahertz Output

d)

GIGabyte Operation

66.

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.

a)

sentinel

b)

flag

c)

signal

d)

accumulator

67.

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. 

a)

TRUE

b)

FALSE

68.

(a)   : when condition is true, do something

69.

: one execution of the body of a loop

(a)  

70.

while loop is known as (a)  

71.

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)   .

72.

: special set of operators designed for this type of job.

(a)  

73.

Which of the following is a correct way of using an augmented assignment operator

a)

x=+1

b)

x+=1

c)

x=-1

d)

x!=1

74.

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.

75.

what will be the output? (put a comma in between answers)

(a)  

76.

inspecting input before it is processed by the program is known as (a)   .

77.

(a)   iterates a special number of times

78.

(a)   : the variable which is the target of the assignment at the beginning of each iteration

79.

the (a)   function simplifies the process of writing a for loop.

80.

(a)   characteristics:

one argument: used as ending limit

Two arguments: starting value and ending limit

Three arguments: third argument is step value

81.

loop that is contained inside another loop is known as (a)  

82.

5 != 5 what is the result

(a)  

83.

What is the result

(a)  

84.
a)

Even

b)

Odd

c)

b is greater or equal to a

d)

Syntax error

85.

What is the output?

(a)