Font size
WorksheetsPrinciple of Programming
Total questions: 68
Worksheet time: 40mins
Which category of software is designed to perform specific tasks for end-users?
System software
Application software
Utility software
Firmware
What does this symbol represent?
(a)
Which type of software manages computer hardware and provides common services for application software?
System software
Application software
Utility software
Firmware
Which software category includes programs like word processors, web browsers, and spreadsheet applications?
System software
Application software
Utility software
Firmware
What type of software helps users perform maintenance tasks on their computers, such as disk cleanup and antivirus scans?
System software
Application software
Utility software
Firmware
Which software category controls the operation of a specific hardware device and is often stored in non-volatile memory?
System software
Application software
Utility software
Firmware
(a) is designed to perform specific tasks for end-users.
(a) manages computer hardware and provides common services for application software.
Examples of (a) include word processors, web browsers, and spreadsheet applications.
(a) helps users perform maintenance tasks on their computers, such as disk cleanup and antivirus scans.
(a) controls the operation of a specific hardware device and is often stored in non-volatile memory.
System software is not essential for the operation of a computer.
False
True
Application software includes programs like device drivers and operating systems.
False
True
Utility software is primarily used to perform specific tasks for end-users.
False
True
Firmware can be updated or changed easily by end-users.
False
True
System software includes programs like antivirus software and disk defragmenters.
False
True
What type of software allows users to create, edit, and manipulate data in various formats?
System software
Application software
Utility software
Firmware
Which software category includes programs like antivirus software, disk cleanup utilities, and backup tools?
System software
Application software
Firmware
Utility software
What is the primary function of firmware in electronic devices?
Provide common services for application software
Control the operation of specific hardware devices
Perform maintenance tasks on computers
Create, edit, and manipulate data
Which software category manages the interface between hardware components and the operating system?
System software
Application software
Utility software
Firmware
What is the fundamental unit of digital data storage in computers?
Bit
Byte
Kilobyte
Megabyte
Which component of a computer is primarily responsible for storing data permanently?
RAM
CPU
Hard drive
GPU
What is the binary system used in computing to represent data?
Base 8
Base 10
Base 2
Base 16
Which statement best describes a flowchart?
A visual representation of an algorithm using symbols and arrows
A formal programming language
A type of pseudocode used for mathematical calculations
A database management system
What is the primary purpose of pseudocode?
Outlining the logic of a program in plain language
Executing programs directly on the computer
Writing code in a specific programming language
Debugging code errors
In pseudocode, what does the "IF" statement represent?
A decision-making construct
Function definition
Variable declaration
A loop structure
What symbol is commonly used to denote a process in a flowchart?
Rectangle
Arrow
Diamond
Circle
What does the "REPEAT-UNTIL" loop in pseudocode do?
Repeats a set of instructions until a condition is true
Terminates the program
Executes a set of instructions once
Repeats a set of instructions while a condition is true
What does the "OUTPUT" statement in pseudocode represent?
Displaying information to the user
Input from the user
Declaring a variable
Terminating the program
What does the "INPUT" statement in pseudocode represent?
Outputting data to the user
Taking input from the user
Declaring a variable
Terminating the program
Which construct in pseudocode is used for making decisions based on conditions?
FOR loop
REPEAT-UNTIL loop
IF-THEN-ELSE statement
OUTPUT statement
What is the purpose of pseudocode?
To directly run programs
To outline the logic of a program before writing actual code
To generate machine code
To debug code errors
What does this symbol represent?
Decision
(a)
What does this symbol represent?
(a)
What does an arrow represent in a flow chart
(a)
True or False
A flowchart does not need to have a Start
(a)
What symbol do flowcharts begin with?
(a)
Which of the following is a valid variable name in C++?
myVariable123
123myVariable
my Variable
my-Variable
What is a variable in programming?
A constant value
A storage location with a name and a value
A reserved keyword
An arithmetic operation
What is the purpose of declaring a variable before using it?
To reserve memory space for the variable
To assign an initial value to the variable
To specify the data type of the variable
To prevent the variable from being modified
Which of the following data types is used to store whole numbers in C++?
float
double
int
char
What does it mean to "initialize" a variable?
Assigning a value to a variable for the first time
Declaring a variable without assigning a value
Changing the data type of a variable
Printing the value of a variable
what symbol is used for the assignment operator?
==
=
=>
->
Which of the following is not a valid variable declaration in C++?
int x = 10;
float y = 3.14;
char z;
double 123abc;
What does it mean to "declare" a variable?
To assign a value to the variable
To specify the type and name of the variable
To display the value of the variable
To perform operations on the variable
What is the value of x after the following statement: int x = 10 % 3; ?
(a)
Which of the following is an invalid statement in C++ for assigning a value to a variable?
int x = 5;
x = 5;
x := 5;
float y = 3.14;
What is the result of the expression: 5 * (2 + 3)?
(a)
Which of the following statements is used to increment the value of x by 1 in C++?
x = x + 1;
x++;
++x;
All of the above
Which of the following is the correct syntax for declaring a constant variable in C++?
const int x = 10;
constant x = 10;
int constant x = 10;
int x = 10; constant;
what does the modulus operator (%) return?
Quotient of division
Remainder of division
Multiplication result
Exponential result
can a variable name start with a number?
Yes
No
Only if it's a float variable
Only if it's a string variable
Which of the following is a valid variable name?
my_variable_name
my variable name
my-variable-name
1myVariableName
Which of the following is a valid variable declaration in C++?
int num;
integer number;
num = int;
number: int;
What happens if you declare a variable without assigning it a value?
It automatically gets assigned a default value.
It remains uninitialized.
It throws an error.
It gets assigned a value based on the context.
Can you redeclare a variable with the same name within the same scope in C++?
Yes, but it must have a different data type
Yes, as long as it's declared before its first use
No, it will result in a compilation error
No, it will automatically assign the new value to the existing variable
What is the purpose of initializing a variable?
To give it a name
To reserve memory for it
To assign it an initial value
To declare its data type
when should you declare a variable?
It doesn't matter
At the end of the program
After assigning it a value
Before using it
......... the process of designing, building something in a logical way.
Programming Language
Computer Programming
Programming Algorithm
Programming
it is a formal language that will be used to direct instructions to the
computer
Programming Language
Computer Programming
Programming Algorithm
Programming
Set of instructions / rules to be followed by a computer program which
should contain an input, process and an output depending on the problem to be solved
(a)
It works by comparing a value with another value if the condition is met
then run this step if not skip this step.
Pseudocode
Flowchart
Conditional Statements
Loop Statements
A method that allows a programmer to represent the algorithm in a more
programming related way.
Pseudocode
Flowchart
Conditional Statements
Loop Statements
Indication of a variable to be used in a process.
Input
Output
IF/ELSE
WHILE
Indication of a value to be displayed.
Input
Output
IF/ELSE
WHILE
Jasmine is writing a computer program that will allow her to control her IPhone from her computer. She has created a sequential list of instructions in order to execute her program. This set of instructions is also known as...
(a)
Jasmine is typing the code for her new IPhone software into her computer using her keyboard. The data that she is typing into the computer is an example of...
(a)
The coding system of zeros and ones used by computers to process information is known as...
(a)
