Which shape is used to represent a process in a flowchart?
Rectangle
What is the correct syntax for including a header file in C?
#include <stdio.h>
What data type is used to store whole numbers in C?
int
What keyword is used to define a constant in C?
const
What does the '%' operator return?
The remainder
In pseudocode, what is the purpose of 'IF'?
To make decisions
In C, what is the role of curly braces '{ }' in a program?
To define the start and end of a block of code
What type of data does 'double' store?
Decimal numbers
Can a variable start with a number?
NO
If 'a' is 9 and 'b' is 2, what will be the result of 'a - b + 3'?
10
How many branches follow a decision in a flowchart?
2
What does the statement 'return 0;' signify in the main function of a C program?
The program has executed successfully
Which of the following data types can hold the largest value?
double
What is the scope of a variable?
Where the variable can be accessed
What does the '%s' format specifier in C print?
String
If a flowchart asks 'Is number < 0?' and the input is 10, what happens?
End process
Evaluate the following code structure: '#include <stdio.h> int main() { printf("Hello World!") return 0; }'. What will be the output of this program?
Error
If you want to store a value with decimals, which data type would you use?
Float (4bytes) & Double (8bytes)
Analyze the following code snippet: int x = 5; x = x + 9; x = x - 4; . What will be the final value of 'x'?
10
If 'x' is 12 and 'y' is 4, which of the following expressions results in the highest value: 'x + y', 'x * y', or 'x - y'?
x * y
In a flowchart, if there is a step labeled 'Calculate total cost' but no input for cost is provided, what can you conclude?
The flowchart is incomplete
Analyze the following code structure: '#include <stdio.h> int main() { return 0; }'. What does the '#include <stdio.h>' statement do?
Includes standard input/output functions
Given a variable 'x' of type float initialized with the value 7.2503, what will be the output when using the format specifier '%.2f' in printf?
7.25
Given the declaration 'const int MAX = 80;' and the attempt to change 'MAX' to 50 later in the code, what will happen?
Error
What will be the output: 'printf("%d", 10 - 7 + 3 * (10 / (5 - 2)) )'?
12