CMPSC 200 Midterm Exam Questions With
Correct Answers
computer - CORRECT ANSWER✔✔-a programmable electronic device that can
| | | | | | | | |
store, retrieve, and process data
| | | |
GIGO - CORRECT ANSWER✔✔-garbage in, garbage out
| | | | | |
CPU - CORRECT ANSWER✔✔-central processing unit
| | | | |
2 components of CPU - CORRECT ANSWER✔✔-ALU: Arithmetic and Logic
| | | | | | | | |
Control Unit: fetches next command
| | | |
volatile memory - CORRECT ANSWER✔✔-fast, temporary storage (RAM, DRAM)
| | | | | | | |
non-volatile memory - CORRECT ANSWER✔✔-slower, permanent storage (ROM,
| | | | | | | |
CD)
program - CORRECT ANSWER✔✔-set of instructions to perform specific tasks
| | | | | | | | |
algorithm - CORRECT ANSWER✔✔-set of steps for doing something
| | | | | | | |
,operating system (OS) - CORRECT ANSWER✔✔-allocated computer resources
| | | | | | |
software - CORRECT ANSWER✔✔-consists of the OS and other programs used by
| | | | | | | | | | | |
the computer
|
high-level language - CORRECT ANSWER✔✔-easy to understand, hard for
| | | | | | | | |
computers
low-level language - CORRECT ANSWER✔✔-hard to understand, better for
| | | | | | | | |
computers
machine language - CORRECT ANSWER✔✔-binary digits (1s, 0s) good for
| | | | | | | | | |
computers
compiled languages - CORRECT ANSWER✔✔-instructions are converted to
| | | | | | | |
machine instructions prior to run time then saved as a file which can be run (C++)
| | | | | | | | | | | | | | |
interpreted languages - CORRECT ANSWER✔✔-instructions are saved in the same
| | | | | | | | |
|format as they were written and converted to machine instructions at run time,
| | | | | | | | | | | | |
easier to develop (MATLAB)
| | |
MATLAB - CORRECT ANSWER✔✔-matrix laboratory
| | | |
GUI - CORRECT ANSWER✔✔-graphical user interface
| | | | |
, % - CORRECT ANSWER✔✔-single line comments
| | | | |
%{
%} - CORRECT ANSWER✔✔-block comments
| | | |
clc - CORRECT ANSWER✔✔-clears screen
| | | |
clear - CORRECT ANSWER✔✔-deletes variables
| | | |
.*,./ (not needed for +,-) - CORRECT ANSWER✔✔-element operations for matrices
| | | | | | | | | |
|[] |
; - CORRECT ANSWER✔✔-no result is printed on the screen
| | | | | | | | |
Arrays - CORRECT ANSWER✔✔-matrices (one line or several)
| | | | | | |
commas can separate terms | | | |
semicolons separate rows | |
a:b:c - CORRECT ANSWER✔✔-row of regularly spaced sets of numbers (if no 'b',
| | | | | | | | | | | | |
then spacing is 1) | | |
A(i,j) - CORRECT ANSWER✔✔-ith row and jth column
| | | | | | |
abs(x) - CORRECT ANSWER✔✔-absolute value
| | | |
Correct Answers
computer - CORRECT ANSWER✔✔-a programmable electronic device that can
| | | | | | | | |
store, retrieve, and process data
| | | |
GIGO - CORRECT ANSWER✔✔-garbage in, garbage out
| | | | | |
CPU - CORRECT ANSWER✔✔-central processing unit
| | | | |
2 components of CPU - CORRECT ANSWER✔✔-ALU: Arithmetic and Logic
| | | | | | | | |
Control Unit: fetches next command
| | | |
volatile memory - CORRECT ANSWER✔✔-fast, temporary storage (RAM, DRAM)
| | | | | | | |
non-volatile memory - CORRECT ANSWER✔✔-slower, permanent storage (ROM,
| | | | | | | |
CD)
program - CORRECT ANSWER✔✔-set of instructions to perform specific tasks
| | | | | | | | |
algorithm - CORRECT ANSWER✔✔-set of steps for doing something
| | | | | | | |
,operating system (OS) - CORRECT ANSWER✔✔-allocated computer resources
| | | | | | |
software - CORRECT ANSWER✔✔-consists of the OS and other programs used by
| | | | | | | | | | | |
the computer
|
high-level language - CORRECT ANSWER✔✔-easy to understand, hard for
| | | | | | | | |
computers
low-level language - CORRECT ANSWER✔✔-hard to understand, better for
| | | | | | | | |
computers
machine language - CORRECT ANSWER✔✔-binary digits (1s, 0s) good for
| | | | | | | | | |
computers
compiled languages - CORRECT ANSWER✔✔-instructions are converted to
| | | | | | | |
machine instructions prior to run time then saved as a file which can be run (C++)
| | | | | | | | | | | | | | |
interpreted languages - CORRECT ANSWER✔✔-instructions are saved in the same
| | | | | | | | |
|format as they were written and converted to machine instructions at run time,
| | | | | | | | | | | | |
easier to develop (MATLAB)
| | |
MATLAB - CORRECT ANSWER✔✔-matrix laboratory
| | | |
GUI - CORRECT ANSWER✔✔-graphical user interface
| | | | |
, % - CORRECT ANSWER✔✔-single line comments
| | | | |
%{
%} - CORRECT ANSWER✔✔-block comments
| | | |
clc - CORRECT ANSWER✔✔-clears screen
| | | |
clear - CORRECT ANSWER✔✔-deletes variables
| | | |
.*,./ (not needed for +,-) - CORRECT ANSWER✔✔-element operations for matrices
| | | | | | | | | |
|[] |
; - CORRECT ANSWER✔✔-no result is printed on the screen
| | | | | | | | |
Arrays - CORRECT ANSWER✔✔-matrices (one line or several)
| | | | | | |
commas can separate terms | | | |
semicolons separate rows | |
a:b:c - CORRECT ANSWER✔✔-row of regularly spaced sets of numbers (if no 'b',
| | | | | | | | | | | | |
then spacing is 1) | | |
A(i,j) - CORRECT ANSWER✔✔-ith row and jth column
| | | | | | |
abs(x) - CORRECT ANSWER✔✔-absolute value
| | | |