Flowcharts & Pseudocode
Syntax and Structure
Data Types
Variables and Constants
Arithmetic Operators
5

Which shape is used to represent a process in a flowchart?

Rectangle

5

What is the correct syntax for including a header file in C?

#include <stdio.h>

5

What data type is used to store whole numbers in C?

int

5

What keyword is used to define a constant in C?

const

5

What does the '%' operator return?

The remainder

10

In pseudocode, what is the purpose of 'IF'?

To make decisions

10

In C, what is the role of curly braces '{ }' in a program?

To define the start and end of a block of code

10

What type of data does 'double' store?

Decimal numbers

10

Can a variable start with a number?

NO

10

If 'a' is 9 and 'b' is 2, what will be the result of 'a - b + 3'?

10

15

How many branches follow a decision in a flowchart?

2

15

What does the statement 'return 0;' signify in the main function of a C program?

The program has executed successfully

15

Which of the following data types can hold the largest value?

double

15

What is the scope of a variable?

Where the variable can be accessed

15

What does the '%s' format specifier in C print?

String

20

If a flowchart asks 'Is number < 0?' and the input is 10, what happens?

End process

20

Evaluate the following code structure: '#include <stdio.h> int main() { printf("Hello World!") return 0; }'. What will be the output of this program?

Error

20

If you want to store a value with decimals, which data type would you use?

Float (4bytes) & Double (8bytes)

20

Analyze the following code snippet: int x = 5; x = x + 9; x = x - 4; . What will be the final value of 'x'?

10

20

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

25

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

25

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

25

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

25

Given the declaration 'const int MAX = 80;' and the attempt to change 'MAX' to 50 later in the code, what will happen?

Error

25

What will be the output: 'printf("%d", 10 - 7 + 3 * (10 / (5 - 2)) )'?

12

M
e
n
u