This question bank offers 15 practice questions for the Introduction to IT midterm, covering computer hardware and number bases, the program development cycle and flowcharts, and basic Java syntax and errors. Questions include multiple choice, true/false, and short answer formats. Each question is followed by an explanation so you can check your reasoning after attempting it without notes.
This question bank contains 15 practice questions (multiple choice, true/false, and short answer) that cover the three chapters of the Introduction to IT midterm: computer hardware and number bases, the program development cycle and flowcharts, and basic Java syntax and errors. Attempt each question without looking at the notes, then check the explanation.
Interactive quiz
Pick an answer for each question, then press “Submit” to see your score and the explained answers. You mark open questions yourself after seeing the model answer.
1
Multiple choiceA computer accepts data, processes it, and produces ____ as output.
Easy
Correct answerBInformation
The computer's four functions are input (data), process, output (information), and storage. Data is the input, while information is the useful output.
2
Multiple choiceWhich component is considered the "brain" of the computer?
Easy
Correct answerCCPU
The CPU executes instructions based on binary data and is called the brain of the computer. RAM is memory, not the processing unit.
3
True / FalseRAM is non-volatile memory, so it keeps its data when the power is turned off.
Easy
Correct answerBFalse
RAM is volatile: its data is lost when the power is off or the program exits. The hard disk drive (HDD) is the non-volatile memory.
4
Multiple choiceWhich bus is the only bidirectional bus?
Medium
Correct answerAData bus
The data bus carries data back and forth between the processor and other components. The address and control buses are unidirectional.
5
True / FalseThe control unit (CU) is responsible for performing comparisons such as 25 > 10.
Medium
Correct answerBFalse
Comparisons such as 25 > 10 are logic operations performed by the ALU. The CU controls and coordinates data flow and sends the clock signal.
6
Short answerConvert the binary number (100110) to decimal, and show the place values you used.
Medium
Model answer Place values 32, 16, 8, 4, 2, 1 with bits 1 0 0 1 1 0. The 1s are under 32, 4, and 2, so 32 + 4 + 2 = 38.
Compare:
Write the place values from the right, then add the place values under each 1. The answer is 38.
7
Multiple choiceWhich of the following is an output device?
Easy
Correct answerCPrinter
A printer produces output. Scanners, microphones, and mice are input devices that translate human actions into data.
8
Multiple choiceThe result of converting (125) in decimal to binary by repeated division by 2 is:
Hard
Correct answerA1111101
Dividing 125 by 2 repeatedly gives remainders 1, 0, 1, 1, 1, 1, 1. Reading them from bottom to top gives 1111101. The check is 64+32+16+8+4+1 = 125.
9
Short answerExplain the difference between a compiler and an interpreter, and give one example of each.
Medium
Model answer A compiler converts the whole high-level program into machine language before it runs (example: C, C++, C#). An interpreter executes high-level programs directly without a prior full translation (example: Python, Perl, Matlab).
Compare:
The key difference is whether the full translation happens before execution (compiler) or during execution (interpreter). Assembler is different: it converts assembly language to machine language.
10
True / FalseThe steps of the program development cycle should be done in this order: writing the code comes before analyzing the problem.
Easy
Correct answerBFalse
Analyzing the problem must be done first, before any other step. The order begins with analyze, then plan, design the interface, write the code, test and debug, document, and maintain.
11
Multiple choiceIn a flowchart, which shape represents a decision (condition)?
Medium
Correct answerCRhombus (diamond)
The rhombus (diamond) shows a condition that decides which path to take. The rhomboid (slanted box) represents input/output, the rectangle represents a process, and the oval represents the start or end.
12
Multiple choiceWhich of the following is NOT a valid Java identifier?
Medium
Correct answerC2ndPlace
An identifier cannot start with a digit. total_sum, _count, and Num1 are valid because they start with a letter or underscore and contain only letters, digits, and underscores.
13
Short answerWrite the output of the following code, and explain why the output appears on those lines: System.out.print("Java "); System.out.println("is"); System.out.print("Fun"); System.out.println("!");
Hard
Model answer Java is
Fun!
Compare:
print keeps the next output on the same line, so "Java " and "is" appear on the first line. Then print("Fun") and println("!") appear on the second line, producing "Fun!".
14
Multiple choiceDividing a number by zero in a program that compiles successfully is an example of:
Medium
Correct answerCRuntime error
A runtime error occurs during execution, after the program has compiled. Dividing by zero is an illegal operation that stops the program abnormally.
15
True / FalseA program that compiles and runs but outputs a wrong result because of faulty logic is said to have a logical error, and it always shows an error message.
Hard
Correct answerBFalse
A logical error gives no error message, which makes it the hardest to detect. The program runs normally, but the output is incorrect.
0 / 15 answered
Glossary
Term
Meaning
Volatile memory
Memory whose data is lost when power is turned off, such as RAM.
Bytecode
The intermediate format produced by the Java compiler (JDK), which the JVM runs on any platform.
Logical error
An error in which the program compiles and runs without messages, but gives wrong output.
Frequently asked questions
What topics does this question bank cover?
The question bank covers the three chapters of the Introduction to IT midterm: computer hardware and number bases, the program development cycle and flowcharts, and basic Java syntax and errors. It contains 15 practice questions in multiple choice, true/false, and short answer formats.
How should I use the questions?
Attempt each question without looking at the notes first. After answering, check the explanation provided for that question to see why the correct answer is right and where your reasoning may have gone wrong.
What question types are included?
The bank includes multiple choice, true/false, and short answer questions. Short answer questions ask you to explain concepts such as the difference between a compiler and an interpreter, and to show your steps in number conversion and Java output tracing.
This file was prepared with AI in Nashmi Studio and shared by a user. Check key facts against their sources. To report inappropriate content, contact the site team.