What is a loop in programming?
A sequence of instructions that is never executed.
A sequence of instructions that is executed randomly.
A sequence of instructions that is executed only once.
A sequence of instructions that is executed repeatedly.
Explanation
What is branching in computer programming?
A way to store data in a program
A way to repeat a sequence of instructions
A technique to speed up a program
A method to execute a different sequence of instructions based on a condition
Explanation
Why are comments ignored by the computer?
Because they are not part of the executable code
Because they are written in a different language
Because they are placed at the end of the code
Because they are written in uppercase letters
Explanation
What is sequential flow in a program?
Code that runs in the order it is written
Code that never runs
Code that runs in a random order
Code that runs only once
Explanation
What is a function call in programming?
A command to create a new variable
A command to run another part of the program and return
A command to delete data
A command to stop the program
Explanation
What is a function in programming?
A piece of code that does one specific job
A loop that repeats a block of code
A variable that stores data
A comment that explains the code
Explanation
What is a class in object-oriented programming (OOP)?
A blueprint or template for creating objects.
A specific instance of an object.
A variable that stores data
A method that an object can perform.
Explanation
What is object-oriented programming (OOP)?
A technique to write software without using any models.
A method to divide programs into smaller groups of actions or tasks.
A way to write programs as a simple list of instructions.
A way to model real-world objects in computer code.
Explanation
What does it mean for an array to be multidimensional?
It is a type of function.
It can hold arrays within arrays.
It can only be used in one-dimensional space.
It can hold only one value.
Explanation
What happens when you enter a number as a character?
It gets deleted.
Correct Answer:
You cannot perform math operations with it.
You can perform math operations with it.
It becomes a string.
Explanation
What is a floating-point number?
A whole number
A number used only in financial calculations
A number that can have decimal fractions
A number with a specific number of digits after the decimal point
Explanation
What is a variable in a computer program?
A type of function that performs calculations
A special type of loop in programming
A container that holds data for use later
A fixed value that never changes
Explanation
What is the main purpose of pseudocode?
To compile the program into machine language
To create a user interface for the program
To describe what the code will do using plain language
To write the final code for a program
Explanation
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.