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
311
In a directory with the "sticky bit" permission set, what is the special behavior?
Answer:
A user can only delete files that they themselves own
The sticky bit is often used on public directories like `/tmp`. Even with full write access to the directory, a user cannot delete another user's files, preventing mischief.
312
What is the main disadvantage of lossy compression?
Answer:
The loss of data is permanent and cannot be recovered
Once a file has been saved with lossy compression, the discarded data is gone forever. You cannot decompress it to get the original, perfect-quality file back.
313
If you have write permission on a directory but not on a file inside it, can you delete that file?
Answer:
Yes, because deleting a file is a modification of the directory that contains it
Deleting a file removes its entry from the directory's list. Therefore, to delete a file, you need write permission on the *directory*, not necessarily on the file itself.