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
81
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.
82
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.
83
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.
84
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.
85
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.
86
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.
87
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.
88
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.
89
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.
90
What operation does the `touch` command in Linux perform?
Answer:
It creates a new, empty file if it doesn't exist, or updates the timestamp if it does
The `touch` command is a quick way to create a blank file or to update a file's last access and modification times without changing its content.