stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Computer Programming I Final Exam Review Flashcards | StudBud
Explore
/
Computer Programming I Final Exam Review
Computer Programming I Final Exam Review
75 terms
·
StudBud Administration
·
11 plays
This is a final exam review quiz for Ms. Walker's Computer Programming I class.
Flashcards
75 cards
F
Practice quiz
P
Host live
L
Questions
75
Answers
1
What is the primary numbers system used in computers?
Base
Binary
Hexadecimal
Decimal
2
What is the binary representation of the decimal 42?
110011
1000011
101011
101010
3
What is the decimal representation of the binary number 1100?
11
9
12
10
4
Which would Best represent a variable that will hold a true or false value?
Dim strIsValid as string
Dim dblIsValid as double
DimblnIsValid As Boolean
Dim IsVaid as integer
5
What would BEST replace the “?” on Line 4 in the figure?
Print y
Get z
Print x
Get x+z
6
Which would be appropriate as a variable?
#HoursWorked
Last.Name
$PayRate
strFirstName
7
When comparing 3rd and 4th generation computers, which statement summarizes the comparison?
4th gen computers overhauled the use of vacuum tubes.
4th gen functions same as 3rd gen except the larger boards.
ICs in 3rd gen computers led to microprocessors.
3rd gen silicon wafers led to waffle housing of computers.
8
The best way to compare a binary number to a hexadecimal number is to convert:
the hex number to binary and then to a decimal value
binary to decimal and then compare that to the hex number
the hex number to decimal and then compare to the binary num
binary to hex and compare that to the hex number
9
Which data type is appropriate to store the value 75.9?
String
Boolean
Integer
Double
10
If you assign a #, such as 3.7, to an integer variable, what will be stored in the location
0
4
3
3.7
11
In flowchart symbols, which symbol shows the input/output?
Rectangles
Parallelogram
Ovals
Diamonds
12
Which control is BEST to contain choices where the user needs to pick their age from 5 choices
Radio Button
Label
Check Box
Group Box
13
Using a prg to record calls and personal info is what type of ethical consideration?
Privacy
Netiquette
Phishing
Online Profiling
14
Greg wants to change the size of the text in a label. Which label property should he change?
Autosize
Font
Test
(name)
15
Which project type is a desktop app run by the end user via forms appearing on the desktop?
Windows Application
Forms Application
Common Application
User Application
16
What are advantages of the Visual Basic language?
Simple, general purpose, object-oriented
Runs only on Apple Computers
Derived directly from COBOL and BASIC
Hexadecimal code is understood by the computer
17
What language does the code in this example represent?
Visual Basic
C#
Machine language
Assembly language
18
Which describes a prg designed to copy itself into other programs w/o the users knowledge?
A bug
A reproduction
A virus
An infection
19
Which statement would change the color of the form to blue?
BackColor.Text = Color.Blue
BackColor = Color.Blue
BackColor(Color.Blue)
BackColor = Blue
20
Classify a programming language that allows programs to run on any operating system.
Very Low Level
Low Level
Medium Level
High Level
21
Which statement BEST describes why the binary system is used?
Most sig. digit to a computer is 0 for electricity flow
Computers do not have a brain
Computers can only process electronic pulses
4 digits can be used to show info by using the power of 2
22
What is the hexadecimal number 1A in binary form?
11010
11100
10111
11110
23
Which requires websites that collect info from children < 13 to obtain parental consent?
Electronic Comms Privacy Act
Children's Online Privacy Protection Act
Right to Financial Privacy Act
Consumer Credit Reporting Reform Act
24
In flowchart symbols, which symbol represents the start and end process?
Diamonds
Parallelogram
Ovals
Rectangles
25
In flowchart symbols, which symbol is used to show decisions?
Ovals
Diamonds
Parallelogram
Rectangles
26
Why is documentation of programs important?
Programs may not make sense without proper documentation
It's required for successful compiling
It turns the code blue
the compiler reads it and adds the documentation to the code
27
What is a list of instructions that contain data for a computer to follow called?
Computer program
Flowchart
Algorithm
Pseudocode
28
Which property value must be utilized to show a radio button as selected?
radProgram.Checked=FALSE
radProgram.selected+TRUE
radProgram.checked=TRUE
radProgram.selected=FALSE
29
According to Hungarian notation, which is a correct variable name?
decHourlyRate
hourlyRate
$Rate
$rateDecimal
30
The Stepped Reckoner was never mass produced because:
They frequently jammed causing reliability of data issues
No investor saw a need for these types of devices
The raw materials in mechanical devices were hard to find
They broke when used causing cost production issues
31
What is a set of steps that create an ordered approach to a problem solution called?
Pseudocode
Algorithm
Modularization
Flowcharting
32
Which type of error produces undesired or unexpected results?
Dynamic error
Run-time error
Logic error
Syntax error
33
Which property value identifies a control in code?
Text
Autosize
(Name)
Font
34
What is an advantage of using modularization in computer programming?
More programmers are required to solve the problem
More time can be spent programming the solution
Anyone who codes can work on the solution
Each sub-problem can be solved in a few steps
35
Which requires fed agencies to develop, document and input a prg to provide info security?
Privacy Act
Federal Information Security Management Act
Identity Theft Penalty Enhancement Act
Electronic Comms Privacy Act
36
What is the third activity in the programming process?
Test the Program
Design the Solution
Identify the Problem
Write the Program
37
Which law requires govt auths have a subpoena to access an individual’s financial records?
Right to Financial Privacy Acts
Fair Credit Reporting Act
Fair Credit Reporting Act
Electronic Freedom of Information Act
38
The purpose of the Use Case is to:
describe the operation of a block of code
Provide documentation
define the interaction between the user and the program
define the requirements that the software is intended to do
39
What is the decimal representation of the binary number 10001?
18
15
17
16
40
Which area of the IDE is used to change the text displayed in an object on a form?
The toolbox
The properties window
The start page
The solution Explorer window
41
Why is a comment used in Visual Basic?
To check logic errors
Explain logic to users
Way to document your program
To serve as a user guide
42
What is the second step in the programming process?
Test the Solution
Document the Solution
Design the Solution
Validate the Design
43
How does VB differ from BASIC?
BASIC is high level, VB is low level
BASIC is newer than VB
VB is easy to learn and BASIC is not
VB is object-oriented and BASIC is not
44
Susan declares a variable within an If statement. What is the scope of this variable?
Local
Global
Proceduel
Non-Local
45
Why were magnetic tapes used to replace punch cards in 2nd Gen?
Increased cost of production
Increased computer memory
Increased manual labor
Increased reliability
46
Which data type is appropriate the store the number five (5)?
String
Char
Boolean
Integer
47
What are the methods to show the steps to solve a problem?
Algorithm, flowcharts, pseudocode
Algorithm, drawings, sequence
Algorithm, program code, structure
Labels, flowcharts, pseudocode
48
Which statement BEST explains the conversion of 1010 to decimal?
1010 is 1024, add for the base and have 10 as the exponent
Left to right, 1st is 2 to the 3rd and so on
Left to right, 1st is 2 to the 4th and so on
1010 is 20 because 10+10 is 20
49
Which act gives law enforcement the ability to monitor individuals email and web activity?
P.A.T.R.I.O.T. Act
Privacy Act
Right to Financial Privacy Act
Consumer Credit Reporting Reform Act
50
Which stage in the prg process involves coding from the pseudocode?
Test the Program
Write the Program
Design the Solution
Identify the Problem
51
A variable named dblTaxRate is of what data type?
Double
Integer
Decimal
String
52
The use of a hexadecimal numbering system in computers allows the computer to:
Store data with little room for error
Represent small amounts of information in a large database
Use less disk space in storing data
Convert small numbers quickly
53
Which is NOT a characteristic of commenting?
Comments can be on their own line or after a line of code.
Comments begin with a '.
Comments begin with a ".
Comments will turn the text green.
54
The interaction between the actor and the system can be best described as:
Use Case
Select Case
User Application
User Case
55
Classify a programming lang made of hexadecimal numbers that will only run on an IBM computer.
Very High Level
High Level
Medium Level
Low Level
56
Which one of the choices below is NOT a Basic Control Structure?
Conditional Control Structure
Simple Sequence Control Structure
Iteration Control Structure
Pseudocode Control Structures
57
The need to perform what tasks led to the development of the first mechanical devices?
Decision structures
Mathematical Computations
Logic
Sequencing
58
Which window displays the app interface and allows objects to be added, deleted, or resized
The code window
The start window
The design window
The application window
59
Which button would be clicked before START in order to run an app using the menu bar?
Project
View
Debug
Build
60
In flowchart symbols, which symbol is used to show processes?
Rectangles
Parallelogram
Diamonds
Ovals
61
To determine the level of the computer language, compare the language used to the:
abstractions the language contains from machine code
computer hardware being used
modifications the language will handle
number if variables in the language
62
Which step should NOT be taken when planning an application?
Design the user interface
Identify the tasks the application needs to perform
Identify the events required to trigger an object's tasks
Code the user interface
63
A variable named decBonus is of what data type?
Boolean
Double
String
Decimal
64
A computer program that stores the names of customers for a business would be written in what?
Pascal
SQL
COBOL
BASIC
65
Which design approach should be considered when several programs all require similar func?
Procedural
Menu
Subclass
Object-Oriented
66
Which BEST describes how WWII impacted computer development?
Need for accuracy of the trajectory of artillery
Use of vacuum tubes in visual displays
Use of wiring in WWI comms
Need for nav systems to steer troops in the right direction
67
Hugh declares a variable in the event procedure for a button. What scope is this variable?
Procedual
Local
Global
Non-Local
68
What this represent? 1. Obtain two numbers from the user 2. Add the two numbers together 3...
Pseudocode
Coding
Algorithm
Flowchart
69
What did Ada Byron mean when she said the Analytical Engine could "never originate anything"?
A machine could not talk
A machine could not make decisions
A machine could not do calculations
A machine could not think
70
What characteristic of electro-mechanical devices positively impacted their success?
Binary numbers
Logic patterns
Electricity use
Magnetic tape use
71
Info posted on SSA website for public view and access is in compliance with?
Privacy Act
Safety and Freedom through Encryption Act
Electronic Freedom of Info Act
Electronic Comm Privacy Act
72
What does non-offensive behavior online exemplify?
Information Age
Privacy
Online Profiling
Netiquette
73
Which act gives individuals the right to see information maintained about them?
Federal Information Security Management Act
Privacy Act
Electronic Communications Privacy Act
Consumer Credit Reporting Reform Act
74
Which is a nettiquette guideline?
Never change your password
Share your password
Dont attempt to access another account w/o permission
Access the account of another user
75
Why is a flowchart used to design a programming solution?
To input all code needed for programming the solution
To show a list of all statements needed to solve the problem
To minimize logic errors by graphically showing steps
To eliminate possible syntax errors in the solution