Computer Science/IT MCQs
Topic Notes: Computer Science/IT
MCQs and preparation resources for competitive exams, covering important concepts, past papers, and detailed explanations.
Plato
- Biography: Ancient Greek philosopher (427–347 BCE), student of Socrates and teacher of Aristotle, founder of the Academy in Athens.
- Important Ideas:
- Theory of Forms
- Philosopher-King
- Ideal State
161
What is a key advantage of the UTF-8 encoding?
Answer:
It uses a variable number of bytes, saving space for common characters
UTF-8 uses only one byte for all the standard ASCII characters, two bytes for many other common characters, and three or four bytes for rarer characters. This makes it very efficient for text that is primarily English.
162
On a Linux or macOS system, what does the path `/` refer to?
Answer:
The root directory of the file system.
In Unix-like operating systems, a single forward slash `/` is the notation for the root directory.
163
The operation (101)₂ - (110)₂ would result in a:
Answer:
Negative number
In decimal, this is 5 - 6 = -1. To perform this in binary, you would use a method like two's complement.
164
What is a common way to select multiple files at once for a file operation?
Answer:
Holding down a key like Ctrl or Shift while clicking on the files.
These modifier keys are standard conventions in graphical user interfaces for selecting multiple items.
165
Add (1010)₂ and (1101)₂.
Answer:
(10111)₂
1010
166
In ASCII, the decimal value for the lowercase letter 'a' is 97. What is the decimal value for 'b'?
Answer:
98
The letters of the alphabet in ASCII are encoded in consecutive numerical order. Therefore, 'b' is simply one greater than 'a'.
167
When performing the binary subtraction 0 - 1, the result is:
Answer:
1 with a borrow from the next column
Just like in decimal subtraction, when you subtract a larger digit from a smaller one, you must borrow from the next column. Borrowing a '1' in binary is equivalent to borrowing a '2', so the operation becomes 2 - 1 = 1.
168
In the file name "My_Report_Final.docx", what is the part ".docx" called?
Answer:
The file extension
The file extension is the suffix at the end of a file name that indicates its type.
169
What is the result of the binary addition (11)₂ + (01)₂?
Answer:
(100)₂
Right column: 1+1=0 with a carry of 1. Left column: 1+0+carry(1)=10. The result is 100. (In decimal: 3 + 1 = 4).
170
What is the truth table for a 2-input AND gate?
Answer:
00-\>0, 01-\>0, 10-\>0, 11-\>1
The output is 1 only when both input A AND input B are 1. In all other cases, the output is 0.