stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Programming and Logic I Review Flashcards | StudBud
Explore
/
Programming and Logic I Review
Programming and Logic I Review
54 terms
·
StudBud Administration
·
526 plays
Imported from external platform
Flashcards
54 cards
F
Practice quiz
P
Host live
L
Questions
54
Answers
1
What type of programming encapsulates data and functions together in an object?
Object-oriented
Interactive
Menu-driven
Procedural
2
The value of the expression 12 - 4 * 3 / 2 + 9 is _______.
15
-6
21
2.18
3
What type of programming centers on procedures that take place in the program?
object-oriented
interactive
menu-driven
procedural
4
What type of operators are the following?
boolean
logical
relational
mathematical
5
Which loop does not contain an increment statement but automatically increments?
Do-Until
For
While
Do-While
6
Programs that make a computer useful for everyday tasks are know as _________________.
System Software
Applications Software
Utility Programs
Operation Software
7
Which operator is used to determine that the operands are not exactly of the same value?
==
=
=!
None of the these
8
What value is used to mark the end of a list of values? (Used to exit a loop)
End
Stop
Sentinel
Flag
9
A ______ structure is a set of statements that execute in the order they appear.
sequence
repetition
control
decision
10
What is the term used for the variable that receives an argument that passed into a method?
local
parameter
constant
global
11
Which of these are post test loops?
Do-While, Do-Until
Do-Until, For
Do-While, For
While, Do-While
12
What is the standard way of drawing diagrams that describe object-oriented systems.
UML
Flowchart
Data flow diagram
Hierarchy chart
13
What is the term used for a set of rules that must be strictly followed when writing code?
key words
semantics
grammar
syntax
14
What are the functions that the object performs called?
addresses
methods
records
fields
15
Which loop causes a statement or set of statements to repeat as long as a condition is true?
Do-While and For
Do-Until and For
While and Do-Until
While and Do-While
16
Which operator could be used, in some situations, to simplify nested selection structures?
AND
NOT
None of the these
OR
17
What part of a program contain both properties and actions?
Instances
Memory location(s)
Events
Objects
18
What is the name that represents a value that cannot be changed during the program's execution?
named variable
input variable
named constant
uninitialized variable
19
What loop uses a Boolean expression to control the number of times it repeats?
While
Condition-controlled
Do-While
Count-controlled
20
What is function another name for?
method
sub class
variable
reference
21
Which structure causes a statement or set of statements to execute repeatedly?
Repetition
Decision
Start Over
Sequence
22
Which method is called automatically when an object is created?
private
constructor
design
public
23
A loop that accumulates a total as it reads each number from a series is often said to keep __.
Average
Accumulation
Maximum value
Running total
24
Which loop is specifically designed to initialize, test, and increment a counter variable?
for
do-while
do-unitl
while
25
Which of the following is not the appropriate structure to use to program the statement below?
control
selection
decision
sequence
26
What is the first step of the program development cycle?
Design the program
Debug the code
Write the code
Test the code
27
Methods are commonly called what?
subrountines
functions
modules
procedures
28
Which loop repeats as long as the Boolean expression is false?
Do-Until
While
For
Do-While
29
What allows a new class to extend all its properties and methods to an existing class?
Inheritance
Polymorphism
Constructor
Private
30
What mathematical operator is used to raise five to the second power?
~
^
/
MOD
31
The class ____ starts with the word Class followed by the name of the class
members
definition
return
body
32
How many times will the following loop iterate?
No iterations
inifinite
one
five
33
_________ is another name for accessor methods.
setters
private
accessors
getters
34
The mutator methods are sometimes called ____________.
getters
setters
private
public
35
What symbol is used to mark the beginning and end of a string?
?
'
!
"
36
What type of operator is used to determine if a relationship exists between two values?
relational
boolean
mathematical
logical
37
What does an interpreter do with the instructions in a high-level programming language?
Translates
Translates and Executes
Complies
Compiles and Translates
38
Which of the following is not an example of operating system software?
Ubuntu
Microsoft PowerPoint
Linux
Windows 7
39
How many times will the following loop iterate?
three
infinite
no iterations
two
40
To decrease the value of a variable means to _______.
Reference
Initialize
Negate
Decrement
41
Which of the following is not an actual programming language?
C++
Pseudocode
Python
Visual Basic
42
The following is an example of what type of loop?
Condition-controlled
Do-Until
Count-controlled
While
43
Which error produces incorrect results but does not prevent the program from running?
syntax
logic
grammar
semantics
44
How many times will the following loop iterate?
3
5
4
Infinite
45
What is the informal language used to create models of programs?
flowchart
program
pseudocode
algorithm
46
A case structure is a ______ alternative decision structure.
multiple
single
dual
single or dual
47
Which operator is best to determine whether x contains a value in the range of 10 through 57?
NOT
==
OR
AND
48
var rate = 10; is an example of what type of statement?
input
output
assignment
declaration
49
How do you execute a method?
Call
Parse
Compile
Debug
50
The _________ is a diagram that graphically depicts the steps that take place in a program.
Flowchart
Program
Algorithim
Pseudocode
51
What part of a function specifies the return data type, name of the function, and parameter?
definition
body
statement
header
52
Which of the following operators reverses the logic of its operand?
OR
AND
NOT
All of the above
53
10101100111 is an example of an instruction written in which computer language?
Machine language
Assembly language
C#
Alice
54
What type of expression is a condition?
logical
boolean
relational
mathematical