1/114
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Which of the following is not an example of application software?
Microsoft Word
Windows
PowerPoint
A web browser
Windows
The ____ cycle is used by the CPU to execute instructions in a program.
decode-fetch-execute
decode-execute-fetch
fetch-decode-execute
execute-fetch-decode
fetch-decode-execute
Assembly language is referred to as a high-level language because it is similar to the C++ language.
True
False
False
________ is the coding scheme that contains a set of 128 numeric codes which are used to represent characters in a computer's memory.
Unicode
ASCII
Binary numbering
Two’s complement
ASCII
Interpreted programs always execute faster than compiled programs.
True
False
True
A syntax error does not prevent a program from being compiled and execute.
True
False
False
IDEs are specialized software packages that help programmers write programs.
True
False
True
The physical devices that make up a computer are its ________.
software
applications
hardware
CPU
hardware
Which of the following is not an example of operating system software?
Microsoft Word
Windows
Linux
Mac OS X
Microsoft Word
Which of the following functions does an interpreter perform with the instructions from a high-level language?
It translates
It compiles
It compiles and translates
It executes
It translates and execute
It compiles and executes
It translates and execute
________ is the term used for a set of rules that must be strictly followed when writing a program.
Semantics
Syntax
Grammer
Key words
Syntax
The main reason to use secondary storage is to hold data for long periods of time, even when the power to the computer is turned off.
True
False
True
Computers can do many different jobs because they are ________.
programmable
reliable
automated
electronic
programmable
USB drives store data in a special type of memory known as ___.
magnetic memory
flash memory
optical server memory
disks
flash memory
The statements that a programmer writes in a high-level language are called ________.
binary code
pseudocode
source code
processor code
source code
________ is used to encode real numbers to store them in the computer's memory.
Floating-point notation
Unicode
Assembly language
RAM
Floating-point notation
RAM is volatile memory which means it cannot be erased.
True
False
False
A(n) ________ is a software package that usually consists of a text editor, a compiler or interpreter, and tools to test and debug programs.
compiler
CPU
storage device
IDE
IDE
A(n) ________ is a program that translates a high-level language into a machine language program.
compiler
CPU
storage device
IDE
compiler
What is syntax?
the symbols or words that perform operations in a program
What is the largest value that can be stored in one byte?
255
128
8
16
255
Programs that use an interpreter generally execute faster than compiled programs because they are already entirely translated into machine language when executed.
True
False
False
Which of the following companies does not manufacture microprocessors?
Intel
Dell
AMD
Motorola
Dell
________ refers to the physical components that a computer is made of.
The device
Hardware
Software
The system
Hardware
________ is the encoding technique used to store negative numbers in the computer's memory.
Unicode
ASCII
Floating-point notation
Two’s complement
Two’s complement
________ is an extensive encoding scheme that is compatible with ASCII.
Floating-point notation
Unicode
Assembly language
RAM
Unicode
The first high-level programming language that could perform complex mathematical calculations was ________.
COBAL
C++
FORTRAN
Ada
FORTRAN
System software typically includes applications that people normally use most often on their computers, such as word processing programs, games, or web browsers.
True
False
False
The following is an example of an instruction written in the ________ computer language.
1011000 010100110
C++
Assembly
Java
machine language
machine language
The computer language that uses mnemonics for writing programs is ________.
Assembly
Ada
Java
Pascal
Assembly
The term ________ can be used to describe anything that uses binary numbers.
digital
computer
mnemonic
processor
digital
Application software refers to ________.
programs that make the computer useful to a user
the operating system
key words
mobile devices
programs that make the computer useful to a user
A computer system consists of all of the following except ________.
the CPU
main memory
the operating system
input and output devices
the operating system
A bit that is turned off is represented by the value -1.
True
False
False
Programs that make a computer useful for everyday tasks are known as ________.
system software
application software
IDEs
operating systems
application software
Each different type of CPU has its own ________.
syntax
high-level language
machine language
software
machine language
The CPU understands binary instructions.
True
False
True
A program is a sequence of instructions stored in ________.
the CPU
the computer’s memory
software
the operating system
the computer’s memory
Software refers to ________.
programs
physical components of a computer
the CPU
data stored in RAM
programs
Main memory is also called ________.
ROM
RAM
the hard drive
secondary storage
RAM
The ________ structure consists of a set of statements that execute in the order in which they appear.
control
decision
repetition
sequence
sequence
What is the error in the following pseudocode?
Declare Integer widgets
Declare Real cost
Set widgets = 3.5
Set cost = widgets * 5
widgets is an invalid variable name for this code.
You cannot mix a Real variable and an Integer variable in a program.
widgets has been declared as an Integer and cannot hold a floating-point value.
There is no error
widgets has been declared as an Integer and cannot hold a floating-point value.
Flowcharts and pseudocode documents are the same thing.
True
False
False
What is the value of the variable result in the following expression?
Set result = (6+8)*4/2
22
7
28
10
28
The structure of the camelCase naming convention is to write the first word of the variable name in lowercase letters and then to capitalize the first character of the second and subsequent words.
True
False
True
The process of stepping through each of a program's statements, one by one, to see what each statement does is known as _____.
debugging
executing
hand tracing
bug checking
hand tracing
A variable declaration typically specifies the variable's ________ and ________.
name, value
data type, value
number, name
name, data type
name, data type
A(n) ________ is a diagram that graphically depicts the steps that take place in a program.
flowchart
algorithm
pseudocode document
code list
flowchart
A(n) ________ is a name that represents a value which cannot be changed during the program's execution.
uninitialized variable
named constant
input variable
named varibale
named constant
In a mathematical expression, addition and subtraction will be evaluated before multiplication.
True
False
False
What is the error in the following pseudocode?
Declare String user
Display “How many widgets do you want to buy?”
Input user
user is an invalid variable name for this code.
The Input statement should be the first statement.
user has been used before it is declared.
The input is a number, not a string.
The input is a number, not a string.
What is the error in the following pseudocode?
Display “What is your name?”
Input userName
Declare String userName
userName is an invalid variable name.
The Input statement should be the first statement.
userName has been used before it is declared.
There is no error
userName has been used before it is declared.
Which of the following is not a variable data type?
Integer
Real
Numeral
String
Numeral
What is the value of the following expression?
(12-4)*3/2+9
21
15
-6
2.18
21
The following two expressions will always yield identical results:
(a+b)/c
a+b/c
True
False
False
What symbol is used to mark the beginning and end of a string?
a slash /
an asterisk *
a quote mark “
a semicolon ;
a quote mark “
Pseudocode is often used to plan out a program because the programmer does not have to worry about syntax rules.
True
False
True
Which of the following is not an actual programming language?
C++
Python
Pseudocode
Java
Pseudocode
What is the value of the variable result in the following expression?
Set results = (6+8)/4×2
22
7
28
10
7
Which of the following would cause an error in a program?
attempting to store a floating-point value in a variable with Integer data type
attempting to store a floating-point value in a variable with String data type
attempting to store an integer in a variable with String data type
All of these would cause errors
All of these would cause errors
Which of the following error types produces incorrect results but does not prevent the program from running?
syntax
logic
human
grammer
logic
What is the value of the following expression?
12-4×3/2+9
21
15
-6
2.18
15
A(n) ________ symbol is used for an assignment statement in a flowchart.
parallelogram
oval
processing
triangle
processing
The program development cycle is made up of ________ steps that are repeated until no errors can be found in the program.
five
four
three
two
five
The ________ operator is used to raise 5 to the second power.
MOD
^
/
*
^
What does the following expression evaluate to, given that a = 3 and b = 6?
(a ≠ b) AND (b>a)
True
False
True
An If-Then-Else statement must be used to write a single alternative decision structure.
True
False
False
A nested decision structure can be used to test more than one condition.
True
False
True
A case structure is a ________ alternative decision structure.
single
dual
multiple
All of these
multiple
In a flowchart, the ________ symbol indicates that some condition must be tested.
rectangle
oval
parallelogram
diamond
diamond
In many languages, the case structure is called a ________ statement.
branch
jump
selective
switch
switch
The short-circuit evaluation is always performed with all expressions that contain any logical operators.
True
False
False
If the following pseudocode was coded and run, what would display, given that rate = 8?
A
B
C
Rating not possible
B
If the following pseudocode was coded and run, what would display, given that rate = 9?
A
B
C
Rating not possible
B
The first line of a case structure starts with the word CASE, followed by the test expression.
True
False
False
What does the following expression evaluate to, given that a = 3 and b = 6?
(a == b) OR (b>a)
True
False
NOT
cannot tell
True
The OR operator will evaluate to True only if both subexpressions are also True.
True
False
False
Decision structures and selection structures are completely different.
True
False
False
The following statement will evaluate to True:
(5>6) AND (12<14)
True
False
False
A decision structure will produce unpredictable results if the programmer does not use proper indentation in the pseudocode.
True
False
False
The ________ operator is a unary operator, which means it works with only one operand.
AND
OR
NOT
All are unary operators
NOT
Which of the following expressions would check if a number, x, is outside the range 90 - 100, inclusive (i.e., either less than 90 or greater than 100)?
x < 90 AND x > 100
x <= 90 AND x >= 100
x < 90 OR x > 100
x <= 90 OR x >= 100
x < 90 OR x > 100
Given the following pseudocode, what would display if this pseudocode was coded and executed, given that examGrade = 73 and homeworkGrade = 67?
You are doing very well!
Study harder for the next exam. See me for help with homework.
Study harder for the next exam. See me for help with homework. Let’s talk about your grades.
Let’s talk about your grades.
Let’s talk about your grades.
What would be displayed if the following pseudocode was coded and executed?
These animals are the same
These animals are different
These animals are the same. These animals are different.
puppy kitten These animals are different.
puppy kitten These animals are different.
What type of operator determines whether a specific relationship exists between two values?
Boolean
logical
relational
mathematical
relational
Which of the following operators is used in most languages to test if two operands do not have the exact same value?
==
!
=!
!=
!=
Which of the following expressions would check if a number, x, is between 90 and 100, inclusive?
x > 90 AND x < 100
x >= 90 AND x <= 100
x > 90 OR x < 100
x >= 90 OR x <= 100
x >= 90 AND x <= 100
The following statement will evaluate to True:
(5>6) OR (12<14)
True
False
True
Which of the following is not a logical operator?
AND
OR
NOT
all are logical operators
all are logical operators
What would be displayed if the following pseudocode was coded and executed, with salary = 400?
80
400
410
480
480
The While loop gets its name from the way it works: It does a task while a condition is false.
True
False
False
The following is an example of a ________ loop.
While x < 10
Set sum = sum + x
Set x = x + 1
End While
count-controlled
condition-controlled
While
Do-While
count-controlled
The amount by which the counter variable is incremented or decremented in a For loop is known as the ________.
incremental value
step amount
accumulator
counter index
step amount
Which type of loop repeats a statement or set of statements as long as the Boolean expression is false?
Do-While
For
While
Do-Until
Do-Until
You can only use positive integers as step values in a For statement.
True
False
False
A condition-controlled loop can be used to iterate the body of the loop a specific number of times.
True
False
True
A(n) ________ represents a special value that marks the end of a list of values.
sentinel
Step
End For
counter
sentinel
In the following pseudocode, which value is the accumulator?
x
m
x+m
There is no accumulator
x
Select all that apply. Which of the following cause(s) a statement or set of statements to repeat as long as a condition is true?
While loops
Do-While loops
Do-Until loops
For loops
While loops
Do-While loops
For loops
How many times would the following loop iterate?
0
4
5
infinite
0