All Free Computer Science and IT MCQs with Answers

Every Computer Science and IT question in the bank, across all chapters, each with the correct answer and a written explanation. Free and unlimited, with no account needed.

2,221 questions · page 66 of 112

  • A. Global key
  • B. Link key
  • C. Foreign key
  • D. Super key

Explanation: A foreign key is a field in one table that uniquely identifies a row of another table or the same table.

Correct answer: Foreign key

1302. SQL is used for

  • A. Data definition
  • B. Data Manipulation
  • C. Data definition and Manipulation
  • D. Searching records

Explanation: SQL is a domain-specific language used in programming and designed for managing data held in a relational database management system, or…

Correct answer: Data definition and Manipulation
  • A. Parabola
  • B. Parallelogram
  • C. Ellipse
  • D. Rectangular

Explanation: In an Entity-Relationship (ER) diagram, attributes are represented by ellipses or ovals connected to their respective entity.

Correct answer: Ellipse
  • A. Secondary Key
  • B. Index
  • C. Composite
  • D. Linked key

Explanation: A secondary key is made on a field that you would like to be indexed for faster searches. A table can have more than one secondary key.

Correct answer: Secondary Key
  • A. Relationship
  • B. Cardinality
  • C. Modality
  • D. Attribute

Explanation: An attribute is a property or characteristic of an object. In a database, attributes are used to define the columns in a table.

Correct answer: Attribute
  • A. One-to-one
  • B. One-to-many
  • C. Many-to-many
  • D. Many-to-one

Explanation: A single book can be read by many different people (many). Likewise, a single person can read many different books (many).

Correct answer: Many-to-many
  • A. Query
  • B. Table
  • C. Form
  • D. Report

Explanation: A table is the fundamental structure of a relational database. It stores data in a grid-like format with rows and columns.

Correct answer: Table
  • A. Each relation name is distinct from the names of other relations in the schema
  • B. Tuples in a relation are ordered
  • C. None of the other options
  • D. Each value in a tuple is atomic
  • E. Values of a specific attribute arefrom the same atomic domain

Explanation: Unlike sets, order does not matter in relations. Tuples can be returned or processed in any order without affecting the results

Correct answer: Tuples in a relation are ordered
  • A. Table
  • B. Record
  • C. Field
  • D. Cell

Explanation: In a relational database table, columns represent categories of data. Each column holds a specific type of information about the entities…

Correct answer: Field
  • A. Table
  • B. Report
  • C. Query
  • D. Form

Explanation: The CREATE command is used in SQL (Structured Query Language) to create database objects, and one of the most fundamental objects is a…

Correct answer: Table
  • A. Logical design
  • B. Physical design
  • C. Analysis
  • D. Implementation

Explanation: Physical design deals with how the data will be physically stored and accessed on the storage media.

Correct answer: Physical design
  • A. Indexes
  • B. File organization
  • C. Integrity constraints
  • D. Implementation

Explanation: File organization is a technique for physically arranging records of a file on a secondary storage device like a hard disk or solid-state…

Correct answer: File organization
  • A. Critical fragments
  • B. Non-critical fragments
  • C. Critical and non-critical fragments
  • D. Only large fragments

Explanation: These are fragments that are essential for the operation of the system or specific applications.

Correct answer: Critical fragments
  • A. Table
  • B. Relation
  • C. Row
  • D. Field

Explanation: In a Relational Database Management System (RDBMS), an attribute is also known as a field.

Correct answer: Field
  • A. Entity
  • B. Attribute
  • C. Identifier
  • D. Relationship

Explanation: In a database, a relationship is an association between two or more entities.

Correct answer: Relationship
  • A. File
  • B. Tuple
  • C. Relation
  • D. Attribute

Explanation: In the context of relational databases, a relation refers to a two-dimensional table that holds data according to a specific structure.

Correct answer: Relation
  • A. Data independence
  • B. Data integration
  • C. Data integrity
  • D. Data model

Explanation: Data integrity refers to the overall accuracy, completeness, and consistency of data over its entire lifecycle.

Correct answer: Data integrity
  • A. Object-oriented data
  • B. Network data model
  • C. Implementation
  • D. Hermetic model

Explanation: A network data model is one type of logical data model that allows for more complex relationships between entities compared to the…

Correct answer: Network data model
  • A. my_var
  • B. _score
  • C. return
  • D. total3

Explanation: In C programming, identifiers are names given to variables, functions, constants, and other user-defined elements.

Correct answer: return
  • A. float
  • B. int
  • C. double
  • D. long

Explanation: In many computer systems, including most modern systems, an int (integer) data type typically takes two bytes in memory.

Correct answer: int