We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Quiz 02 of CS403 (Database Management Systems) has been opened on 26th June, 2013 and last date to attempt quiz will be 27th June, 2013.

Instructions:

  • You can start attempting the quiz at any time but within given date(s) by clicking the quick link for Quiz on VU-LMS as it will become enabled within the mentioned dates.  As soon as the time will be over, it will automatically be disabled and will not be available to attempt it.
  • Quiz will be based on Multiple Choice Questions (MCQs). Covering video Lectures 23 to 29.  
  • Each question has a fixed time limit of 90 seconds. So you have to save your answer before 90 seconds. But due to unpredictable/unstable Internet speed, it is strongly recommended that you save your answer within 60 seconds to avoid any inconvenience. While attempting a question, keep an eye on the remaining time.
  • Attempting quiz is unidirectional. Once you have moved forward to the next question, you will not be able to go back to the previous one. Therefore before moving to the next question, make sure that you have selected the best option and saved your answer.
  • DO NOT press back button of your browser or refresh the page while attempting a question. Otherwise you will lose the chance of attempting the current question and a new question will be loaded.
  • DO NOT try to disable “Java Script” in your browser; otherwise you will not be able to attempt the quiz.
  • If for any reason, you lose access to Internet (like power failure or disconnection of Internet); you will be able to attempt the quiz again but from the next question where you left in last attempt. But remember that you have to complete the quiz before expiry of the deadline.
  • If you failed to attempt the quiz in given time then no re-take or off line quiz will be held as compensation/replacement.

+ Click Here To Join also Our facebook study Group.

..How to Join Subject Study Groups & Get Helping Material?..


See Your Saved Posts Timeline

Views: 1864

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

Replies to This Discussion

Within a table, each primary key value __.
Select correct option:

is a minimal super key
is always the first field in each table
must be numeric
must be unique

 

Foreign Key is
Select correct option:

A field in a table that matches a key field in another table
A field in a table that contains data that is also contained elsewhere in another table
A field in a table that has the same name as a key field in another table

 

 

 

A________is used to maintain a connection between the users of the database system.
Select correct option:

mail server
file server
client-server
none of the given

 

 

Data about data is database
Select correct option:

True                             
False

Partially True
None of the Above

 

Which one of the following is NOT a characteristic of Meta data?
Select correct option:

Data about data
Describes a data dictionary
Self-describing
Includes user data

                  

 

The most widely used conceptual model is the __ model.
Select correct option:

implementation
ER
Object Oriented
internal

 

Which model operates at the lowest level of abstraction?
Select correct option:

conceptual
internal
external
physical


Which of the following describes a database system?
Select correct option:

A collection of stored operational data used by the application system of some particular enterprise
A shared collection of logically related data (and a description of this data) designed to meet the information needs of an organization
A collection of stored data organized in such a way that all user requirements are satisfied by the database. In general there is only one copy of each item of data although there may be controlled repetition of some data.
All of the above

 

Data inconsistency leads to a number of problems such as
Select correct option:

loss of information and incorrect results
less secure data
redundant data
Slow database development

 

Which of the following constraints enforces entity integrity?
Select correct option:

PRIMARY KEY
FOREIGN KEY
CHECK
NOT NULL

 

A relational database system is based on the concept(s) of:
Select correct option:

A network of data records
Nested tables
Tables, rows and columns
A tree-like structure of data


Which of the following is NOT a component of a DFD?
Select correct option:

Dataflow
Datastore
External entities
Relationship between external entities

 


A candidate key that does not have a null value and is selected to uniquely identify all other attribute values in any given row is called a __.
Select correct option:

superkey
candidate key
primary key
secondary key

 

Which of the following is correct regarding Dataflow diagram?
Select correct option:

Single DFD is required to represent a system
Created at increasing levels of detail
The dataflow must be bidirectional
Used to represent the relationships among the external entities

 

Data about data is metadata
Select correct option:

True
False


Data Redundancy Means
Select correct option:

Security of data
Duplication of data
Management of data
Recovery of data

 

 

 

Controlling redundancy in a database management system DOES NOT help to 
Select correct option: 

