WorksheetsQuiz on Programming Concepts
Total questions: 20
Worksheet time: 10mins
What are the main components of problem-solving?
Input, Process, Feedback
Input, Process, Output
Analysis, Programming, Debugging
Sequence, Selection, Repetition
What is the correct order of steps for making tea?
Add sugar → Pour water → Add tea leaves → Stir
Pour water → Add sugar → Add tea leaves → Taste
Add tea leaves → Pour water → Add sugar → Stir
Stir → Add tea leaves → Pour water → Add sugar
What is the purpose of an algorithm?
To create diagrams for a program
To represent decision-making conditions
To provide a step-by-step solution to a problem
To convert high-level code to machine language
Which symbol in a flowchart represents a decision?
Rectangle
Diamond
Oval
Parallelogram
What keyword is used to indicate the start of a pseudo code?
STOP
BEGIN
PROCESS
OPEN
Which of the following is a valid identifier in Pascal?
123Marks
First-Name
Student_Name
@Average
Which data type in Pascal can store a sequence of characters?
Integer
Char
Boolean
String
What is the output of the expression 10 MOD 3 in Pascal?
1
3
0
7
What is the result of the logical expression (True AND False)?
True
False
1
Undefined
Which structure repeats steps until a condition is satisfied?
Sequence
Selection
Repetition
Decision
What is the primary difference between an interpreter and a compiler?
Interpreters are faster than compilers.
Compilers translate code line-by-line.
Interpreters execute code line-by-line, while compilers translate the entire program first.
Compilers detect no errors during translation.
Which programming paradigm focuses on what to solve, not how to solve?
Procedural
Declarative
Object-Oriented
Structured
What does an array allow you to do?
Store multiple values of the same type using a single identifier.
Execute repetitive tasks in a program.
Store characters only.
Perform arithmetic operations.
Which Pascal structure simplifies handling multiple conditions?
IF...THEN...ELSE
WHILE Loop
CASE Statement
FOR Loop
What are low-level programming languages?
Machine and Assembly languages
Python and Java
Pascal and BASIC
FORTRAN and SQL
Which keyword is used in Pascal to declare variables?
const
var
input
declare
Which operator is used in Pascal for integer division?
MOD
/
DIV
*
What is the starting index of an array in Pascal by default?
1
0
-1
Undefined
What does the term "function" refer to in Pascal programming?
A block of code that performs a task without returning a value.
A block of code that performs a task and returns a value.
A predefined variable.
A loop structure.
What is a characteristic of object-oriented programming?
Uses step-by-step instructions.
Divides tasks into sub-systems.
Combines data and methods into objects.
Relies only on loops and conditions.
