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
11
When encountering a file with a '.exe' extension from an unfamiliar or untrusted origin, what is the primary security risk that necessitates caution?
Answer:
They possess the capability to harbor and execute malicious code, such as viruses or malware, which can compromise system security and data integrity.
Files with a '.exe' (executable) extension are programs designed to run specific instructions on a computer. If these files originate from an unknown or untrusted source, there's a significant risk that they could contain malicious software (malware, viruses, ransomware, etc.). Upon execution, this malicious code can perform harmful actions, such as stealing personal data, corrupting files, installing backdoors, or even taking control of the computer. Therefore, the primary reason for caution is the potential for system security breaches and data loss, not storage space, compatibility, or the need for special software. Always verify the source and legitimacy of executable files before running them.
12
Which file extension is predominantly used for creating a compressed archive file, often containing multiple other files or folders?
Answer:
.zip (a common archive and compression format)
The '.zip' file extension is a widely recognized and frequently used format for creating compressed archives. This format allows multiple files and directories to be bundled into a single file, significantly reducing their overall size through various compression algorithms. This makes '.zip' files ideal for sharing large sets of data, backing up information, and saving disk space. In contrast, '.docx' is a Microsoft Word document, '.mp3' is an audio file, and '.html' is a web page markup language file; none of these are primarily designed for archiving and compression purposes.
13
When saving a presentation created in recent versions of Microsoft PowerPoint, which file extension is typically assigned to the document by default?
Answer:
.pptx
The '.pptx' file extension is the standard and default format for presentation files created using Microsoft PowerPoint, specifically since the 2007 version. This format is based on XML and stores slides, content, formatting, and other presentation data. Let's briefly look at the other options: * '.docx' is the standard file extension for documents created in Microsoft Word (word processing). * '.html' (HyperText Markup Language) is used for web pages. * '.accdb' is the file extension for database files created in Microsoft Access.
14
Which file extension is historically associated with Microsoft Excel spreadsheets, prior to the adoption of XML-based formats?
Answer:
A spreadsheet generated by older versions of Microsoft Excel.
The file extension '.xls' served as the primary and default file format for Microsoft Excel spreadsheets up to and including Excel 2003. This format stored data in a proprietary binary structure. With the release of Microsoft Office 2007, Excel transitioned to the XML-based file format '.xlsx' as its new default, offering advantages such as reduced file size and improved data recovery. While '.xlsx' is now standard, '.xls' files are still widely encountered and supported by modern spreadsheet software for backward compatibility.
15
When attempting to save a file to a specific directory, access is denied. Which of the following is the most probable cause for this denial?
Answer:
Your user account lacks the necessary 'write' privileges for that directory.
When a user is denied permission to save a file in a directory, the most common reason is insufficient file system permissions. Specifically, the 'write' permission on a directory dictates whether a user can create, delete, or modify files within that directory. If a user does not have 'write' permission, they cannot save new files to that location. Option A (directory full) is possible but less likely to manifest as a 'permission denied' error; it usually results in a 'disk full' or similar message. Option C (long file name) would typically produce an error related to invalid naming conventions, not a general permission denial. Option D (corrupted file) is irrelevant to the act of saving a file to a directory, as the permission is checked before the file's contents are fully processed for storage.
16
When managing files on a computer, executing the 'cut' command followed by the 'paste' command on a file achieves the same result as which singular file operation?
Answer:
Relocating the file from its current directory to a different one.
In most operating systems, the 'cut' command signifies an intention to move a file or folder. It effectively marks the selected item for transfer without immediately deleting it from the source. The subsequent 'paste' command then finalizes this operation by removing the file from its original location and placing it in the new destination. Therefore, the combination of 'cut' and 'paste' is functionally equivalent to a 'move' operation, as it changes the file's primary storage location while deleting the original instance. 'Copy' would leave the original file in place, 'rename' only alters the name, and 'create' generates a new file from scratch.
17
Upon encountering a file named "install.exe" on a Windows operating system, what is its primary and most likely purpose?
Answer:
To initiate and manage the installation process of a software application.
The file extension '.exe' unequivocally identifies the file as an executable program on Windows-based systems. When combined with a filename like 'install', it overwhelmingly indicates that the file's function is to execute a program designed to install other software onto the computer. Therefore, 'install.exe' is a direct command to begin the software setup process. Option A (text-based guide) would typically be a '.txt', '.pdf', or '.doc' file. Option C (compressed archive) would usually have extensions like '.zip', '.rar', or '.7z'. Option D (system log file) would typically use extensions such as '.log' or '.evt'.
18
Which of the following file extensions typically indicates a raster image file format that supports lossless compression?
Answer:
.png (Portable Network Graphics)
The '.png' (Portable Network Graphics) file extension is widely recognized for raster graphics. A key characteristic of PNG is its support for lossless data compression, which means that an image can be compressed and decompressed repeatedly without any loss of quality. In contrast, '.mov' is for video, '.mp3' is for audio, and '.pdf' is for documents, although PDFs can embed images, they are not primarily an image file format themselves. Lossless compression is particularly beneficial for web graphics, logos, and images with sharp lines or text.
19
Regarding file system permissions, what specific capability does the 'execute' permission grant a user for a given file?
Answer:
The ability to run the file, assuming it is an executable program or a script.
In most operating systems, particularly Unix-like systems, the 'execute' permission (often represented as 'x') is crucial for executing a file. If the file is a compiled program, a shell script, or any other executable code, this permission allows the operating system to load and run it. Without execute permission, even a perfectly valid program cannot be launched by a user. 'Read' permission (r) allows viewing contents, 'write' permission (w) allows modification, and copying/renaming are generally controlled by directory permissions or user privileges.
20
In a typical Unix-like file system, which specific action is *solely* enabled by having 'write' permission on a given file?
Answer:
Altering the file's data, such as adding, deleting, or changing information.
In Unix-like file systems, permissions are distinct for various operations. 'Write' permission ('w') on a file specifically grants the ability to modify its content. This includes operations like appending new data, deleting existing data, or changing any part of the file's information. Without 'write' permission, these modifications cannot be performed. Option A requires 'read' permission ('r'). Without 'read' permission, you cannot view the file, regardless of write access. Option C requires 'execute' permission ('x'). This permission is necessary for the operating system to run the file as an executable program or script. Option D involves administrative actions that typically require either being the file's owner or having superuser privileges (like 'root'). Simply possessing 'write' permission does not grant the ability to change ownership or adjust permissions (chmod) for others.