avoid duplication 
avoid unnecessary wastage of storage space 
avoid unauthorized access to data 
avoid inconsistency among data

 

In an ERD, the focus is on the __ and the relationships between them.  
Select correct option: 

attributes 
entities 
keys 
indexes

 

User rights information is stored in 
Select correct option: 

Physical database 
Catalog 
Logical database 
Buffer

 

Which of the following might be represented with a multivalued attribute? 
Select correct option: 

person's name 

class location              (Not Confirm) 
bank account balance 
book title

 

A relational database is
Select correct option:

one that consists of two or more tables
a database that is able to process tables, queries, forms, reports and macros
one that consists of two or more tables that are joined in some way
the same as a flat file database

Which of the following is INCORRECT statement concerning the database design process?
Select correct option:

During requirements collection and analysis phase, one can gather the data requirements of database users.
By referring to a high level data model, it is possible to understand the data requirements of the users, entity types, relationships and constraints.
Transformation of the high level data model into the implementation data model is called logical design or data model mapping.
During the logical design phase of internal storage structures, access paths and file organization for the database files are specified.


Which feature of database provides conversion from inconsistent state of DB to a consistent state ensuring minimum data loss?
Select correct option:

User accessible catalog
Data processing
Recovery service
Authorization service


Which levels are mostly used for Detailed DFD?
Select correct option:

Level-0, Level-1
Level-1, Level-2
Level-2, Level-3
Level-3, Level-4

A primary key is an attribute (or set of attributes) that has been chosen for an entity, whose values are used to uniquely identify a particular instance of an entity. True or false?
Select correct option:

True
False
Partially True
None of the given


Who is responsible for authorizing access to the database, for coordinating and monitoring its use?
Select correct option:

Database Designer
Database Administrator
End User
Application Programmer


Incase of Context-level Diagram, the system is represented by
Select correct option:

One process atleast
Two processes atleast
One process only
Any number of processes

The Entity Relation Model models
Select correct option:

Entities, Relationships and Processes
Entities and Relationships
Relationships
Entities

An instance is
Select correct option:

A particular occurrence of an entity

A special type of relation

An attribute of an entity
Any particular entity

 

Software packages designed to store and manage databases

Database
DBMS
Data model
Data

 

A table can be logically connected to another table by defining a ____.

hyperlink         
common attribute
primary key
superkey

 

A collection of concepts that can be used to describe the structure of a database

Database
DBMS
Data model
Data

 

The main software package that supports a database management approach is called
Select correct option:

Data Dictionary
Report Generator
Database Management System
Distributed database

 

 

The ER model is meant to
select correct option:

replace relational design
be close to a user’s perception of the data
enable low level descriptions of data
enable detailed descriptions of data query processing

 

 

A description on a particular collection of data using the given data model
Select correct option:

Database
Relation
Schema
None

 

Which of the following functions are NOT performed by a database administrator?
Select correct option:

Planning, designing and implementing database systems
Establishing standards and procedures for database systems
Communicating with database users
Allocation of storage locations and data structures

 Level of data at which entities or objects exist in reality is called

Real world data
Schema for real world data
Meta data
Data about data

An entity type is

defined when the database is actually constructed
a specific type such as an integer, text, date, logical etc
a coherent set of similar objects that we want to store data on (e.g. STUDENT, COURSE, CAR)
defined by the database designer

 

In a three-level DBMS architecture, the ______ level interacts directly with the users.

Select correct option:

external

conceptual

internal

physical

 

 

Revoke is a __________ Statement

Data Definition

Control Access

Data Manipulation

Data Description 

 

Which of the following is not true regarding clustering ?

It increases the efficiency since related records are placed close to each other.

Clustering makes records, difficult to access

Suitable to relatively static situations

It is a process, which means to place record from different tables to places in adjacent physical locations.

 

DML does not used to :

Select correct option:

add new rows to tables

retrieve rows from table

modify the rows of tables

alter a table definition

 

The ________ operator allows to use wild cards in the where clause of an SQL statement.

Select correct option:

IN

FROM

LIKE 

None of the above.

 

Identify the basic part(s) of a SELECT statement?

SELECT

FROM

