Save
...
✧ ICT 8
Q2
ICT Q2 EXAM
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Cris Nalual
Visit profile
Cards (116)
What are variables used for in C++?
To
store
data
for later
use
View source
What are the main data types in C++?
String
(sentences)
Char
(one letter)
Bool
(true or false)
Int
(positive & negative numbers)
Float
(less precise decimal)
Double
(more precise decimal)
View source
What does the char data type represent in C++?
It represents a single
letter
View source
What does the bool data type indicate in C++?
It indicates
true
or
false
values
View source
What is an example of an int variable in C++?
numberOne
= 100
View source
How does the float data type differ from the double data type in C++?
Float
is
less
precise
than
double
View source
How would you print "B1 is a programmer" in C++?
Cout
<< "B1 is a programmer" <<
endl
;
View source
What is the output of the following C++ code?
Cout << nameOne << " is a" << occupation << endl;
Outputs: "
B1
is a programmer"
View source
What does the endl command do in C++?
It
ends
the
current line
and
moves
to
the
next line
View source
What is the purpose of the variable occupation in the provided C++ code?
To store the string "
programmers
"
View source
How would you declare two string variables in C++?
String
nameOne = "
B1
";
String nameTwo = "
B2
";
View source
What is the output of the following C++ code?
Cout << nameOne << " and" << nameTwo << " are partners" << endl;
It
outputs
: "
B1
and
B2
are
partners
"
View source
Who prepared the pseudocode document?
JOHN MICHAEL E. LANDAS
View source
What is pseudocode?
A method that allows a programmer to represent the
algorithm
in a
programming
-related way
View source
Why is pseudocode also called false codes?
Because it tends to look like a
programming
language but can still be understood by non-programmers
View source
What are the do's and don'ts of writing pseudocode?
Do's:
Proper
naming convention
Simple and concise
Don'ts:
Don't make it
abstract
Don't make it
generalized
View source
What is the pseudocode for a program that displays the sum of two numbers?
Let numOne = 0, numTwo = 0 and sum = 0;
Input
numOne and numTwo; sum = numOne + numTwo;
Output
sum
View source
What is the pseudocode for a program that displays the average of two numbers?
Let
numOne
= 0,
numTwo
= 0,
sum
= 0 and ave = 0;
Input
numOne and numTwo; sum = numOne + numTwo; ave = sum/2;
Output
ave
View source
What is an alternative pseudocode for calculating the average of two numbers?
Let
numOne
= 0, numTwo = 0 and ave = 0; Input numOne and numTwo; ave = (numOne + numTwo)/2; Output ave
View source
What is the programming problem for displaying "Even" or "Odd"?
Create a program that will display "Even" or "Odd" depending on the number inputted by the user
View source
Who prepared the flow chart?
John Michael E. Landas
View source
What is the purpose of pseudocode in programming?
To represent
algorithms
in a
programming-related
way
To be understandable by
individuals
with little programming knowledge
To serve as a bridge between human language and
programming languages
View source
What is a flow chart?
A method that allows a
programmer
to represent an
algorithm
in a diagram or illustration
View source
What is the best website for creating flow charts?
draw.io
View source
What does a flow chart represent in programming?
It represents the sequence of a programming
algorithm
using standard
graphic symbols
View source
What is the pseudocode for a program that displays the sum of two numbers?
Let numOne = 0, numTwo = 0, and sum = 0
Input
numOne and numTwo
sum = numOne + numTwo
Output
sum
View source
What is the pseudocode for a program that determines if a number is even or odd?
Let num = 0
Input num
If num is an
even
number, Output "Even"
If num is an
odd
number, Output "Odd"
View source
Who prepared the content on common types of program algorithms?
John Michael E. Landas
View source
What does the learner demonstrate in the content standards?
Understanding of
algorithms
and
programming
View source
What is the performance standard for learners regarding algorithms and programming?
Independently demonstrate knowledge and skills in
developing
a computer program
View source
What are the objectives of the study material?
Discuss
Sequential
and
Conditional
selection
Write codes using
variables
View source
What questions were posed regarding the relevance of program algorithms?
Why study program algorithm? Can we
apply
it in our daily living?
View source
What are the common types of program algorithms mentioned?
Sequential
Conditional
Looping/Repetition
Modulo
View source
What is a sequential algorithm?
An algorithm that runs from
top-down
without
interruption
until it finishes
View source
What is a problem example for a sequential algorithm?
Create a pseudocode and flowchart for computing an
employee's salary
View source
What is the pseudocode for computing an employee's salary?
Let
rate
= 0;
hours
= 0; salary = 0;
INPUT
rate, hours
Salary = rate * hours
OUTPUT
salary
View source
What is the formula to compute salary in the pseudocode?
Salary =
rate
*
hours
View source
What is a problem example for a conditional algorithm?
Create a
pseudocode
and
flowchart
for computing an
employee's salary
with conditions
View source
What does a conditional algorithm do?
Affects the
output
based on a
certain
condition
View source
What is the pseudocode for the conditional salary computation?
Let salary = 0; rate = 0; hours = 0;
INPUT
rate, hours
Salary = rate * hours
IF salary > 10000 THEN
OUTPUT "High Pay"
ELSE
OUTPUT "Low Pay"
ENDIF
View source
See all 116 cards