0% found this document useful (0 votes)
37 views4 pages

Database MCQS

The document contains a student list with names and roll numbers and then multiple choice questions about database indexing. There are 10 multiple choice questions about indexing types, syntax, and examples. The questions cover primary, secondary, and clustering indexes and creating and dropping index syntax.

Uploaded by

Hamza Basharat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views4 pages

Database MCQS

The document contains a student list with names and roll numbers and then multiple choice questions about database indexing. There are 10 multiple choice questions about indexing types, syntax, and examples. The questions cover primary, secondary, and clustering indexes and creating and dropping index syntax.

Uploaded by

Hamza Basharat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 4

Name Roll #

Arslan Bcsm-f20-432

Mian Raza Bcsm-f20-167

Hamza Basharat Bcsm-f20-438

MULTILPE CHOICE QUESTIONS

SUBJECT: DATABASE

TOPIC: INDEXING
1. Indexing is a technique which is used for.

a. store records

b. delete records

c. update records

d. search records

2. An Index is a small table having columns

a. one

b. two

c. three

d. five
3. There are _______    types of indexing

a. 1

b. 2

c. 3

d. 4

4. If the index is created on the basis of primary key then it is .

a. Primary Index

b. Clustering Index

c. Secondary Index

d. None of The above

5. Which of the following are the types of Primary Index .

a. Dense Index

b. Sparse Index

c. Both a&b

d. None of The above

6. If the index is created on the basis of Non-primary key then it is .

a. Primary Index

b. Clustering Index

c. Secondary Index

d. None of The above

7. Which one is the correct syntax for creating index.

a. create index index_name

        on table
b. create index index_name

        on database

c. create index table name

        on table

d. create index database_name

        on table

8. Which one is the correct syntax for Dropping index.

a. Drop index index_name

        on table

b. Drop index index_name

        on database

c. Drop index table name

        on table

d. Drop index database_name

        on table

9. Which one is the correct Real time Example for index.

a. collection of Shoes

b. shelves in library

c. collection of shirts

d. collection of watches

10. The dense index contain an index record for.

a. few items in a block

b. every search key value


c. one value

d. all of the above

                        

                                          ANSWERS

1. search records

2. two

3. 3

4. Primary Index

5. Both a&b

6. Clustering Index

7. create index index_name ON table

8. Drop index index_name ON table

9. shelves in library

10. every search key value

You might also like