Both SELECT and FROM

DISTINCT

 

What happens if the WHERE clause is omitted from a DELETE statement?

Select correct option:

            All records from the table are deleted

No record from the table will be deleted

First record of the table will be deleted

The statement will not be executed and will give a syntax error

 

Truncate is an alternative of Delete command.

Select correct option:

True

False

 

Which of the following function falls in the category of Aggregate functions. 
Select correct option: 

SUM 
MIN 
MAX 
All of the above

 

Quiz No. 03 ---Lecture 25 to Lecture 32

Which of the following is one of the purposes of using DDL commands?

inserting records into databases
updating records into databases
manipulating databases
creating and destroying databases

 

Which of the following is incorrect about alter table statement?

Cannot be used to modify type or size of an existing column 
Can be used to delete a column
Can not be used to create a new table
Can be used to add column in the existing table

 

Which of the following is used to retrieve and insert information from database?

DML
DDL
DCL
Both DML and DDL

 

Which of the following is used with INSERT command to insert values in a DB table?

ONTO
INTO
UPTO
WITH

 

In SQL, which command is used to modify the rows of tables.

Update
Insert 
Browse 
Append

 

Columns used to uniquely identify individual rows of a given table, may be specified to be not NOT NULL.

True (not sure)
False

 

Objective of an order by clause is to display or arrange output of a select statement in a particular order.

True 
False

 

Which of the following is not a part of an INSERT statement?

INTO
VALUE
INSERT
Modify

 

Which of the following is not an aggregate function 
Select correct option:

AVG
SUM
UPPER 
MAX

 

UPDATE command belongs to which type of Classification 
Select correct option:

DML
DDL
DCL
DQL

 

GRANT belongs to which type of SQL commands classification 
Select correct option:

DML
DDL
DCL
DQL


Which of the following SQL statements used to control access to the data and to the database? 
Select correct option:

GRANT
REVOKE
Both GRANT and REVOKE
SELECT

Which of the following is the correct syntax for adding a new column into an existing table. 
Select correct option:

ALTER TABLE table_name { ALTER [COLUMN] column type [(size)] [DEFAULT default] }
ALTER TABLE table_name { ADD [COLUMN] column type [(size)] [DEFAULT default] }
Both I and II.
None of the above.

 

The _________ function helps reduce the need to use multiple OR conditions.

Like 
IN
AND
Between

 

In SQL, which command is used to delete rows from table.

Delete 
Remove 
Truncate 
Both I and II

 

Which of the following clauses allows sorting the records in result set?

Where 
Order by 
From
Having

 

In SQL queries, while creating tables or relations in database, key columns may be specified by

Bull
Not Null
Data Type 
None of the above

 

_______ Operators are the ones that require two operands on both sides of the operator.

Double 
Two Sided 
Binary 
None of the given options

 

What happened if the Where clause is omitted from a Delete Statement?

All record from the table are deleted 
No record from the tables will be deleted 
First record of the tables will be deleted 
The statement will not be executed and will give a syntax error

 

Grant belong to which types of SQL command classification

DML
DDL
DCL
DQL

 

Update command belong to which type of classification

DML
DDL
DCL
DQL

 

 

Which of the following is a String function in SQL

Count 
LEN
SQRT
SIN

 

GRANT is a _____________ command.

DDL
DML
DCL
None of the above

 

 

Consider a table named “emp” having fields Empname, EmpID, Age, salary. Which of the following is true if the following SQL statement tries to execute?

SELECT * FROM emp

WHERE Empname=’ALI’

ORDERBY Age;

The statement has a syntax error
The statement displays the entire fields from emp in which the Empname is ALI in any order
The statement displays the entire fields from emp in which the Empname is ALI in descending order of their age
The statement displays the entire fields from emp in which the Empname is ALI in ascending order of their age

 

Truncate command response time is ____ as compared to Delete command.
Select correct option:

Poor
Same
Better
worst

 

Which of the following syntax of the functions in SQL is used to add column values?
Select correct option:

COUNT(*)
COUNT(expression)
MAX(expression)
SUM(expression) Not Sure

 

Which of the following is used to filter rows according to some condition(s)?
Select correct option:

