Quiz For All

0%

Database Fundamentals - NAT (National Aptitude Test)

Database Fundamentals refers to the Computer Science portion of the National Aptitude Test (NAT), a standardised test for admissions in Pakistan.

1 / 50

Which of the following is a fundamental data model used to organize data into tables of rows and columns?

2 / 50

In a "one-to-many" relationship, a single row in Table A can be related to:

3 / 50

What is a database index analogous to?

4 / 50

 In a relational database, what is a single, unordered set of attributes within a table called?

5 / 50

A database object that automatically executes a set of SQL statements in response to a specific event on a table is a:

6 / 50

Which command would you use to change the structure of an existing table (e.g., add a new column)?

7 / 50

What is the key difference between the DELETE and TRUNCATE commands?

8 / 50

Which type of JOIN returns all rows from both tables, combining them where a match exists and filling with NULLs where it does not?

9 / 50

What does the CHECK constraint do?

10 / 50

The property that ensures once a transaction is committed, it will persist even in the event of a system failure, is known as:

11 / 50

The overall design of a database, describing tables, columns, relationships, and keys, is called the:

12 / 50

Which of the following best describes a database View?

13 / 50

 An artificial key created to serve as the primary key when no natural simple key exists is known as a:

14 / 50

The process of intentionally introducing redundancy into a table to improve read performance is called:

15 / 50

A value that represents "unknown" or "not applicable" in a database is represented by:

16 / 50

A scenario where two transactions are waiting for each other to release locks is called a:

17 / 50

Which SQL clause is used to filter records based on a specified condition?

18 / 50

What is the main risk of having low data integrity in a database?

19 / 50

Which SQL command is used to retrieve data from a database?

20 / 50

Which SQL command is used to add new rows of data to a table?

21 / 50

Which of the following is the correct order of SQL statement execution for a SELECT query with GROUP BY and HAVING?

22 / 50

A key in one table that references the primary key of another table to link the two is called a:

23 / 50

What is the main goal of database normalization?

24 / 50

Which SQL command is used to permanently remove a record from a table?

25 / 50

Which of the following is a DML (Data Manipulation Language) command?

26 / 50

 The UNIQUE constraint ensures that:

27 / 50

 In a database, a 'record' is a collection of:

28 / 50

Which normal form requires the elimination of repeating groups and ensures atomicity of values?

29 / 50

Referential integrity is violated if:

30 / 50

The NOT NULL constraint is used to:

31 / 50

Which ACID property ensures that concurrent transactions do not interfere with each other?

32 / 50

The property that ensures a database transaction is treated as a single, indivisible unit is known as

33 / 50

Which of the following is NOT a standard relationship type in a relational database?

34 / 50

What is the purpose of the ORDER BY clause?

35 / 50

The HAVING clause in SQL is typically used in conjunction with which other clause?

36 / 50

 In 2nd Normal Form (2NF), a table must be in 1NF and all non-key attributes must be:

37 / 50

A primary key that consists of two or more columns is called a:

38 / 50

What is the primary purpose of a Primary Key?

39 / 50

Which command is a Data Definition Language (DDL) command?

40 / 50

What does SQL stand for?

41 / 50

What does the SQL DISTINCT keyword do?

42 / 50

To resolve a many-to-many relationship between two tables (Students and Courses), the best practice is to

43 / 50

Which type of join returns all records from the left table and the matched records from the right table?

44 / 50

What is the role of a database catalog or data dictionary?

45 / 50

Which SQL operator is used to combine the result sets of two or more SELECT statements?

46 / 50

What does DBMS stand for?

47 / 50

A precompiled collection of SQL statements stored in the database is called a:

48 / 50

The 'C' in ACID properties stands for:

49 / 50

Which of the following best describes a candidate key?

50 / 50

 In the context of normalization, a transitive dependency exists when a non-key attribute depends on:

Your score is

The average score is 0%

0%

Scroll to Top