Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CISP 300 Final Exam (Ch. 1-6) - Questions and Answers, Exams of Computer Science

A comprehensive set of questions and answers covering chapters 1-6 of the cisp 300 course. It covers fundamental concepts in computer science, including data storage, cpu architecture, memory types, programming languages, and modules. Valuable for students preparing for the cisp 300 final exam, as it offers a structured review of key topics and provides insights into common exam questions.

Typology: Exams

2024/2025

Available from 12/22/2024

Martin-Ray-1
Martin-Ray-1 🇺🇸

5

(8)

6.1K documents

1 / 24

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CISP 300-Final Exam (Ch. 1-6) Latest
Update Questions with 100% Correct
Answers.
1. the eight smaller storage locations in a byte, binary digit, are like
tiny electrical switches that hold charges either on or off,
represent numbers - Correct: ✔✔bits
2. A bit can hold what two possible values - Correct: ✔✔1 or 0
3. a bit set to 0 is - Correct: ✔✔off
4. a bit set to 1 is - Correct: ✔✔on
5. small devices that plug into the USB port and appear to the
system as a disk drive. Don't have a disk, but store data using flash
memory. - Correct: ✔✔USB drive/memory stick/flash drive
6. What format does a USB drive store data? - Correct: ✔flash
memory
7. part of the computer that runs programs, most important
component because it allows the computer to run software. Used
to be made of electrical and mechanical components (vacuum
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download CISP 300 Final Exam (Ch. 1-6) - Questions and Answers and more Exams Computer Science in PDF only on Docsity!

CISP 300-Final Exam (Ch. 1-6) Latest

Update Questions with 100% Correct

Answers.

  1. the eight smaller storage locations in a byte, binary digit, are like tiny electrical switches that hold charges either on or off, represent numbers - Correct: ✔✔bits
  2. A bit can hold what two possible values - Correct: ✔✔1 or 0
  3. a bit set to 0 is - Correct: ✔✔off
  4. a bit set to 1 is - Correct: ✔✔on
  5. small devices that plug into the USB port and appear to the system as a disk drive. Don't have a disk, but store data using flash memory. - Correct: ✔✔USB drive/memory stick/flash drive
  6. What format does a USB drive store data? - Correct: ✔✔flash memory
  7. part of the computer that runs programs, most important component because it allows the computer to run software. Used to be made of electrical and mechanical components (vacuum

tubes, switches). Not smart; simply designed to do specific things - Correct: ✔✔central processing unit (CPU)

  1. CPUs are now known as - Correct: ✔✔microprocessors
  2. each brand of microprocessors has its own one of these that is unique and is typically only understood by the microprocessor. Microprocessors cannot understand these of other microprocessor brands - Correct: ✔✔instruction set
  3. computer's work area, where the computer stores a program and its data while it is running. The CPU is able to quickly access data stored at a random location. Volatile memory used for temporary storage. - Correct: ✔✔RAM/random access memory
  4. what happens to RAM when the computer is turned off? - Correct: ✔✔contents are erased
  5. type of memory used only for temporary storage while a program is running - Correct: ✔✔volatile memory
  6. cycle occuring when the CPU executes instructions in a program - Correct: ✔✔fetch-decode-execute cycle
  1. How do magnetic disks/hard disk drives store data? - Correct: ✔✔magnetically encodes data on a circular disk
  2. language component. Set of rules that must be strictly followed when writing a program. Dictate how key words, operators, and various punctuation characters must be used in a program. Essential for learning a programming language - Correct: ✔✔syntax
  3. physical devices and components a computer is made of
  4. Computer is a system of devices working together, like a symphony. Each device plays its part (cpu, main memory, secondary storage devices, input devices, output devices) - Correct: ✔✔hardware
  5. computer programs, not physical (operating systems, utility programs, software development tools, apps) - Correct: ✔✔software
  6. diagram that graphically depicts the steps that take place in a program. - Correct: ✔✔flowchart
  7. terminal symbols (start/end shape) - Correct: ✔✔oval
  1. input/output shape - Correct: ✔✔parallelogram
  2. connector shape - Correct: ✔✔circle with letter
  3. module call shape - Correct: ✔✔rectangle with vertical lines
  4. decision symbol shape - Correct: ✔✔diamond
  5. off page connector shape - Correct: ✔✔home plate/pentagon
  6. case structure shape - Correct: ✔✔diamond that branches into multiple parallelograms
  7. used to build mathematical expressions with several operators - Correct: ✔✔order of operations
  8. what is the order of operations? - Correct: ✔✔parentheses operations, exponent, multiplication/division/modulus, addition/subtraction
  9. mathematical expressions are evaluated left to right or right to left? - Correct: ✔✔left to right
  1. How is a named constant assigned a value? - Correct: ✔✔Constant [Data Type] [CONSTANT_NAME] = [value]
  2. the type of data the variable will hold. The types allowed depend on the programming language. - Correct: ✔✔data type
  3. variables that hold whole numbers - Correct: ✔✔integer
  4. variables that hold whole numbers or numbers with a fraction/decimals - Correct: ✔✔real
  5. holds a string of characters - Correct: ✔✔string
  6. data type that allows you to create variables that may hold one of two possible values: True or False - Correct: ✔✔boolean
  7. Fake code. Informal language with no syntax rules and is not meant to be compiled or executed. Used to create models/mock- ups of programs. Programmer doesn't have to focus on syntax errors and can focus on the program's design. - Correct: ✔✔pseudocode
  8. If you use pseudocode, will the program execute? - Correct: ✔✔No, pseudocode is not meant to execute
  1. Ada, BASIC, FORTRAN, COBOL, Pascal, C, C++, C#, Java, Javascript, Python, Ruby, and Visual Basic are all examples of... - Correct: ✔✔high-level languages
  2. Can the value of a named constant be changed? - Correct: ✔✔no
  3. Is pseudocode a high level language? - Correct: ✔✔no
  4. group of statements that exist within a program to perform a specific task. Instead of a large program in a series of statements, it can be written as several small sections executed to perform the overall task - Correct: ✔✔module
  5. Benefits of modules:
  6. ) Simpler ________
  7. 2.) Better ____________ due to individual testing of each module
  8. 3.) Easier _________________ when programmer must periodically update the code,
  9. 4.) ___________ development,
  10. 5.) easier facilitation of _____________- each programmer takes on a different module - Correct: ✔✔1. code
  11. testing
  12. maintenance
  1. argument is passed into a special type of parameter known as a reference variable- allows the module to modify the argument in the calling part of the program. Acts as an alias for the variable passed into it as an argument; references the other variable, two way communication - Correct: ✔✔by reference
  2. pieces of data sent into a module. Modules can use them in calculations, etc., variables in a call statement - Correct: ✔✔arguments
  3. If you want a module to receive arguments when it is called, the module has to be equipped with 1+ of these, special variable that receives an argument when a module is called - Correct: ✔✔parameter variables
  4. What statement is needed to execute a module? - Correct: ✔✔Call
  5. Where do arguments go? - Correct: ✔✔In the parentheses of a Call statement
  6. Where do parameters go? - Correct: ✔✔In the parentheses of a Module header
  1. What goes in a module header? - Correct: ✔✔module name and (parameters, including their data type and whether they're by reference/value)
  2. a number written into a program's code, stored as Real or Integer - Correct: ✔✔numeric literal
  3. a string of characters that appears in the actual code of a program, enclosed in quotation marks - Correct: ✔✔string literal
  4. can literals be passed by reference? - Correct: ✔✔no
  5. what are the components of a module? - Correct: ✔✔module header, body with list of statements, End Module
  6. what are the other names for modules? - Correct: ✔✔procedure, subroutine, subprogram, method, function, etc.
  7. variables that are visible to every module in the program. Scope is the entire program, usually declared at the top of the program - Correct: ✔✔global variables
  8. where can global variables be accessed? - Correct: ✔✔anywhere in the program
  1. operators that create complex Boolean expressions - Correct: ✔✔logical operators
  2. logical operator that connects two Boolean expressions into one compound expression. Both subexpressions must be true for the whole expression to be true - Correct: ✔✔AND
  3. logical operator that connects two Boolean expressions into one compound expression. One or both subexpressions must be true for the whole expression to be true - Correct: ✔✔OR
  4. unary operator that only works with one operand that must be a Boolean expression. Reverses the truth of its operand (false is now true, true is now false) - Correct: ✔✔NOT
  5. Performed on AND and OR operators. If the left expression of an AND operator is false, the expression on the right side will not be checked since it automatically means the other side is false. For OR, if the expression on the left is true, the expression on the right side does not need to be checked - Correct: ✔✔short-circuit evaluation
  1. Why is it beneficial to use short-circuit evaluation? - Correct: ✔✔It is only necessary for one of the expressions to be true/false, so it would waste CPU time to check the remaining expression
  2. a multiple alternative decision structure. Allows you to test the value of a variable or an expression and then use that value to determine which statement/set of statements to execute. Often accomplish the same thing as nested If-Then statements, but with simpler, more straightforward code - Correct: ✔✔case structure
  3. usually a variable or expression in a case structure. Is tested against all of the cases. - Correct: ✔✔testExpression
  4. a special version of a nested decision structure, makes the logic of nested decision structures easy to write - Correct: ✔✔If- Then-Else-If
  5. What are the components of an If-Then-Else If statement? - Correct: ✔✔If [condition] Then
  6. [tab]statement
  7. Else If [condition2]
  8. [tab]statement
  9. Else
  10. [tab]statement
  11. End If
  1. loop that tests a condition before iterating - Correct: ✔✔pretest
  2. loop that performs an iteration before testing a condition; will always perform one iteration no matter the truth of the condition - Correct: ✔✔do-while loop
  3. loop that performs statements in an iteration before testing the condition - Correct: ✔✔posttest
  4. Is do-while pretest or posttest? - Correct: ✔✔posttest
  5. loop that doesn't iterate until a condition is true; iterates as long as a condition is false, then stops when it's true - Correct: ✔✔do-until loop
  6. Is do-until loop pretest or posttest? - Correct: ✔✔posttest
  7. repetition structure that uses true/false conditions to control the number of times it repeats - Correct: ✔✔condition- controlled loop
  8. repetition structure that repeats a specified # of times - Correct: ✔✔count-controlled loop
  1. variable that stores the number of iterations performed after being initalized with a starting value - Correct: ✔✔counter variable
  2. How do you increment a counter variable by a number greater than one or decrement by a negative number? - Correct: ✔✔use a Step
  3. Ex: For counter = 0 to 100 Step 10
  4. count-controlled loop with a counter variable. Loop tests counter variable's starting value by comparing it to the max value, iterates if starting value is less - Correct: ✔✔For-loop
  5. for For loops, why do you not need to include a way to increment in the statements in order to prevent an infinite loop? - Correct: ✔✔counter variable does the incrementing
  6. What occurs when a For loop doesn't have a counter variable or a condition-controlled loop doesn't have a way to exit a loop after a certain number of iterations? - Correct: ✔✔infinite loop
  7. The variable that is used to keep the total of the numbers. It is often said that the loop keeps a running total because it collects
  1. library function that returns the absolute value of the argument - Correct: ✔✔abs
  2. library function that generates random numbers; useful for dice rolls, card shuffling, simulation programs, statistical programs, and computer security. Returns an integer. - Correct: ✔✔random
  3. How do you call a function? - Correct: ✔✔Set, Display, Declare; usually inserted into statements that perform an operation
  4. a special type of module that returns a value back to the part of the program that called it, similar to modules - Correct: ✔✔function
  5. How does a function return a value? - Correct: ✔✔Return statement
  6. What is the usual max number of values a function can return? - Correct: ✔✔one
  7. Three things that contrast modules from functions:
  1. ______________. Modules start with moduleName, function starts with Function
  2. _____________ ____ ________ ____________. Module return multiple, functions return one
  3. __________________ Modules use Call, Functions use other statements - Correct: ✔✔1. headers
    1. number of variables returned
  4. execution
  5. What are the components of a function pseudocode? - Correct: ✔✔Function [Data Type] [FunctionName] (ParameterList)
  6. [tab]statement, etc.
  7. Return [value]
  8. End Function
  9. What does a funcrtion need in its body that a module doesn't need? - Correct: ✔✔Return [value]
  10. Can you assign an integer value to a real variable? - Correct: ✔✔yes
  11. Can you assign a real value to an integer? - Correct: ✔✔no