Correct Answers
T/F: Software testing involves the execution of a software component or system
component to evaluate one or more properties of interest.
True
IDE stands for?
Integrated Development Environment
T/F: Input is sending messages to the console/user.
False
Program design consists of
steps a programmer should do before they start coding a program in a specific
language.
T/F: A flowchart is a type of diagram that represents an algorithm, workflow or
process.
True
,T/F: Output is process of reading information from user, usually via keyboard or
mouse.
False
Debugging is the process of
solving errors in the source code.
T/F: The MAIN method tells the program where to begin running code as it is the
entry or starting point for the program.
True
Pseudocode is?
an informal high-level description of the operating principle of a computer
program or algorithm.
Programming starts with?
developing an algorithm.
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.
A. float
,B. double
C. int
D. String
C. int
What is the output of the following code?
int num1 = 500;
int num2 = 200;
int num3 = 300;
double average = num1 + num2 + num;
PRINTLINE(average);
A. 800.0
B. 333.0
C. 333.3333333333
D. Error
A. 800
T/F: 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
, T/F: A String (or string) object is a primitive data type.
False
What is the value of j after this code is executed?
int i = 6, int j=10;
j+=i;
16
What is the output of the following code?
int u = 3;
int v = 5;
u += v;
v += u;
u -= v;
v -= u;
PRINT (u + ", " + v);
-5, 18
Consider the expression: value >= 30