CSI Mid Term Practice

Description

Quiz on CSI Mid Term Practice, created by Angela Knott on 10/10/2013.
Angela Knott
Quiz by Angela Knott, updated more than 1 year ago
Angela Knott
Created by Angela Knott over 10 years ago
74
0

Resource summary

Question 1

Question
The part of the computer that runs programs is called ____
Answer
  • RAM
  • Secondary Storage
  • Main memory
  • CPU

Question 2

Question
The computer stores a program while the program is running, as well as the data that the program is working with in, _____
Answer
  • secondary storage
  • CPU
  • main memory
  • the microprocessor

Question 3

Question
A type of memory that can hold data for long periods of time- even when there is no power to the computer- is called _____
Answer
  • RAM
  • main memory
  • secondary storage
  • CPU storage

Question 4

Question
A computer component that collects data from people or other devices and sends it to the computer is called _____
Answer
  • an output device
  • an input device
  • a secondary storage device
  • main memory

Question 5

Question
Negative numbers are encoded using the ____ technique.
Answer
  • two's complement
  • floating point
  • ASCII
  • Unicode

Question 6

Question
Real numbers are encoded using the ____ technique
Answer
  • two's complement
  • floating point
  • ASCII
  • Unicode

Question 7

Question
In the ___ part of the fetch-decode-execute cycle, the CPU determines which operation it should perform.
Answer
  • fetch
  • decode
  • execute
  • immediately after the instruction is executed

Question 8

Question
Computers can only execute programs that are written in ___
Answer
  • Java
  • assembly language
  • machine language
  • C++

Question 9

Question
The ___ translates an assembly language program into a machine language program
Answer
  • assembler
  • compiler
  • translator
  • interpreter

Question 10

Question
The words that make up a high level programming language are called ____
Answer
  • binary instructions
  • mnemonics
  • commands
  • keys words

Question 11

Question
A(n) ___ program translates a high level language program into a separate machine language program
Answer
  • assembler
  • compiler
  • translator
  • utility

Question 12

Question
An interpreter is a program that both translates and executes the instructions in a high level language program.
Answer
  • True
  • False

Question 13

Question
A syntax error does not prevent a program from being compiled and executed.
Answer
  • True
  • False

Question 14

Question
A ___ structure can execute a set of statements only under certain circumstances.
Answer
  • sequence
  • circumstantial
  • decision
  • Boolean

Question 15

Question
A ____ structure provides one alternative path of execution.
Answer
  • sequence
  • single alternative decision
  • one path alternative
  • single execution decision

Question 16

Question
In pseudo code, the if-then-else statement is an example of ____
Answer
  • sequence structure
  • decision structure
  • pathway structure
  • class structure

Question 17

Question
A(n) ____ expression has a value of either true or flase
Answer
  • binary
  • decision
  • unconditional
  • Boolean

Question 18

Question
The symbols >,
Answer
  • relational
  • logical
  • conditional
  • ternary

Question 19

Question
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
Answer
  • variable test decision
  • single alternative decision
  • dual alternative decision
  • multiple alternative decsion

Question 20

Question
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
Answer
  • Else
  • Default
  • Case
  • Otherwise

Question 21

Question
AND, OR, and NOT are ____ operators.
Answer
  • relational
  • logical
  • conditional
  • ternary

Question 22

Question
You can write any program using only sequence structures
Answer
  • True
  • False

Question 23

Question
A program can be made of only one type of control structure. You cannot combine structures.
Answer
  • True
  • False

Question 24

Question
A decision structure can be nested inside another decision structure.
Answer
  • True
  • False

Question 25

Question
A benefit of using modules that helps to reduce the duplication of code within a program is ______.
Answer
  • code reuse
  • divide and conquer
  • debugging
  • facilitation of teamwork

Question 26

Question
The first line of a module definition is known as the _____
Answer
  • body
  • introduction
  • initialization
  • header

Question 27

Question
A design technique that programmers use to break down an algorithm into modules is known as _____
Answer
  • top-down design
  • code simplification
  • code refactoring
  • hierarchical sub tasking

Question 28

Question
A(n) ____ is a piece of data that is sent into a module
Answer
  • argument
  • parameter
  • header
  • packet

Question 29

Question
A(n) ___ is a special piece of data when a module is called
Answer
  • argument
  • parameter
  • header
  • packet

Question 30

Question
When ____ , only a copy of the argument's value is passed into the parameter variable.
Answer
  • passing an argument by reference
  • passing an argument by name
  • passing an argument by value
  • passing an argument by data type

Question 31

Question
When ____, the module can modify the argument in the calling part of the program.
Answer
  • passing an argument by reference
  • passing an argument by name
  • passing an argument by value
  • passing an argument by data type

Question 32

Question
Module names should be as short as possible.
Answer
  • True
  • False

Question 33

Question
Calling a module and defining a module mean the same thing.
Answer
  • True
  • False

Question 34

Question
A statement in one module can access a local variable in another module.
Answer
  • True
  • False

Question 35

Question
In most programming languages, you cannot have two variables with the same name in the same scope.
Answer
  • True
  • False

Question 36

Question
Programming languages typically require the arguments be of the same data type as the parameters they are passed to.
Answer
  • True
  • False

Question 37

Question
Most languages do not allow you to write modules that accept multiple arguments.
Answer
  • True
  • False

Question 38

Question
When an argument is passed by reference, the module can modify the argument in the calling part of the program.
Answer
  • True
  • False

Question 39

Question
Passing an argument by value is a means of establishing two-way communication between modules.
Answer
  • True
  • False
Show full summary Hide full summary

Similar

Causes of the Cold War Quiz
Fro Ninja
General Knowledge Quiz
PatrickNoonan
Principles of basic electrical circuits
Vito Martino
FCE Practice Quiz - B2
Christine Sang
Main People in Medicine Through Time
Holly Bamford
GCSE Science - B1 - You and Your Genes - Genes, Chromosomes and DNA
GeorgeHaines
GCSE Chemistry C3 (OCR)
Usman Rauf
PSBD TEST # 3_1
yog thapa
Introduction to the Atom
Sarah Egan
The Circulatory System
Johnny Hammer
MAPA MENTAL DISEÑO GRAFICO
Lizbeth Domínguez