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
4251
What does the `~` (tilde) character represent in a Linux or macOS command line?
Answer:
The current user's home directory
The tilde is a shortcut that expands to the absolute path of the logged-in user's home directory (e.g., `/home/username`).
4252
Which file operation is used to make an identical version of a file in a different location?
Answer:
Copy
The copy operation creates a duplicate of a file or folder and places it in a new location, while the original file or folder remains unchanged in its original location.
4253
In Windows, where are user-specific files such as "My Documents", "Desktop", and "Downloads" typically stored?
Answer:
\\Windows
Each user on a Windows system has a profile folder under `C:\Users` that contains their personal data and application settings.
4254
What would the command `chmod 755 myfile.sh` do?
Answer:
Give the owner read/write/execute, and the group and others read/execute
The number 7 (`rwx`) is for the owner. The number 5 (`r-x`) is for the group. The final number 5 (`r-x`) is for others. This is a common permission setting for scripts and programs.
4255
Which specific executable filename is responsible for initiating the Microsoft Word application on a Windows operating system?
Answer:
winword.exe
To launch Microsoft Word on a Windows system, the executable file 'winword.exe' is executed. This is the primary program file for the application. 'word.com' is an old DOS executable extension and not used for modern Windows applications. 'msword.bat' would be a batch script, not the core executable itself. 'write.sh' is a shell script typically used in Unix-like environments, unrelated to Windows Word.
4256
Windows ACLs are more granular than standard Unix permissions because:
Answer:
They allow you to set permissions for many specific users and groups, not just three categories
ACLs provide a finer level of control, allowing an administrator to create complex rules for various individual users and groups on the same file or folder.
4257
What happens if you try to rename a file to a name that already exists in the same directory?
Answer:
The operating system will typically show an error and prevent the operation
File systems require unique names for each file within a single directory. The OS will block the rename to prevent a naming conflict.
4258
A file ending in ".py" is a source code file for which programming language?
Answer:
Python
The ".py" extension is the standard convention for files containing Python source code.
4259
What is a "flat" directory structure?
Answer:
A structure where all files are stored in a single directory
A flat directory structure lacks hierarchy and places all files at the same level. This is simple but becomes very disorganized as the number of files grows.
4260
What does the file extension ".html" or ".htm" signify?
Answer:
A web page to be opened in a browser
These extensions stand for HyperText Markup Language, the standard language used to create documents for display in a web browser.