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
141
The "compression ratio" refers to:
Answer:
The ratio of the compressed file size to the original file size
A higher compression ratio means the file was reduced in size more effectively. For example, compressing a 10MB file to 2MB gives a compression ratio of 5:1.
142
If your current directory is `/home/user/`, what is the relative path to `/home/user/pictures/vacation.jpg`?
Answer:
`pictures/vacation.jpg`
Since you are already in `/home/user/`, you only need to specify the path starting from that location, which is the `pictures` subfolder.
143
When you "cut" and "paste" a file, which file operation are you essentially performing?
Answer:
Move
"Cut" marks a file for moving, and "paste" completes the move to a new location. The end result is that the file is no longer in its original location, which is the definition of a move operation.
144
What is the purpose of the `/tmp` directory in Linux?
Answer:
To store temporary files that can be deleted upon reboot
Applications use the `/tmp` directory to store temporary data. The contents of this directory are often cleared out when the system restarts to free up space.
145
The "create" file operation is used to:
Answer:
Make a new, empty file.
The create operation is the fundamental action of bringing a new file into existence on the file system. Initially, this file is typically empty and has a size of zero bytes.
146
If you don't have read permission on a file, but you do have write permission, what can you do?
Answer:
Both B and C are possible
Write permission allows you to modify the file, which includes completely replacing its content (effectively deleting the old data and writing new data). You can also delete it if you have write access to the parent folder.
147
What type of file is a ".pdf"?
Answer:
A portable document format file
".pdf" stands for Portable Document Format, a format created by Adobe to present documents, including text formatting and images, in a manner independent of application software, hardware, and operating systems.
148
Which file extension is commonly associated with a compressed archive?
Answer:
.zip
The .zip format is one of the most widely used for creating compressed archives that can contain multiple files.
149
Why is it generally a bad idea to use spaces in file names, especially for web development?
Answer:
Spaces can be misinterpreted by web browsers and servers, often requiring special encoding.
While modern operating systems handle spaces in file names, web browsers and servers may have trouble interpreting them in URLs. Spaces are often replaced with "%20" (the ASCII code for a space), which can lead to broken links or other issues.
150
What would the path `C:\Users\..\Windows` resolve to?
Answer:
C:\\Windows
Starting from `C:\Users`, the `..` moves up to the parent directory, which is the root `C:\`. The path then navigates into the `Windows` directory, resulting in `C:\Windows`.