0% found this document useful (0 votes)
1 views

Exam

Uploaded by

Abdullah Emam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Exam

Uploaded by

Abdullah Emam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Question 2: Fill in the blanks:

1. ……………is the brain of your computer. It handles all the instructions you give your computer, and the
faster it does this, the better.
2. …………….is any part of your computer that has a physical structure, such as the keyboard or mouse. It
also includes all of the computer's internal parts.
3. ……………stores some standard processing programs supplied by the manufacturers to operate the
personal computer.
4. To decrease the mismatch in operating speed, a small memory chip is attached between CPU and
Main memory whose access time is very close to the processing speed of CPU. It is called ……………
5. Windows and Linux are examples of.......................
6. Scanners and mice are considered as ................................. devices.

Question 3: Choose the correct answer:


3. Devices that accept data from outside computer and transfer into CPU are called
a. input devices b. digital devices c. analogue devices d. truth table peripherals
4. What are the four major components of a computer?
a. Input Devices, CPU, Storage, Output Devices
b. Input Devices, Processing Unit, Storage, Output Devices
c. Motherboard, Processing Unit, Storage, Output Devices
d. Input Devices, Processing Unit, Memory, Output Devices
5. Which one has two examples of output devices?
a. Monitor and scanner b. Speaker and keyboard c. Printer and scanner d. Speaker and printer
6. Application software…………
a. Tells the computer components what to do
b. Let's the computer interact with the user
c. Let's the user perform a task.
d. Is encoded on a piece of hardware

8. Secondary storage is another name for memory


a. True b. False
10. Utilities perform specific tasks related to managing computer resources such as Antivirus Program
a. True b. False
11. Which of the following is/are not part of the CPU?
a. Control unit b. ALU c. Registers d. Primary Storage
14. What type of device is computer keyboard?
a. Memory b. Output c. Storage d. Input

16. Also called program definition or program analysis


a) Program Specification b) Program Design c) Program Debugging d) None of Them
17. ……………is graphically present the detailed sequence of steps needed to solve a programming
problem a) Pseudocode b) Flowchart c) Monitor d) None of Them
18. A step in an algorithm that leads to more than one possible continuation is called a ……...
a) Documentation b) Sequence c) Decision d) Repetition
What is the primary function of a CPU in a computer?
✗ - To store data permanently
✗ - To process instructions and manage data
✗ - To connect to the internet
✗ - To display images on the screen
Which of the following is NOT an input device?
✗ - Keyboard
✗ - Mouse
✗ - Scanner
✗ - Monitor
What does the 'if-else' statement in programming allow you to do?
✗ - Make decisions based on conditions
✗ - Store data in memory
✗ - Repeat a set of instructions
✗ - Create a new function
Which of the following is a type of loop in C++?
✗ - for loop
✗ - switch loop
✗ - case loop
✗ - if loop
What is the purpose of a sound card in a computer?
✗ - To enhance video quality
✗ - To record and play back sound
✗ - To increase storage capacity
✗ - To manage network connections
Which of the following is a common file format for sound files?
✗ - HTML
✗ - JPEG
✗ - DOCX
✗ - MP3
What is the role of a keyboard in a computer system?
✗ - To input data into the computer
✗ - To connect to external devices
✗ - To process information
✗ - To display output to the user
What does 'overloading' refer to in programming?
✗ - Using too much memory
✗ - Defining multiple functions with the same name but different parameters
✗ - Writing code without comments
✗ - Creating infinite loops
Which of the following is a characteristic of a desktop computer?
✗ - It is primarily used for mobile applications
✗ - It is designed for stationary use
✗ - It has a built-in battery
✗ - It is portable and lightweight
What is the main purpose of an algorithm?
✗ - To connect different software applications
✗ - To store data permanently
✗ - To provide a step-by-step solution to a problem
✗ - To display information visually
What is the primary function of output devices?
✗ - To enable us to view or hear the computer’s processed data
✗ - To connect to the internet
✗ - To input data into the computer
✗ - To store data permanently
Which type of monitor is known for taking up more desk space?
✗ - LED Monitor
✗ - Liquid Crystal Display (LCD)
✗ - Plasma Monitor
✗ - Cathode-ray tube (CRT)
What is a characteristic of an inkjet printer?
✗ - Uses laser technology to print
✗ - Prints only in black and white
✗ - Is the most expensive type of printer
✗ - Makes characters by inserting dots of ink onto paper
What does a plotter primarily use for printing?
✗ - A pen that moves over a large sheet of paper
✗ - Laser technology
✗ - Ink cartridges
✗ - Thermal printing technology
What is the role of the control unit in a CPU?
✗ - Coordinates and controls all parts of the computer system
✗ - Stores data permanently
✗ - Performs arithmetic calculations
✗ - Generates graphics output
Which type of memory is volatile and loses its data when power is turned off?
✗ - Optical Disk
✗ - Random Access Memory (RAM)
✗ - Read Only Memory (ROM)
✗ - Hard Drive
What is the main purpose of a modem?
✗ - To display graphics on a monitor
✗ - To print documents
✗ - To connect a computer to the internet
✗ - To store data
Which component of the CPU executes all arithmetic and logical operations?
✗ - Cooling fan
✗ - Arithmetic-logic unit (ALU)
✗ - Registers
✗ - Control unit
What type of storage device is a hard drive classified as?
✗ - Primary storage
✗ - Volatile storage
✗ - Temporary storage
✗ - Secondary storage
What is the function of the input/output bus in a computer?
✗ - Displays output on the monitor
✗ - Provides a pathway for the microprocessor to communicate with devices
✗ - Stores data permanently
✗ - Controls the power supply
Which of the following is not a standard data type?
A)Char
B)Bool
C)int
D)date

Which one is not an integer value?


A)12
B)“50”
C)23
D)100
What is the type of '2'
A)String
B)Double
C)Char
D)Float
What is the type of 19.23?
A)char
B)double
C)bool
D)int
--Which of the following is not a comparison operator in C++ language?
A)>
B)<
C)>=
D)=
--Which of the following expressions evaluates to false?
A)5>=(1+6)-4
B)3!=4-1
C)8-1>4
D)6>=5
--If originally,
int x=10;
int y=5;
int z=2;
then which of the following expressions evaluate to false:
A)
(x+1)!=y-2
B)
!(x+y>20)
C)
(x+1==y)
D)
x+1<z*10
--If originally x=2, y=3, and z=5,what is the value of x,y, and z after executing the following code?
if (x+1==y)
{
y=y+1;
}
else
{
x++;
}
A)x=4, y=2, z=5
B)x=2, y=4,z=5
C)x=5, y=5, z=2
D)x=3, y=4, z=5
---If originally x=1,y=2, and z=3, what is the value of x, y, and z after executing the following code?
switch(x) {
case 0:
x++;
z=x+1;
break;
case 1:
y=z+x;
break;
default:
z=z+x;
}
A)
x=2, y=2,z=2
B)x=1, y=2,z=4
C)x=1, y=4,z=3
D)x=3, y=2,z=4

Question 1: Write a program code and draw a flowchart :


1. Print sum of two numbers given by user.
2. Read three numbers and then print their maximum and their minimum.
3. Identify if the water is in ice form, or in liquid form or gas form based on a given temperatures from
the user.
4. Read a positive integer N and determine whether or not N is even or odd.
5. Read an integer number, refuses it if negative, calculates and prints its power to 5 otherwise.

You might also like