and 201 Final
Verified Exam| Questions
Answers|Latest
Update
Pass, 2025-2026|Assured
Exams
Certified Passof Computer A+
Buffered Input - ANSWERS-Provides a way to create interactive computer
programs with input form the user through the keyboard and or mouse, which can
be processed and output by the program.
InputStreamReader - ANSWERS-converts the integer values of the System.in to its
character representation
BufferedReader - ANSWERS-constructs a string from the character values provided
by InputStreamReader
Wrapper classes - ANSWERS-Wrapper classes convert form String (a reference
data type) to primitive data types and vice-versa
StringTokenizer - ANSWERS-The String Tokenizer class is used to break a large
chunk of infomration into smaller, useful toekns. The process of breaking a string
down into tokens is called parsing
Scanner class - ANSWERS-The Scanner provides a broad range of options for data
entry and parsing. It essentially consolidates the functionality of buffered input,
wrapper classes, and the StringTokenizer class
2 Steps of Primitive Variable declaration - ANSWERS-1. Allocates memory for the
variable - Declaration
2. Association of variable name with meory location (initialization)
3 steps of Reference variable declaration - ANSWERS-1. A list of all variable objects
and the associated data types is provided to the compiler
2. Allocation of sufficient memory for hte declared type
,3. once the object is instantiated, the first byte of the address is associated with
the variable name
Control structures - ANSWERS-A segment of a program that takes control of the
program. Control structures have one point of entry and one point of exit in the
program.
Logical or boolean operators - ANSWERS-Logical operators evaluate logical
conditions. Often used in control structures, they return one of two values - false
or true
Selection controlled structure - ANSWERS-Selection control structures use
conditional tests to change the path of a program. Rather htan follow the program
from one statemtn to the next, statements can be skipped and new paths selected
One way selection - ANSWERS-The conditional path is selected if the condition is
true. If false, the corresponding statements will be skipepd and the liens of code
following the block will be executed instead.
Two way selection - ANSWERS-Regardless of conditions, one of two paths (blocks
of code) are taken. Both paths then converge on the same line of code.
Multi way selection - ANSWERS-Mulitple paths exist that can be taken depending
on the conditional tests
Decision tree - ANSWERS-Decision tree structure are nested multi way selection
structures
Left decision tree - ANSWERS-Decisions are checked on true conditions and the if
statemnt is nested in the following if statement
Right decision tree - ANSWERS-Also known as the standard tree, the conditions
are checked until the first TRUE condition is encountered
, Switches - ANSWERS-Are used when you have an integer comparison. THe switch
control takes the place of the if else statements.
Conditions for switch - ANSWERS-1. A comparison is being performed
2. One expression is bieng compared in each fo the conditions
3. The type of value to which the expression is being compared is integer
compatible
6 types of loops - ANSWERS-1. Counter controleld structure (for loop)
2. Event controlled strucutre (while)
3 Sentinel conotrolled strucutre (while)
4. Flag controlled structure (while)
5. Pre-test loop (z trip)
6. Post test loop (1 trip) - (do while)
Counter controlled loop - ANSWERS-(for loop). The loop is fixed by the counter.
tHe process is repeated regardless of other conditions (exceptions exist). The lopp
is exectuted a known number of times.
4 steps of counter controlled loop - ANSWERS-1. Initialization of Loop controlled
variable (LCV)
2. Loop condition - tests value of LCV
3. Loop body
4. Update the LCV
Symmetrical bound counter - ANSWERS-<= in the loop condition
Means the count = (b-a) + 1