SELECT
FROM
WHERE
UPDATE

 

Which of the following is a correct way of selecting all the columns from a table called PERSONS?
Select correct option:

SELECT FROM * Persons
SELECT * FROM Persons
SELECT * WHERE Persons
SELECT WHERE * Persons

 

Which of the following statements creates a database named IMDB.
Select correct option:

CREATE DATABASE IMDB;
CREATE DB IMDB;
ADD DATABASE named IMDB;
CREATE IMDB DATABASE;

 

 

CREATE TABLE and CREATE index belongs to which type of SQL commands
Select correct option:

DML
DDL not sure
DCL
DQL

 

 

The ______________ condition allows to retrieve values within a specific range.

            AND

            LIKE

BETWEEN

            FROM

 

 

SQL is used for: 
Select correct option:

Creating, managing and deleting tables and manage the relationships among the stored date. 
Generating queries, organizing, managing and retrieving data stored in a database. 
Maintaining data integrity and coordinate data sharing. 
All of the above

 

Which language is used to permit or prohibit access to a table? 
Select correct option:

DCL 
DDL 
DML 
All of the above.

 

Data Manipulation Language (DML) is the set of commands used to maintain and query a database including updating, inserting, modifying and retrieving data. 
Select correct option:

True 
False

 

Which of the following is NOT a DDL command? 
Select correct option:

Create DB 
Create table 
Delete 
Drop

 

SQL stands for ______________.
I - Structured Query Language
II – Standard Query Language
lll- Status Query Language
Select correct option:

Only I
Only II
Both I and II
Only lll

 

Making a change to the conceptual schema of a database but not affecting the existing
external schemas is an example of

Physical data independence.
Concurrency control.
Logical data independence.
Functional dependency

 

SQL data types do not have support for storing multi-media objects directly.
Select correct option:

True
False

 

Query Analyzer is used to practice SQL in MS-Access and MS-SQL Server.
Select correct option:

True
False

 

 

Identify the language which is used to specify database schema.

DCL
DML
DDL
None of the above

 

 

Value of a function in SQL is always determined by the input parameters

True
False

 

 

Which of the following clauses allows to sort the records in result set?

Where

Order by

From

Having

 

 

Which of the following cannot be included into CREATE TABLE statement?

Select correct option:

Data types

Constraints

Attributes

Cardinalities

 

  

Which of the following describes the job of a database administrator?

Select correct option:

Development, implementation operation of the physical database

Creation of the system catalog

Monitoring and controlling database security and authorization: Setting up controls to ensure the quality and integrity of data

All of the above

  

 

What does the abbreviation DBMS stand for?

Database Manipulation Software.

Data Borrowing and Movement Software

Digital Base Mapping System.

Database Management System.

 


The ____________ keyword is used in SELECT statement to return different values.
Select correct option:

LIKE
IN
DISTINCT
WHERE

 

DML stands for _____________.
Select correct option:

Dynamic Modeling Language
Data Manipulation Language
Data Management Language
Domain Modeling Language


Functions in SQL return a single value
Select correct option:

True
False

