CIS Exam 1 chapters 1-4 with
Complete Solutions
What are the 5 major hardware components of a computer system? - ANSWER-1)
Central Processing Unit (CPU)
2) Main memory (RAM)
3) Secondary storage devices (USB and CDs)
4) Input Devices (Keyboard, mouse camera)
5) Output devices (Printer, monitor)
Hardware - ANSWER-Tools, machinery, and other durable equipment
The physical components
Software - ANSWER-The programs and other operating information used by a
computer
Visual Basic - ANSWER-Programming language interface designed by Microsoft to
allow users to modify code written in the simple programming language known as Basic.
What is the main memory and its purpose? - ANSWER-"Computer's work area" which
holds instructions and data needed for programs that are currently running.
-quickly access data at any location
-used as temporary storage, but contents are lost when the power is turned off.
Why do computers have both main memory and secondary storage? - ANSWER--the
main memory is useful for holding instructions for the programs the computer is
currently using and -the secondary storage is useful for having a second backup on
your data you want stored. Doesn't lose content even when the computer shuts off
What are the two general categories of software? - ANSWER-1) Operating systems: set
of programs that manage the computer's hardware devices and controls the processes.
-Windows
-Mac OS
-Linux
2) Application software: programs that make the computer useful for the user
- Word processing
-spreadsheet
-database packages
, What is an algorithm? - ANSWER-well-defined, ordered set of steps for solving a
problem
-necessary for computing certain tasks
Why were computer programming languages invented? - ANSWER-It allows us to use
words instead of numbers to ease the task of programming.
compiler- converts programming language statements to machine language
instructions.
What is an object and what is a control? - ANSWER-Object: Item that contains data
("properties" or "attributes") and has the ability to perform actions. Object = code
Control: actually appears in a GUI.
EX) TextBox, Label, Button Control = appearance
What does event-driven mean? - ANSWER-Programs that operate in a GUI, responds
to an event or action taken place in a program
EX) when a user clicks a button, a click control occurs.
Goes behind the form code
What is a property? - ANSWER-Piece of data that determines some characteristic of the
control.
EX) Text Property, Label Property, Button Property
Why should a programmer change the name of a control from its default name? -
ANSWER-So it describes the purpose of the control and the user can easily determine
which control it is
If a control has the programmer-defined name txtRadius, what type of control is it? -
ANSWER-TextBox Control
What is the default name given to the first textbox control created in an application? -
ANSWER-TextBox1
Is First+Lastname an acceptable control name? Why or why not? - ANSWER-No
because no punctuations like the + symbol are allowed
What 4 items should be identified when defining what a program is to do? - ANSWER-
Purpose, Input, Process and Output
Examples from the wage calculator
Purpose: To calc user's gross pay
Input: Number of hrs worked, hourly pay rate
Process: Multiply number of hours worked by hourly pay rate. The result is the user's
gross pay
Output: Display a message indicating the user's gross pay
Complete Solutions
What are the 5 major hardware components of a computer system? - ANSWER-1)
Central Processing Unit (CPU)
2) Main memory (RAM)
3) Secondary storage devices (USB and CDs)
4) Input Devices (Keyboard, mouse camera)
5) Output devices (Printer, monitor)
Hardware - ANSWER-Tools, machinery, and other durable equipment
The physical components
Software - ANSWER-The programs and other operating information used by a
computer
Visual Basic - ANSWER-Programming language interface designed by Microsoft to
allow users to modify code written in the simple programming language known as Basic.
What is the main memory and its purpose? - ANSWER-"Computer's work area" which
holds instructions and data needed for programs that are currently running.
-quickly access data at any location
-used as temporary storage, but contents are lost when the power is turned off.
Why do computers have both main memory and secondary storage? - ANSWER--the
main memory is useful for holding instructions for the programs the computer is
currently using and -the secondary storage is useful for having a second backup on
your data you want stored. Doesn't lose content even when the computer shuts off
What are the two general categories of software? - ANSWER-1) Operating systems: set
of programs that manage the computer's hardware devices and controls the processes.
-Windows
-Mac OS
-Linux
2) Application software: programs that make the computer useful for the user
- Word processing
-spreadsheet
-database packages
, What is an algorithm? - ANSWER-well-defined, ordered set of steps for solving a
problem
-necessary for computing certain tasks
Why were computer programming languages invented? - ANSWER-It allows us to use
words instead of numbers to ease the task of programming.
compiler- converts programming language statements to machine language
instructions.
What is an object and what is a control? - ANSWER-Object: Item that contains data
("properties" or "attributes") and has the ability to perform actions. Object = code
Control: actually appears in a GUI.
EX) TextBox, Label, Button Control = appearance
What does event-driven mean? - ANSWER-Programs that operate in a GUI, responds
to an event or action taken place in a program
EX) when a user clicks a button, a click control occurs.
Goes behind the form code
What is a property? - ANSWER-Piece of data that determines some characteristic of the
control.
EX) Text Property, Label Property, Button Property
Why should a programmer change the name of a control from its default name? -
ANSWER-So it describes the purpose of the control and the user can easily determine
which control it is
If a control has the programmer-defined name txtRadius, what type of control is it? -
ANSWER-TextBox Control
What is the default name given to the first textbox control created in an application? -
ANSWER-TextBox1
Is First+Lastname an acceptable control name? Why or why not? - ANSWER-No
because no punctuations like the + symbol are allowed
What 4 items should be identified when defining what a program is to do? - ANSWER-
Purpose, Input, Process and Output
Examples from the wage calculator
Purpose: To calc user's gross pay
Input: Number of hrs worked, hourly pay rate
Process: Multiply number of hours worked by hourly pay rate. The result is the user's
gross pay
Output: Display a message indicating the user's gross pay