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
361
A DBMS that is not based on the relational model is often referred to as:
Answer:
NoSQL Database
NoSQL (meaning "Not only SQL") is a broad category of database management systems that do not use the relational model. This includes document, key-value, wide-column, and graph databases.
362
The SQL function `AVG()` returns the:
Answer:
Average value of a numeric column.
The `AVG()` aggregate function calculates the average value of a set of values in a numeric column.
363
A top-to-bottom relationship in a database is established by a:
Answer:
Hierarchical schema
The hierarchical data model organizes data in a tree-like structure. This creates clear parent-child, or top-to-bottom, relationships where each parent record can have multiple child records, but each child has only one parent.
364
Which database key links records from one table to another?
Answer:
Foreign key
A foreign key is a field in one table that uniquely identifies a row of another table, establishing a link between them.
365
An 'insertion anomaly' occurs when:
Answer:
You cannot insert a valid fact into the database unless another, unrelated fact is also added.
An insertion anomaly happens when you are unable to insert information about a new entity because a necessary related piece of information is missing. For example, being unable to add a new course until at least one student enrolls in it.
366
A transparent DBMS:
Answer:
Keeps its physical structure hidden from users
A key feature of a DBMS is physical data independence, often referred to as transparency. This means the DBMS hides the complex details of how and where the data is physically stored on disks, allowing users to interact with the data through a simpler, logical model.
367
The SQL `LIKE` operator is used with which clause?
Answer:
`WHERE`
The `LIKE` operator is used in a `WHERE` clause to search for a specified pattern in a column. It uses wildcard characters like `%` (zero or more characters) and `_` (a single character).
368
What is the primary goal of database normalization?
Answer:
To minimize or eliminate data redundancy and related anomalies.
Normalization is the process of organizing the columns and tables of a relational database to reduce data redundancy and improve data integrity. It aims to eliminate undesirable characteristics like Insertion, Update, and Deletion Anomalies.
369
Which of the following is a popular open-source Relational Database Management System (RDBMS)?
Answer:
MySQL
MySQL is one of the most widely used open-source RDBMS in the world. The other options, while popular RDBMS, are proprietary software products.
370
Which SQL statement is used to insert new data in a database?
Answer:
INSERT INTO
The INSERT INTO statement is used to add one or more new rows of data into a table. You specify the table and the values to be inserted for each column.