EXAM 1 IT

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

The CPU understands binary instructions.

true

IDEs are specialized software packages that help programmers write programs.

true

In a math expression, multiplication and division take place before addition and subtraction.

true

Given the following pseudocode, what is the value of score after the call to the curveScore module? Module Main() Declare Integer myGrade=93 Call curveScore(mygrade) End Module Module curveScore (Integer score) Declare Integer newScore Set newScore=score+5 Display newScore Set score=0 End Module

0

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

true

The value of a named constant cannot be changed during the program's execution.

true

Given the follow pseudocode, which is the argument? Module Main() Call curveScore(82) End Module Module curveScore (Integer score) Declare Integer newScore Set newScore=score+5 Display newScore End Module

82

Programs that use an interpreter generally execute faster than compiled programs because they are already entirely translated into machine language when executed.

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.

IDE

Which of the following is not an example of operating system software?

Microsoft Word

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.

true

A(n) variable is one that has been declared, but has not been initialized or assigned a value.

uninitialized

A is any hypothetical person that is using a program and providing input for it.

user

A(n) specifies a variable's name and data type.

variable declaration

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

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

The instruction set for a microprocessor is unique and is typically understood only by the microprocessors of the same brand.

True

________ is an extensive encoding scheme that is compatible with ASCII.

Unicode

Which of the following is not an example of application software?

Windows

A(n) operator raises a number to a power. modulus multiplication exponent operand.

exponent

A decision structure will produce unpredictable results if the programmer does not use proper indentation in the pseudocode.

false

Hand tracing is the process of translating a pseudocode program into machine language by hand.

false

In most languages a module definition has three parts: a header, body, and footer.

false

Internal documentation refers to books and manuals that document a program, and are intended for use within a company's programming department.

false

Programmers must be careful not to make syntax errors when writing pseudocode programs.

false

System software typically includes applications that people normally use most often on their computers, such as word processing programs, games, or web browsers.

false

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

false

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

false

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

false

The term software refers to all the physical devices, or components, that a computer is made of.

false

The ________ cycle is used by the CPU to execute instructions in a program.

fetch - decode - execute

USB drives store data in a special type of memory known as ________.

flash memory

A is a diagram that graphically depicts the steps that take place in a program.

flowchart

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

global

A debugging process in which you imagine that you are the computer executing a program is called .

hand tracing

The physical devices that make up a computer are its ________.

hardware

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

hardware

The ________ is the first line of a module definition.

header

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.

reference

Given the following pseudocode, which is the parameter? Module Main() Call curveScore(82) End Module Module curveScore (Integer score) Declare Integer newScore Set newScore=score+5 Display newScore End Module

score

A(n) is a set of statements that execute in the order that they appear.

sequence structure

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

string

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

syntax

Decision structures and selection structures are completely different.

false

The name gross_pay is written in the camelCase convention.

false

Variable names can have spaces in them.

false

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

global

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

digital

Software refers to ________.

programs

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

255

Given the following pseudocode, what is the value of myGrade after the call to the curveScore module? Module Main() Call curveScore(82) End Module Module curveScore (Integer score) Declare Integer newScore Set newScore=score+5 Display newScore End Module

82

Given the following pseudocode, what is the value of score after the call to the curveScore module? Module Main() Call curveScore(82) End Module Module curveScore (Integer score) Declare Integer newScore Set newScore=score+5 Display newScore End Module

82

What does a professional programmer usually do first to gain an understanding of a problem?

A professional programmer will get direct feedback from users to determine what problem is occurring in the program. Then they will determine how to fix it if it is a programming error.

What value is stored in uninitialized variables?

An uninitialized variable is one that has no set value therefore, the value it is stored as is unknown.

Computer programs typically perform what three steps?

Computer programs typically preform three steps. First, input in obtained. Next,that input is processed, and then the output is generated.

To create a module, you write its ________.

Definition

Which of the following companies does not manufacture microprocessors?

Dell

What is pseudocode?

Pseudocode is a fake code, it is informal and helps programmers form an algorithm. There is no need to be worried about syntax error in psuedocode as it is not actual code, just a layout.

Main memory is also called ________.

RAM

What does the term user-friendly mean?

The term user-friendly means the program is easy to use and understand, especially for beginners or people who are not as computer literate as others.

Given the following pseudocode, what, if anything, is an error? Module Main() Declare Integer myGrade=93 Call curveScore(mygrade) End Module Module curveScore (Integer score) Declare Integer newScore Set newScore=score+5 Display newScore Set score=0 End Module

The variable myGrade is not available inside the curveScore module.

What two things must you normally specify in a variable declaration?

To properly declare a variable a programmer must identify or choose a variable name, and then specify the type of variable like string or int.

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

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

a hierarchy chart

A(n) is a set of well-defined logical steps that must be taken to perform a task.

algorithm

Programs that make a computer useful for everyday tasks are known as ________.

application software

A(n) sets a variable to a specified value.

assignment statement

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

bit

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

body

To execute a module, you must ________.

call it

Short notes placed in different parts of a program, explaining how those parts of the program work, are called .

comments

A(n) ________ is a program that translates a high-level language into a machine language program.

compiler

A bit that is turned off is represented by the value -1.

false

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

false

A syntax error does not prevent a program from being compiled and executed.

false

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

false

RAM is volatile memory which means it cannot be erased.

false

Assigning a value to a variable in a declaration statement is called .

initialization

A error does not prevent the program from running, abut causes it to produce incorrect results.

logic

The following is an example of an instruction written in the ________ computer language. 1011000 010100110

machine language

A(n) operator performs division, but instead of returning the quotient it returns the remainder.

modulus

A(n) is a variable whose content has a value that is read only and cannot be changed during the program's execution.

named constant

A computer system consists of all of the following except ________.

operating system

In the expression 12 + 7, the values on the right and left of the + + symbol are called . operands operators arguments math expressions

opperands

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

parameter

Modules may also be called ________.

procedures subroutines subprograms methods

Computers can do many different jobs because they are ________.

programmable

Application software refers to ________.

programs that make the computer useful to a user

A(n) is a message that tells (or asks) the user to enter a specific value.

prompt

An informal language that has no syntax rules, and is not meant to be compiled or executed is called .

pseudocode

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

rectangle

A is a single function that the program must perform in order to satisfy the customer.

software requirement

The statements that a programmer writes in a high-level language are called ________.

source code

A program is a sequence of instructions stored in ________.

the computer's memory

What is syntax?

the rules that must be followed when writing a program

A hierarchy chart does not reveal details of the steps taken inside 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

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

true

In languages that require variable declarations, a variable's declaration must appear before any other statements that use the variable.

true

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

true

In most languages, the first character of a variable name cannot be a number.

true

Uninitialized variables are common causes of errors.

true

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

value

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

value

A is a storage location in memory that is represented by a name.

variable


Set pelajaran terkait

Chapter 6: Networks, Groups, and Organizations

View Set