d; l\�8rs�`�Wormal; line-height: 20px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial;"> 

A relation is said to be in 2 NF if (i) it is in 1 NF (ii) non-key attributes dependent on key

attribute (iii) non-key attributes are independent of one another (iv) if it has a composite

key, no non-key attribute should be dependent on part of the composite key

Select correct option:

i, ii, iii

i and ii

i, ii, iv

i, iv

 

 

Attributes are (i) properties of relationship (ii) attributed to entities (iii) properties of

members of an entity set

Select correct option:

i

i and ii

i and iii

iii

 

 

In vertical partitioning if we divide a table into two vertical partitions then efficiency of

those applications will be reduced which used to.

Select correct option:

Access data from both the vertical partitions.

Access data from first vertical partition.

Access data from second vertical partition

None of the above.

The entity relationship diagram is used to graphically represent the __ database model. 
Select correct option: 

condensed 
physical 
logical 
conceptual

 

CS403_Online_Quiz_02_Spring_2013

Attachments:

Within a table, each primary key value __.
Select correct option:

is a minimal super key
is always the first field in each table
must be numeric
must be unique

 

Foreign Key is
Select correct option:

A field in a table that matches a key field in another table
A field in a table that contains data that is also contained elsewhere in another table
A field in a table that has the same name as a key field in another table

 

 

 

A________is used to maintain a connection between the users of the database system.
Select correct option:

mail server
file server
client-server
none of the given

 

 

Data about data is database
Select correct option:

True                             
False

Partially True
None of the Above

 

Which one of the following is NOT a characteristic of Meta data?
Select correct option:

Data about data
Describes a data dictionary
Self-describing
Includes user data

                  

 

The most widely used conceptual model is the __ model.
Select correct option:

implementation
ER
Object Oriented
internal

 

Which model operates at the lowest level of abstraction?
Select correct option:

conceptual
internal
external
physical


Which of the following describes a database system?
Select correct option:

A collection of stored operational data used by the application system of some particular enterprise
A shared collection of logically related data (and a description of this data) designed to meet the information needs of an organization
A collection of stored data organized in such a way that all user requirements are satisfied by the database. In general there is only one copy of each item of data although there may be controlled repetition of some data.
All of the above

 

Data inconsistency leads to a number of problems such as
Select correct option:

loss of information and incorrect results
less secure data
redundant data
Slow database development

 

Which of the following constraints enforces entity integrity?
Select correct option:

PRIMARY KEY
FOREIGN KEY
CHECK
NOT NULL

 

A relational database system is based on the concept(s) of:
Select correct option:

A network of data records
Nested tables
Tables, rows and columns
A tree-like structure of data


Which of the following is NOT a component of a DFD?
Select correct option:

Dataflow
Datastore
External entities
Relationship between external entities

 


A candidate key that does not have a null value and is selected to uniquely identify all other attribute values in any given row is called a __.
Select correct option:

superkey
candidate key
primary key
secondary key

 

Which of the following is correct regarding Dataflow diagram?
Select correct option:

Single DFD is required to represent a system
Created at increasing levels of detail
The dataflow must be bidirectional
Used to represent the relationships among the external entities

 

Data about data is metadata
Select correct option:

True
False


Data Redundancy Means
Select correct option:

Security of data
Duplication of data
Management of data
Recovery of data

 

 

 

Controlling redundancy in a database management system DOES NOT help to 
Select correct option: 

avoid duplication 
avoid unnecessary wastage of storage space 
avoid unauthorized access to data 
avoid inconsistency among data

 

In an ERD, the focus is on the __ and the relationships between them.  
Select correct option: 

attributes 
entities 
keys 
indexes

 

User rights information is stored in 
Select correct option: 

Physical database 
Catalog 
Logical database 
Buffer

 

Which of the following might be represented with a multivalued attribute? 
Select correct option: 

person's name 

class location              (Not Confirm) 
bank account balance 
book title

 

A relational database is
Select correct option:

one that consists of two or more tables
a database that is able to process tables, queries, forms, reports and macros
one that consists of two or more tables that are joined in some way
the same as a flat file database

Which of the following is INCORRECT statement concerning the database design process?
Select correct option:

During requirements collection and analysis phase, one can gather the data requirements of database users.
By referring to a high level data model, it is possible to understand the data requirements of the users, entity types, relationships and constraints.
Transformation of the high level data model into the implementation data model is called logical design or data model mapping.
During the logical design phase of internal storage structures, access paths and file organization for the database files are specified.


Which feature of database provides conversion from inconsistent state of DB to a consistent state ensuring minimum data loss?
Select correct option:

User accessible catalog
Data processing
Recovery service
Authorization service


Which levels are mostly used for Detailed DFD?
Select correct option:

Level-0, Level-1
Level-1, Level-2
Level-2, Level-3
Level-3, Level-4

A primary key is an attribute (or set of attributes) that has been chosen for an entity, whose values are used to uniquely identify a particular instance of an entity. True or false?
Select correct option:

True
False
Partially True
None of the given


Who is responsible for authorizing access to the database, for coordinating and monitoring its use?
Select correct option:

Database Designer
Database Administrator
End User
Application Programmer


Incase of Context-level Diagram, the system is represented by
Select correct option:

One process atleast
Two processes atleast
One process only
Any number of processes

The Entity Relation Model models
Select correct option:

Entities, Relationships and Processes
Entities and Relationships
Relationships
Entities

An instance is
Select correct option:

A particular occurrence of an entity

A special type of relation

An attribute of an entity
Any particular entity

 

Software packages designed to store and manage databases

Database
DBMS
Data model
Data

 

A table can be logically connected to another table by defining a ____.

hyperlink         
common attribute
primary key
superkey

 

A collection of concepts that can be used to describe the structure of a database

Database
DBMS
Data model
Data

 

The main software package that supports a database management approach is called
Select correct option:

Data Dictionary
Report Generator
Database Management System
Distributed database

 

 

The ER model is meant to
select correct option:

replace relational design
be close to a user’s perception of the data
enable low level descriptions of data
enable detailed descriptions of data query processing

 

 

A description on a particular collection of data using the given data model
Select correct option:

Database
Relation
Schema
None

 

Which of the following functions are NOT performed by a database administrator?
Select correct option:

Planning, designing and implementing database systems
Establishing standards and procedures for database systems
Communicating with database users
Allocation of storage locations and data structures

 Level of data at which entities or objects exist in reality is called

Real world data
Schema for real world data
Meta data
Data about data

An entity type is

defined when the database is actually constructed
a specific type such as an integer, text, date, logical etc
a coherent set of similar objects that we want to store data on (e.g. STUDENT, COURSE, CAR)
defined by the database designer

 

In a three-level DBMS architecture, the ______ level interacts directly with the users.

Select correct option:

external

conceptual

internal

physical

 

 

Revoke is a __________ Statement

Data Definition

Control Access

Data Manipulation

Data Description 

 

Which of the following is not true regarding clustering ?

It increases the efficiency since related records are placed close to each other.

Clustering makes records, difficult to access

Suitable to relatively static situations

It is a process, which means to place record from different tables to places in adjacent physical locations.

 

DML does not used to :

Select correct option:

add new rows to tables

retrieve rows from table

modify the rows of tables

alter a table definition

 

The ________ operator allows to use wild cards in the where clause of an SQL statement.

Select correct option:

IN

FROM

LIKE 

None of the above.

 

Identify the basic part(s) of a SELECT statement?

SELECT

FROM

Both SELECT and FROM

DISTINCT

 

What happens if the WHERE clause is omitted from a DELETE statement?

Select correct option:

            All records from the table are deleted

No record from the table will be deleted

First record of the table will be deleted

The statement will not be executed and will give a syntax error

 

Truncate is an alternative of Delete command.

Select correct option:

True

False

 

Which of the following function falls in the category of Aggregate functions. 
Select correct option: 

SUM 
MIN 
MAX 
All of the above

 

Quiz No. 03 ---Lecture 25 to Lecture 32

Which of the following is one of the purposes of using DDL commands?

inserting records into databases
updating records into databases
manipulating databases
creating and destroying databases

 

Which of the following is incorrect about alter table statement?

Cannot be used to modify type or size of an existing column 
Can be used to delete a column
Can not be used to create a new table
Can be used to add column in the existing table

 

Which of the following is used to retrieve and insert information from database?

DML
DDL
DCL
Both DML and DDL

 

Which of the following is used with INSERT command to insert values in a DB table?

ONTO
INTO
UPTO
WITH

 

In SQL, which command is used to modify the rows of tables.

Update
Insert 
Browse 
Append

 

Columns used to uniquely identify individual rows of a given table, may be specified to be not NOT NULL.

True (not sure)
False

 

Objective of an order by clause is to display or arrange output of a select statement in a particular order.

True 
False

 

Which of the following is not a part of an INSERT statement?

INTO
VALUE
INSERT
Modify

 

Which of the following is not an aggregate function 
Select correct option:

AVG
SUM
UPPER 
MAX

 

UPDATE command belongs to which type of Classification 
Select correct option:

DML
DDL
DCL
DQL

 

GRANT belongs to which type of SQL commands classification 
Select correct option:

DML
DDL
DCL
DQL


Which of the following SQL statements used to control access to the data and to the database? 
Select correct option:

GRANT
REVOKE
Both GRANT and REVOKE
SELECT

Which of the following is the correct syntax for adding a new column into an existing table. 
Select correct option:

ALTER TABLE table_name { ALTER [COLUMN] column type [(size)] [DEFAULT default] }
ALTER TABLE table_name { ADD [COLUMN] column type [(size)] [DEFAULT default] }
Both I and II.
None of the above.

 

The _________ function helps reduce the need to use multiple OR conditions.

Like 
IN
AND
Between

 

In SQL, which command is used to delete rows from table.

Delete 
Remove 
Truncate 
Both I and II

 

Which of the following clauses allows sorting the records in result set?

Where 
Order by 
From
Having

 

In SQL queries, while creating tables or relations in database, key columns may be specified by

Bull
Not Null
Data Type 
None of the above

 

_______ Operators are the ones that require two operands on both sides of the operator.

Double 
Two Sided 
Binary 
None of the given options

 

What happened if the Where clause is omitted from a Delete Statement?

All record from the table are deleted 
No record from the tables will be deleted 
First record of the tables will be deleted 
The statement will not be executed and will give a syntax error

 

Grant belong to which types of SQL command classification

DML
DDL
DCL
DQL

 

Update command belong to which type of classification

DML
DDL
DCL
DQL

 

 

Which of the following is a String function in SQL

Count 
LEN
SQRT
SIN

 

GRANT is a _____________ command.

DDL
DML
DCL
None of the above

 

 

Consider a table named “emp” having fields Empname, EmpID, Age, salary. Which of the following is true if the following SQL statement tries to execute?

SELECT * FROM emp

WHERE Empname=’ALI’

ORDERBY Age;

The statement has a syntax error
The statement displays the entire fields from emp in which the Empname is ALI in any order
The statement displays the entire fields from emp in which the Empname is ALI in descending order of their age
The statement displays the entire fields from emp in which the Empname is ALI in ascending order of their age

 

Truncate command response time is ____ as compared to Delete command.
Select correct option:

Poor
Same
Better
worst

 

Which of the following syntax of the functions in SQL is used to add column values?
Select correct option:

COUNT(*)
COUNT(expression)
MAX(expression)
SUM(expression) Not Sure

 

Which of the following is used to filter rows according to some condition(s)?
Select correct option:

SELECT
FROM
WHERE
UPDATE

 

Which of the following is a correct way of selecting all the columns from a table called PERSONS?
Select correct option:

SELECT FROM * Persons
SELECT * FROM Persons
SELECT * WHERE Persons
SELECT WHERE * Persons

 

Which of the following statements creates a database named IMDB.
Select correct option:

CREATE DATABASE IMDB;
CREATE DB IMDB;
ADD DATABASE named IMDB;
CREATE IMDB DATABASE;

 

 

CREATE TABLE and CREATE index belongs to which type of SQL commands
Select correct option:

DML
DDL not sure
DCL
DQL

 

 

The ______________ condition allows to retrieve values within a specific range.

            AND

            LIKE

BETWEEN

            FROM

 

 

SQL is used for: 
Select correct option:

Creating, managing and deleting tables and manage the relationships among the stored date. 
Generating queries, organizing, managing and retrieving data stored in a database. 
Maintaining data integrity and coordinate data sharing. 
All of the above

 

Which language is used to permit or prohibit access to a table? 
Select correct option:

DCL 
DDL 
DML 
All of the above.

 

Data Manipulation Language (DML) is the set of commands used to maintain and query a database including updating, inserting, modifying and retrieving data. 
Select correct option:

True 
False

 

Which of the following is NOT a DDL command? 
Select correct option:

Create DB 
Create table 
Delete 
Drop

 

SQL stands for ______________.
I - Structured Query Language
II – Standard Query Language
lll- Status Query Language
Select correct option:

Only I
Only II
Both I and II
Only lll

 

Making a change to the conceptual schema of a database but not affecting the existing
external schemas is an example of

Physical data independence.
Concurrency control.
Logical data independence.
Functional dependency

 

SQL data types do not have support for storing multi-media objects directly.
Select correct option:

True
False

 

Query Analyzer is used to practice SQL in MS-Access and MS-SQL Server.
Select correct option:

True
False

 

 

Identify the language which is used to specify database schema.

DCL
DML
DDL
None of the above

 

 

Value of a function in SQL is always determined by the input parameters

True
False

 

 

Which of the following clauses allows to sort the records in result set?

Where

Order by

From

Having

 

 

Which of the following cannot be included into CREATE TABLE statement?

Select correct option:

Data types

Constraints

Attributes

Cardinalities

 

  

Which of the following describes the job of a database administrator?

Select correct option:

Development, implementation operation of the physical database

Creation of the system catalog

Monitoring and controlling database security and authorization: Setting up controls to ensure the quality and integrity of data

All of the above

  

 

What does the abbreviation DBMS stand for?

Database Manipulation Software.

Data Borrowing and Movement Software

Digital Base Mapping System.

Database Management System.

 


The ____________ keyword is used in SELECT statement to return different values.
Select correct option:

LIKE
IN
DISTINCT
WHERE

 

DML stands for _____________.
Select correct option:

Dynamic Modeling Language
Data Manipulation Language
Data Management Language
Domain Modeling Language


Functions in SQL return a single value
Select correct option:

True
False



3rd last correct answer is

DISTINCT          page213

my 2nd quiz



Correct statement for creating table in Microsoft SQL server is.
Select correct option:
    CREATE TABLE Customer (SID integer PRIMARY KEY, Last_Name varchar(30), First_Name varchar(30));    (not sure)
    CREATE TABLE Customer (SID integer, Last_Name varchar(30), First_Name varchar(30))
    CREATE Customer (SID integer, Last_Name varchar(30), First_Name varchar(30));
    All of the above

Which of the following is incorrect about alter table statement?
Select correct option:
    Cannot be used to modify type or size of an existing column
    Can be used to delete a column
    Can not be used to create a new table
    Can be used to add column in the existing table

Identify the basic part(s) of a SELECT statement?
Select correct option:
    SELECT
    FROM
    Both SELECT and FROM
    DISTINCT

SQL is used for:
Select correct option:
    Creating, managing and deleting tables and manage the relationships among the stored date.
    Generating queries, organizing, managing and retrieving data stored in a database.
    Maintaining data integrity and coordinate data sharing.
    All of the above

Which of the following is used to retrieve and insert information from database?
Select correct option:
    DML
    DDL
    DCL
    Both DML and DDL

Which of the following is used with INSERT command to insert values in a DB table?
Select correct option:
    ONTO
    INTO
    UPTO
    WITH

Which of the following is used to filter rows according to some condition(s)?
Select correct option:
    SELECT
    FROM
    WHERE
    UPDATE

We should not compromise ________ over efficiency.
Select correct option:
    Consistency
    Normalization
    Query response time
    All of the above  not sure


Which of the following prevents duplicate values to be displayed as a result of an SQL statement?
Select correct option:
    DISTINCT
    DELETE
    UPDATE
    ALTER

In SQL queries, while creating tables or relations in database, key columns may be specified by
Select correct option:
    Null
    Not Null
    Data Type
    None of the above

jo file maine pehlay share ki thi un k elawa just ye 3 MCQs aye

Correct statement for creating table in Microsoft SQL server is.

Select correct option:

            CREATE TABLE Customer (SID integer PRIMARY KEY, Last_Name varchar(30), First_Name varchar(30));       (not sure)

            CREATE TABLE Customer (SID integer, Last_Name varchar(30), First_Name varchar(30))

            CREATE Customer (SID integer, Last_Name varchar(30), First_Name varchar(30));

            All of the above

 

We should not compromise ________ over efficiency.

Select correct option:

            Consistency

            Normalization

            Query response time

            All of the above         (not sure)

 

Which of the following prevents duplicate values to be displayed as a result of an SQL statement?

Select correct option:

            DISTINCT

            DELETE

            UPDATE

            ALTER

thanks to all of you

 Sheikh Prince Welcome 

RSS

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service