Angela Knott
Quiz by , created more than 1 year ago

Quiz on CSI Mid Term Practice, created by Angela Knott on 10/10/2013.

74
0
0
No tags specified
Angela Knott
Created by Angela Knott over 10 years ago
Close

CSI Mid Term Practice

Question 1 of 39

1

The part of the computer that runs programs is called ____

Select one of the following:

  • RAM

  • Secondary Storage

  • Main memory

  • CPU

Explanation

Question 2 of 39

1

The computer stores a program while the program is running, as well as the data that the program is working with in, _____

Select one of the following:

  • secondary storage

  • CPU

  • main memory

  • the microprocessor

Explanation

Question 3 of 39

1

A type of memory that can hold data for long periods of time- even when there is no power to the computer- is called _____

Select one of the following:

  • RAM

  • main memory

  • secondary storage

  • CPU storage

Explanation

Question 4 of 39

1

A computer component that collects data from people or other devices and sends it to the computer is called _____

Select one of the following:

  • an output device

  • an input device

  • a secondary storage device

  • main memory

Explanation

Question 5 of 39

1

Negative numbers are encoded using the ____ technique.

Select one of the following:

  • two's complement

  • floating point

  • ASCII

  • Unicode

Explanation

Question 6 of 39

1

Real numbers are encoded using the ____ technique

Select one of the following:

  • two's complement

  • floating point

  • ASCII

  • Unicode

Explanation

Question 7 of 39

1

In the ___ part of the fetch-decode-execute cycle, the CPU determines which operation it should perform.

Select one of the following:

  • fetch

  • decode

  • execute

  • immediately after the instruction is executed

Explanation

Question 8 of 39

1

Computers can only execute programs that are written in ___

Select one of the following:

  • Java

  • assembly language

  • machine language

  • C++

Explanation

Question 9 of 39

1

The ___ translates an assembly language program into a machine language program

Select one of the following:

  • assembler

  • compiler

  • translator

  • interpreter

Explanation

Question 10 of 39

1

The words that make up a high level programming language are called ____

Select one of the following:

  • binary instructions

  • mnemonics

  • commands

  • keys words

Explanation

Question 11 of 39

1

A(n) ___ program translates a high level language program into a separate machine language program

Select one of the following:

  • assembler

  • compiler

  • translator

  • utility

Explanation

Question 12 of 39

1

An interpreter is a program that both translates and executes the instructions in a high level language program.

Select one of the following:

  • True

  • False

Explanation

Question 13 of 39

1

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

Select one of the following:

  • True

  • False

Explanation

Question 14 of 39

1

A ___ structure can execute a set of statements only under certain circumstances.

Select one of the following:

  • sequence

  • circumstantial

  • decision

  • Boolean

Explanation

Question 15 of 39

1

A ____ structure provides one alternative path of execution.

Select one of the following:

  • sequence

  • single alternative decision

  • one path alternative

  • single execution decision

Explanation

Question 16 of 39

1

In pseudo code, the if-then-else statement is an example of ____

Select one of the following:

  • sequence structure

  • decision structure

  • pathway structure

  • class structure

Explanation

Question 17 of 39

1

A(n) ____ expression has a value of either true or flase

Select one of the following:

  • binary

  • decision

  • unconditional

  • Boolean

Explanation

Question 18 of 39

1

The symbols >,

Select one of the following:

  • relational

  • logical

  • conditional

  • ternary

Explanation

Question 19 of 39

1

A _____ structure allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute

Select one of the following:

  • variable test decision

  • single alternative decision

  • dual alternative decision

  • multiple alternative decsion

Explanation

Question 20 of 39

1

A(n) ___ section of a Select Case statement is branched to if none of the case values match the expression listed after the Select statement

Select one of the following:

  • Else

  • Default

  • Case

  • Otherwise

Explanation

Question 21 of 39

1

AND, OR, and NOT are ____ operators.

Select one of the following:

  • relational

  • logical

  • conditional

  • ternary

Explanation

Question 22 of 39

1

You can write any program using only sequence structures

Select one of the following:

  • True

  • False

Explanation

Question 23 of 39

1

A program can be made of only one type of control structure. You cannot combine structures.

Select one of the following:

  • True

  • False

Explanation

Question 24 of 39

1

A decision structure can be nested inside another decision structure.

Select one of the following:

  • True

  • False

Explanation

Question 25 of 39

1

A benefit of using modules that helps to reduce the duplication of code within a program is ______.

Select one of the following:

  • code reuse

  • divide and conquer

  • debugging

  • facilitation of teamwork

Explanation

Question 26 of 39

1

The first line of a module definition is known as the _____

Select one of the following:

  • body

  • introduction

  • initialization

  • header

Explanation

Question 27 of 39

1

A design technique that programmers use to break down an algorithm into modules is known as _____

Select one of the following:

  • top-down design

  • code simplification

  • code refactoring

  • hierarchical sub tasking

Explanation

Question 28 of 39

1

A(n) ____ is a piece of data that is sent into a module

Select one of the following:

  • argument

  • parameter

  • header

  • packet

Explanation

Question 29 of 39

1

A(n) ___ is a special piece of data when a module is called

Select one of the following:

  • argument

  • parameter

  • header

  • packet

Explanation

Question 30 of 39

1

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

Select one of the following:

  • passing an argument by reference

  • passing an argument by name

  • passing an argument by value

  • passing an argument by data type

Explanation

Question 31 of 39

1

When ____, the module can modify the argument in the calling part of the program.

Select one of the following:

  • passing an argument by reference

  • passing an argument by name

  • passing an argument by value

  • passing an argument by data type

Explanation

Question 32 of 39

1

Module names should be as short as possible.

Select one of the following:

  • True

  • False

Explanation

Question 33 of 39

1

Calling a module and defining a module mean the same thing.

Select one of the following:

  • True

  • False

Explanation

Question 34 of 39

1

A statement in one module can access a local variable in another module.

Select one of the following:

  • True

  • False

Explanation

Question 35 of 39

1

In most programming languages, you cannot have two variables with the same name in the same scope.

Select one of the following:

  • True

  • False

Explanation

Question 36 of 39

1

Programming languages typically require the arguments be of the same data type as the parameters they are passed to.

Select one of the following:

  • True

  • False

Explanation

Question 37 of 39

1

Most languages do not allow you to write modules that accept multiple arguments.

Select one of the following:

  • True

  • False

Explanation

Question 38 of 39

1

When an argument is passed by reference, the module can modify the argument in the calling part of the program.

Select one of the following:

  • True

  • False

Explanation

Question 39 of 39

1

Passing an argument by value is a means of establishing two-way communication between modules.

Select one of the following:

  • True

  • False

Explanation