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
261
What term is used for a collection of information to build reports or analyze data in an environment?
Answer:
Database
A database is a structured collection of data that can be analyzed and used for reporting.
262
The 'data dictionary' or 'system catalog' stores what type of information?
Answer:
Metadata
The data dictionary is a component of the DBMS that stores metadata. This includes information about schemas, tables, columns, data types, constraints, user permissions, and other structural information about the database.
263
What is a superkey?
Answer:
A set of attributes that can uniquely identify a tuple.
A superkey is a set of one or more attributes that, when taken together, can uniquely identify a record in a table. A candidate key is a minimal superkey, meaning it's a superkey from which no attributes can be removed without losing the uniqueness property.
264
Which aggregate function returns the total number of rows that match a specified criterion?
Answer:
COUNT()
The `COUNT()` function returns the number of rows. `COUNT(*)` returns the total number of rows in a table, while `COUNT(column)` returns the number of non-NULL values in that column.
265
Which of the following challenges is commonly associated with traditional file management systems, making them less efficient and robust than modern database management systems?
Answer:
Inability to perform complex queries across multiple data sets.
Traditional file management systems often store data in separate, application-specific files. This approach leads to several problems. While 'Program dependence' and 'Data redundancy' are valid issues, the option 'Inability to perform complex queries across multiple data sets' encapsulates a significant limitation. File systems are typically designed for basic record access rather than sophisticated querying and aggregation across disparate files. Options B, C, and D describe advantages typically found in modern database management systems, not problems in file management systems. For instance, file systems generally suffer from *lack* of data independence, *high* data redundancy, and *poor* data integrity compared to DBMS.
266
Which level of data abstraction describes *how* the data is actually stored?
Answer:
Physical level
The physical level is the lowest level of data abstraction. It describes the complex low-level data structures in detail, defining how the data is stored on physical storage devices like disks.
267
A key that is an alternative to the primary key is known as a(n):
Answer:
Alternate key
An alternate key is a candidate key that was not chosen to be the primary key. A table can have multiple candidate keys, but only one is selected as the primary key; the rest are alternate keys.
268
Which normal form deals with the elimination of partial dependencies?
Answer:
Second Normal Form (2NF)
A table is in Second Normal Form (2NF) if it is in 1NF and every non-prime attribute is fully functionally dependent on the primary key. This process specifically removes partial dependencies, where an attribute depends on only a part of a composite primary key.
269
The primary key of a weak entity is composed of the primary key of the strong entity and the weak entity's:
Answer:
Discriminator (or partial key)
A weak entity cannot be identified by its attributes alone. Its primary key is a composite key formed by the primary key of its owner (strong) entity and its own partial key, known as the discriminator.
270
Which of the following is a disadvantage of the hierarchical model?
Answer:
It is difficult to represent many-to-many relationships.
The strict parent-child (one-to-many) structure of the hierarchical model makes it inherently difficult and inefficient to represent many-to-many relationships. Implementing such relationships often requires creating redundant data.