CSC Final

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

The value of the expression 12 - 4 * 3 / 2 + 9 is ______

15

What is the largest value that can be stored in one byte?

255

The ______ coding scheme contains a set of 128 numeric codes that are used to represent characters in a computer's memory

ASCII

Which of the following devices is a computer?

All of these

Programs the make a computer useful for everyday tasks are known as _____

Application Software

Which computer language uses short words known as mnemonics for writing programs?

Assembly

The following is an example of what type of statement? Set rate = 5.75

Assignment

The priming read is placed ________ the loop

Before

The smallest storage location in a computer's memory is known as a ____

Bit

In addition to using loops to validate data, ________ can also be used to validate data.

Boolean Function

The process of appending one string to the end of another string is called _______

Concatenation

Accepting February 29 in only a leap year is a check that is done by a ________ check.

Date

Designing a program to avoid common errors is called ________ programming.

Defensive

Which of the following is not a microprocessor manufacturing company?

Dell

What is the first step of the programming development cycle?

Design the program

What term can be used to describe anything that uses binary numbers?

Digital

________ happens when an input operation attempts to read data, but there is no data to read.

Empty Input

Which of the following is not an input validation error type?

Empty Input, Incorrect Date Type, Inaccurate data

________ is sometimes the term used for input validation.

Error Trap

_______ documentation is a reference guide that describes the features of the program, designed for the user

External

________ was the first high-level programming language designed that could perform complex mathematical calculations

FORTRAN

A posttest loop does not perform any iteration if the Boolean expression is false to begin with.

False

An if statement will produce unpredictable results if the programmer does not use proper indentations in psuedocode

False

In a For loop, the programmer should know the exact number of iterations the loop must perform before writing the code.

False

In a sequential search algorithm, the Boolean variable used as a flag is initialized to TRUE.

False

In the For statement, you can only use positive integers as step values.

False

T/F It is possible to write a complete program using only a decision structure

False

T/F Psuedocode could be logically incorrect is not properly indented

False

The If-Then-Else statement should be used to write a single alternative decision structure.

False

The While loop gets its name from the way it works: While a condition is false, do some task.

False

The While loop will never execute if its condition is true to start with.

False

The first line of the case structure starts with the word CASE followed by the test expression

False

The short-circuit evaluation is performed with expressions containing any logical operators.

False

Unlike variables, arrays need to be initialized separately from the declaration.

False

The process known as the _______ cycle is used by the CPU to execute instructions in a program

Fetch-decode-execute

The ______ is a diagram that graphically depicts the steps that take place in a program

Flowchart

The process where the programmer steps through each of the program's statements one by one is called _______

Hand Tracing

What is another term for "desk checking"?

Hand Tracing

The ________ chart is a tool that programmers use when designing functions.

IPO

The ________ function accepts a string as its argument and returns the number of characters in the string.

Length

________ is the process where a program can be configured for a specific country.

Localization

The following is an example of an instruction written in which computer language?

Machine Language

The disk drive is a secondary storage device that stores data by ______ encoding it into circular disks

Magnetically

Which of the following is not an example of Operating System Software?

Microsoft Word

A ______ is a name that represents a value that cannot be changed during the program's exectution

Named Constant

Which of the following is not a variable data type?

Number

A computer system consists of all of the following, excepts _____

Operating System

Data is not recorded magnetically on a ______, but is encoded as a series of pits on a disk surface

Optical Disk

The ________ column describes the data that is returned from the function in an IPO chart.

Output

The purpose of the ________ is to get the first input value for the validation of a loop.

Priming Read

Which symbol is used for an assignment statement in a flowchart?

Processing

What is the informal language that programmers use to create models of programs that have no syntax rule and are not meant to be compiled or executed?

Psuedocode

Which of the following is not an actual programming language?

Psuedocode

What symbol is used to mark the beginning and end of a string

Quotation (")

What is the first step to use in detecting data type mismatch errors

Read the input as a string

If, when asked for a date of birth, the user enters a future date, this error should be caught by a ________ check.

Reasonableness

Which of the following is not a check for data accuracy?

Salary within allowable range, Time measurements, Zip codes in correct format and valid

A ____ structure is a set of statements that executes in the order that they appear

Sequence

A function is a group of ________ that perform a specific task.

Statements

What type of function can be used to see if the password entered has the minimum number of characters?

String

What term is used for a string that appears in the actual code of the program?

String Literal

The term used for a set of rules that must be strictly followed when writing a program is ____

Syntax

Which of the following statements is true about this Boolean expression? Score < 0 AND Score> 100

The expression would never be true

What function does an interpreter perform with the instructions in a high-level programming language?

Translates and Executes

A While loop repeats infinitely when there is no statement inside the loop body that makes the test condition false.

True

A condition-controlled loop can be used to iterate the body of the loop a specific number of times.

True

Although the sequence structure is heavily used in programming, it cannot handle every type of task.

True

Any loop that can be written as a Do-While loop can also be written as a While loop.

True

Array bounds checking happens at runtime, which is while the program is running.

True

Decision structures are also known as selection structures.

True

Modules can be called from statements in the body of any loop.

True

Subscripts are used to identify specific elements in an array

True

T/F A nested decision structure can achieve the same logic as a case structure

True

T/F A nested decision structure can be used to test more than one condition

True

T/F In an expression with an OR operator, it does not matter which sub-expression is true for the compound expression to be true

True

T/F The If-Then-Else statement can be used to simplify a complex nested decision structure

True

The While and For loops are considered pretest loops because they test the condition before processing the statement(s) in the loop body.

True

The While loop is known as a pretest loop, which means it tests its condition before performing an iteration.

True

The conditions that control a loop repetition are Boolean expressions.

True

The first step in calculating the average of the values in an array is to get the total of the values.

True

What is the encoding technique called that is used to store negative numbers in the computer's memory?

Twos complement

Input ________ is commonly done with a loop that iterates as long as an input variable contains bad data.

Validation

In programming, the characters in a string are each identified by its position number, and the first character is in position number ________.

Zero

Which mathematical operator is used to raise five to the second power

^

The ________ function accepts two strings as arguments and returns a third string that is created by appending the second string to the end of the first string.

append

Because you do not see the internal workings of library functions, many programmers think of them as ________.

black boxes

Most programming languages allow you to write ________ functions, which return either True or False.

boolean

When a function is called, it is ________.

executed

The program development cycle is made up of _______ steps that are repeated until no errors can be found in the program

five

What is the famous saying among computer programmers that refers to the fact that computers cannot tell the difference between good and bad data?

garbage in; garbage out

The ________ function can be used to determine whether a string can be converted to an integer.

isInteger

Which of the following library functions could be used to validate that the correct data type was input for an amount of money?

isReal

Which of the following library functions could be used to validate the length of a string?

isString

Which error produces incorrect results but does not prevent the program from running?

logic

There can be only ________ return value from a function to the called module.

one

In a flowchart of a function, the starting terminal symbol states the name of the function, along with any ________ that the function has.

parameters

A(n) ________ statement specifies the value that is returned from the function when the function ends.

return

One of the statements in the function body must be a(n) ________ statement.

return

The ________ function accepts an argument and returns the square root of the argument.

sqrt

Which of the following library functions could be used to simplify the process of string validation?

toUpper


Set pelajaran terkait

Management Lesson 6 (Ch. 2)- External Environment and Organizational Culture

View Set

Prep-U: Benzodiazepine & Skeletal Muscle Relaxants

View Set

Pharmacology Chapter 12 Central Nervous System Depressants and Muscle Relaxants

View Set