ACTUAL Questions and CORRECT
Answers
Program design consists of
A) the ability to solve problems.
B) writing the documentation for a program.
C) writing the code for a program.
D) steps a programmer should do before they start coding a program in a specific language. -
CORRECT ANSWER✔✔- D) steps a programmer should do before they start coding a
program in a specific language.
Pseudocode is
A) a machine.
B) a formal programming language.
C) an informal high-level description of the operating principle of a computer program or
algorithm. - CORRECT ANSWER✔✔- C) an informal high-level description of the
operating principle of a computer program or algorithm.
A flowchart is a type of diagram that represents an algorithm, workflow or process.
A) True
A) False - CORRECT ANSWER✔✔- A) True
Software testing involves the execution of a software component or system component to
evaluate one or more properties of interest.
A) True
B) False - CORRECT ANSWER✔✔- A) True
IDE stands for
A) Integrated Development Environment
B) Initial Degree Expectations
,C) Intramural Department Executive - CORRECT ANSWER✔✔- A) Integrated
Development Environment
Debugging is the process of
A) publishing the source code to the client.
B) writing source code.
C) solving errors in the source code.
D) compiling the source code. - CORRECT ANSWER✔✔- C) solving errors in the source
code.
Input is sending messages to the console/user.
A) True
B) False - CORRECT ANSWER✔✔- B) False
Output is process of reading information from user, usually via keyboard or mouse.
True
False - CORRECT ANSWER✔✔- False
The MAIN method tells the program where to begin running code as it is the entry or starting
point for the program.
True
False - CORRECT ANSWER✔✔- True
Programming starts with
looking online for the answers.
developing an algorithm.
writing code until it works. - CORRECT ANSWER✔✔- developing an algorithm.
What is the output of the following code?
BEGIN MAIN
int num1 = 500;
,int num2 = 200;
int num3 = 300;
double average = num1 + num2 + num;
PRINTLINE(average);
END MAIN
Error message
333.33333333333
333.0
800.0 - CORRECT ANSWER✔✔- 800.0
If the expression xyz % 3 == 0 is true and xyz is a positive integer, then the value stored in
the variable xyz is evenly divisible by 3.
True
False - CORRECT ANSWER✔✔- true
A String (or string) object is a primitive data type.
True
False - CORRECT ANSWER✔✔- false
What would be the best datatype to represent product? A variable that stores information
about the number of items currently in stock in a grocery store.
float
double
int
String - CORRECT ANSWER✔✔- int
What is the value of j after this code is executed?
BEGIN MAIN
int i = 6, int j=10;
j+=i;
END MAIN
, 6
16
4
10 - CORRECT ANSWER✔✔- 16
What is the output of the following code?
BEGIN MAIN
int u = 3;
int v = 5;
u += v;
v += u;
u -= v;
v -= u;
PRINT (u + ", " + v);
END MAIN
3, 5
5, 3
-5, 18
-5,-3 - CORRECT ANSWER✔✔- -5, 18
Consider the expression: value >= 30
Which of the following is equivalent to this expression?
value > 30 OR value == 30
value > 30 AND value == 30
NOT(value < 29)
NOT(value > 31) - CORRECT ANSWER✔✔- Value > 30 OR value == 30
Consider two variables x and y. If the values of x =5 and y=10
BEGIN MAIN
IF(x < 0)