hi

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

parameter

A ________ is a variable that receives an argument which is passed to a module.

global

A ________ variable is visible to every module and the entire program.

multiple

A case structure is a ________ alternative decision structure.

a set of instructions that allow the computer to solve a problem or perform a task

A computer program is ________.

false

A module can have two or more variables with the same name because they are within the same scope.

body

A module definition consists of the module header and the module ________.

true

A nested decision structure can achieve the same logic as a case structure.

true

A nested decision structure can be used to test more than one condition.

true

A sequence of characters that is used as data is called a string.

name, data type

A variable declaration typically specifies the variable's ________ and ________.

true

A variable is a storage location in memory that is represented by a name and can hold different values during the execution of the program.

flowchart

A(n) ________ is a diagram that graphically depicts the steps that take place in a program.

named constant

A(n) ________ is a name that represents a value which cannot be changed during the program's execution.

false

An If-Then-Else statement must be used to write a single alternative decision structure.

value

An argument that is passed by ________ is not affected by a change to the content of the parameter variable.

true

An attempt to pass a non-variable argument into a reference variable parameter will cause an error.

False

An uninitialized variable is a variable that has been declared and automatically initialized to zero.

function

Another name for a module is a(n) ________.

programs that make the computer useful to a user

Application software refers to ________.

false

Flowcharts and pseudocode documents are the same thing.

Let's talk about your grades.

Given the following pseudocode, what would display if this pseudocode was coded and executed, given that examGrade = 73 and homeworkGrade = 67?

not

If an expression is False, the ________ operator will return True.

rectangle

In a flowchart, a module call is represented by a(n) ________ symbol with vertical bars at each side.

diamond

In a flowchart, the ________ symbol indicates that some condition must be tested.

true

In an expression with an OR operator, it does not matter which subexpression is True for the compound expression to be True.

true

In many languages the == operator determines whether one variable has the same value as another variable.

true

Interpreted programs always execute faster than compiled programs.

ram

Main memory is also called ________.

true

Modules can be written for commonly needed tasks, and those modules can be incorporated into each program that needs them.

true

When a variable is passed by reference to a module, changes to the value of the argument in the module will also affect the variable in the part of the program that sent that argument.

false

Assembly language is referred to as a high-level language because it is similar to the C++ language.

true

Pseudocode is often used to plan out a program because the programmer does not have to worry about syntax rules.

true

Variable names cannot include spaces.

True

What does the following expression evaluate to, given that a = 3 and b = 6? (a == b) OR (b > a)

the rules that must be followed when writing a program

What is syntax?

widgets has been declared as an Integer and cannot hold a floating-point value.

What is the error in the following pseudocode? Declare Integer widgets Declare Real cost Set widgets = 3.5 Set cost = widgets * 5

The input is a number, not a string.

What is the error in the following pseudocode? Declare String user Display "How many widgets do you want to buy?" Input user

design the program

What is the first step of the program development cycle?

a quote mark ( " )

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

relational

What type of operator determines whether a specific relationship exists between two values?

These animals are different.

What would be displayed if the following pseudocode was coded and executed? Declare String pet1 = "puppy" Declare String pet2 = "kitten" If pet1 == pet2 Then Display "These animals are the same." Else Display "These animals are different." End if

value

When an argument is passed by ________, only a copy of the argument's value is passed into the parameter variable.

reference

When an argument is passed by ________, the parameter receives the address of the argument so both the argument and the parameter point to the same memory location.

logic

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

It translates and executes

Which of the following functions does an interpreter perform with the instructions from a high-level language?

Programs which contain modules always run faster than programs without modules.

Which of the following is not a benefit of using modules when developing a program?

All are logical operators: NOT OR AND

Which of the following is not a logical operator?

Numeral

Which of the following is not a variable data type?

a hierarchy chart

Which of the following would a programmer use to visualize the relationship between modules?

false

The OR operator will evaluate to True only if both subexpressions are also True.

bit

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

digital

The term ________ can be used to describe anything that uses binary numbers.

programs

Software refers to ________.

sequence

The ________ structure consists of a set of statements that execute in the order in which they appear.

true

The arguments in a module call and the parameters listed in the module header must be of compatible data types.

false

The following statement will evaluate to True:

hand tracing

The process of stepping through each of a program's statements, one by one, to see what each statement does is known as ________.

true

The scope of a variable is the segment of the program in which the variable can be accessed.

false

The scope of the parameter variables is the entire program and they are visible to any statement in the program.

false

The short-circuit evaluation is always performed with all expressions that contain any logical operators.

global

The use of ________ variables may make programs hard to understand and debug.

definition

To create a module, you write its ________.

call it

To execute a module, you must ________.

Pseudocode

________ is the informal language used by programmers to create models of programs.

Syntax

________ is the term used for a set of rules that must be strictly followed when writing a program.

hardware

________ refers to the physical components that a computer is made of.


संबंधित स्टडी सेट्स

SCALED AGILE FRAMEWORK Scrum Master

View Set

cognitive development (chapter 6)

View Set

Texas Law of Contracts: Quiz Questions

View Set

concepts of engineering and technology exam quesions

View Set

Nursing Fundamental Dynamic Quiz

View Set

9TH GRADE ALCOHOL AWARENESS AND DRUG TRAINING (ADAP)

View Set

AICPA Code of Professional Conduct

View Set

Chapter 18, Biogeochemical cycles

View Set