0% found this document useful (0 votes)
318 views7 pages

250+ TOP MCQs On SQL Data Types and Schemas and Answers

This document provides 250+ multiple choice questions and answers about SQL data types and schemas. It includes questions about various data types like date, time, timestamp, numeric types. Questions also cover default values, creating new tables with the LIKE clause, granting and revoking privileges. The questions are followed by explanations and links to related practice questions on other SQL topics.

Uploaded by

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

250+ TOP MCQs On SQL Data Types and Schemas and Answers

This document provides 250+ multiple choice questions and answers about SQL data types and schemas. It includes questions about various data types like date, time, timestamp, numeric types. Questions also cover default values, creating new tables with the LIKE clause, granting and revoking privileges. The questions are followed by explanations and links to related practice questions on other SQL topics.

Uploaded by

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

HOME Interview Questions MCQs Class Notes *LAB VIVA SEMINAR TOPICS

ONLINE TEST GATE CAT Internship ABOUT US

Any Skill Sear

Home » RDBMS Objective Questions » 250+ TOP MCQs on SQL


Data Types and Schemas and Answers

250+ TOP MCQs on SQL Data


Types and Schemas and Answers

RDBMS Questions and Answers for Freshers on “Sql Data Types and
Schemas”.

1. Which of the following is not a valid Date and Time data type?

a) date

b) time

c) datestamp

d) timestamp

Answer: c

Clarification: datestamp is not a valid Date and Time data type.


Timestamp exists but datestamp does not exist in SQL.

2. What is a timestamp?

a) A combination of date and time with date first

b) A combination of date and time with time first

c) A combination of time and place with time first

d) A combination of time and place with place first

Answer: a

Clarification: A timestamp is a combination of date and time with date


first.

Eg: ‘2002-04-25 10:20:04.43’.

3. What does p indicate in the following data type?

time(p)

a) The amount of delay that needs to be added to the time

b) The number of fractional digits for the seconds

c) The maximum number of allowed hours

d) None of the mentioned

Answer: b

Clarification: The p in the parentheses indicates the number of


fractional digits for seconds.

4. What is a default value?

a) It is a value that automatically creates a primary key

b) It is a value that cannot be altered during insertion of values in the


tuple

c) It is a value that is initially loaded into the attribute

d) None of the mentioned

Answer: c

Clarification: A default value is a value that is initially loaded into the


attribute. All the tuples have the default value in the attribute for
which it is specified in case any value is not externally specified.

5. Which of the following is an illegal data type in SQL

a) number

b) clob

c) blob

d) lint

Answer: lint

Clarification: clob and blob are called large object data types. They can
be used to store values that can go to the size of gigabytes. Number is
used to store the basic integer data type.

6. State true or false: Users can define new data types in SQL

a) True

b) False

Answer: a

Clarification: SQL allows the creation of new data types using the
“create type as final;” statement.

7. What does the following statement do?

create table temp_inst like institute

a) It creates a new relation temp_inst with all the tuples and attributes
of the institute relation

b) It creates a new relation temp_inst with the same schema as that of


the institute relation

c) It creates a new relation named temp_inst with institute as its only


attribute

d) It does not create any relations and returns an error


Answer: b

Clarification: The create table like statement creates a new relation


which has a schema identical to that of the specified relation after the
like keyword.

8. Which of the following is a privilege in SQL standard?

a) select

b) insert

c) update

d) All of the mentioned

Answer: d

Clarification: The SQL standard includes the privileges select, insert,


update and delete. This privilege set can be granted or revoked among
the users.

9. The _________ statement is used in SQL to confer authorization.

a) grant

b) confer

c) implement

d) permit

Answer: a

Clarification: The grant statement is used in SQL to confer


authorization. It has the syntax

grant on to ;

10. revoke select on takes from amit;

What does the above query perform?

a) It revokes all authorizations from amit

b) It revokes select authorization from amit

c) It revokes takes authorization from amit

d) It gives an error

Answer: b

Clarification: The query mentions the revoking of the select privilege.


So, the query revokes the select authorization from amit.
---- >> Below Are The Related Posts Of Above
Questions :::

------>>[MOST IMPORTANT]<<------

1. 250+ TOP MCQs on SQL Data Types and Schemas and


Answers
2. 250+ TOP MCQs on SQL Data definition and Answers
3. 250+ TOP MCQs on Authorizations and Answers
4. 250+ TOP MCQs on Reduction to Relational Schemas
and Answers
5. 250+ TOP MCQs on Data Types and Answers
6. 250+ TOP MCQs on SQL Basics and SQL Data
Definition and Answers
7. 250+ TOP MCQs on Data Types and Answers
8. 250+ TOP MCQs on Choosing Data Types and
Answers
9. 250+ TOP MCQs on MySQL Data Types and Answers
10. 250+ TOP MCQs on Data Types and Answers
11. 250+ TOP MCQs on Data Types and Answers
12. 250+ TOP MCQs on Date and Time Data Types and
Answers
13. 250+ TOP MCQs on Data Types and Answers
14. 250+ TOP MCQs on String Data Types and Answers
15. What is data types?
16. 250+ TOP MCQs on Spatial Data Types and Answers
17. 250+ TOP MCQs on Modifying Data and Answers
18. 250+ TOP MCQs on Python Core Data types and
Answers
19. 250+ TOP MCQs on Views and Transactions and
Answers
20. 250+ TOP MCQs on Data Types and Answers
LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Comment *

Name *

Email *

Website

Post Comment

Engineering 2022 , FAQs Interview Questions , Theme by Engineering||


Privacy Policy||
Terms and
Conditions||
ABOUT US||
Contact US||
Engineering interview questions,Mcqs,Objective Questions,Class Lecture Notes,Seminor topics,Lab
Viva Pdf PPT Doc Book free download. Most Asked Technical Basic CIVIL | Mechanical | CSE | EEE | ECE
| IT | Chemical | Medical MBBS Jobs Online Quiz Tests for Freshers Experienced .

You might also like