8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Database Technologies(DBT) Mock CCEE
Total points 17/40
Email *
[email protected]
0 of 0 points
Name *
Yogeshwari Gajanan Bulbule
Mobile No *
781040756
From which CDAC Centre are you? *
CDAC Mumbai(Kharghar)
Untitled section 2 of 5 points
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6sB… 1/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Which column attribute enables the generation of sequential numbers 1/1
automatically for identification?
AUTO_INCREMENT
UNSIGNED
IDENTIFY
DESCRIBE
When you see SQL statements to create or modify the structure of a 1/1
database, SQL is being used as :
a Data Manipulation Language(DML)
a Database Management Solution(DBMS)
a Data Definition Language(DDL)
a Data Control Language(DCL)
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6sB… 2/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Which of the following is a wrong statement? 0/1
A subquery can be nested with another subquery
We can use subquery in clauses such as SELECT, INSERT, UPDATE, DELETE
A MySQL subquery is called an inner query while the query that contains the
subquery is called an outer query
A subquery cannot return more than one value
Correct answer
A subquery cannot return more than one value
Which of the following is a wrong statement? 0/1
WITH CHECK OPTION in view is applicable only for updatable views.
Different views can be created on the same table for different users.
A view can hide the complexity that exists in multiple table join.
We cannot use WITH CHECK OPTION while creating a view.
Correct answer
We cannot use WITH CHECK OPTION while creating a view.
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6sB… 3/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Which index maintenance task discards the entire index and recreates it? 0/1
Refresh
Remake
Reorganize
Rebuild
Correct answer
Rebuild
Untitled section 3 of 5 points
Which of the following is a correct statement? 0/1
When compared to relational databases, NoSQL databases are more scalable and
provide superior performance.
Non-Relational databases require that schemas be defined before you can add
data.
NoSQL databases are built to allow the insertion of data with a predefined
schema
SQL Server is a type of NoSQL Database
Correct answer
When compared to relational databases, NoSQL databases are more scalable and
provide superior performance.
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6sB… 4/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
What is the purpose of a foreign key? 1/1
Foreign keys are the unique identifier for the table
Foreign keys refer to the primary key in another table to link the two tables
together
Foreign keys refer to a foreign key in another table to link the two tables together
Foreign keys are used to update a row in a table
A query that is execute inside of another query is called as _______ 1/1
Embedded Query
Subquery
Secondary Query
Join Query
Which operator is used to test whether or not a value lies within a specific 1/1
range?
LIKE
BETWEEN
IN
FOR
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6sB… 5/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
How can a constraint be placed on a table where a field will contain the 0/1
value "Rohan" if nothing is provided?
CREATE TABLE People(FirstName TEXT CONSTRAINT "Rohan", address TEXT);
CREATE TABLE People(FirstName TEXT DEFAULT "Rohan", address TEXT);
CREATE TABLE People(FirstName TEXT DEFAULT("Rohan"), address TEXT);
CREATE TABLE People(FirstName TEXT DEFAAULT= "Rohan", address TEXT);
Correct answer
CREATE TABLE People(FirstName TEXT DEFAULT "Rohan", address TEXT);
Untitled section 1 of 5 points
The names of columns can be altered in a query's result by using the 0/1
____________ keyword.
NAMED
RENAME
ALIAS
AS
Correct answer
AS
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6sB… 6/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Identify the wrong statement from the following: 0/1
Primary key cannot hold NULL values
Unique Key can hold NULL values
A Primary Key in a table can be referred to as a Foreign Key in another table
One or more fields can be declared as a unique key
Correct answer
Unique Key can hold NULL values
How many primary keys can we have in an MySQL table? 1/1
Only 1
Only 2
Depends on no of Columns
Depends on DBA
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6sB… 7/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
To iterate the cursor and return more documents, which one of the 0/1
following keyword in the mongo shell would we type?
Cursor
it
next
more
Correct answer
next
Which of the following is a wrong statement? 0/1
In MongoDB, field names cannot start with the dollar sign ($) character
In MongoDB, field names cannot contain dot(.) character
BSON documents cannot have more than one field with the same name
BSON is a serialization format encoding format for JSON
Correct answer
BSON documents cannot have more than one field with the same name
Untitled section 1 of 5 points
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6sB… 8/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Identify the correct statement from the following: 0/1
We cannot use where clause with DELETE comand.
TRUNCATE command delete all rows of a table in one go:
DELETE command is comparatively faster than TRUNCATE command
In case of DROP statement, we can restore the table using ROLLBACK
statement
Correct answer
TRUNCATE command delete all rows of a table in one go:
What does "OPEN cursor_name" statement would do when working with 1/1
cursors in MYSQL (cursor_name is any string value eg: OPEN
rowsToProcess)
Opens a previously declared cursor
Fetches the next row for the SELECT statement associated with the specified
cursor
Declares a cursor
Closes a cursor
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6sB… 9/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
To get all the rows that are common in both tables based on the condition 0/1
specified, use ______________.
Self Join
Inner Join
Outer Join
Full Join
Correct answer
Inner Join
In MySQL, if you would like to throw your own exceptions, you can do so by 0/1
changing SQLSTATE using _______________ keyword.
SIGNAL
SQLEXCEPTION
DECLARE
END
Correct answer
SIGNAL
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6s… 10/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Which of the following is not a NoSQL database? 0/1
SQL server
MongoDB
Cassandra
Hbase
Correct answer
SQL server
Untitled section 1 of 5 points
How are transactions handled within a database? 0/1
Failed operations are ignored, and the transaction continues with the
successful operations
if any of the operations fails, then those operations are flagged for review at the end
of the transaction.
If any of the operations fails, then the entire group of operations is deleted from the
database?
if any of the operations fails, then the entire group of operations fail.
Correct answer
if any of the operations fails, then the entire group of operations fail.
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6s… 11/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Which of the following is a wrong statement? 0/1
MySQL removes the temporary table automatically when the session ends or
the connection terminated
A temporary table is only available and accessible to the client
A temporary table can have the same name as a normal table in a database.
MySQL does not support Temporary Table
Correct answer
MySQL does not support Temporary Table
For which of the following MySQL Triggers are not supported? 1/1
delete
update
insert
views
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6s… 12/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
When you use an aggregate function without a groupby clause, how many 0/1
results do you expect?
One
Two
Zero
All the records in a table
Correct answer
One
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6s… 13/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Two tables are defined as table1 and table 2 below: 0/1
What will the output when the below query is executed ?
SELECT table1.upperbirth, table2.lowerbirth FROM table1 JOIN table2 on
table1.id=table2.id
Option 1 Option 2
Option 3 Option 4
Correct answer
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6s… 14/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Option 1
Untitled section 2 of 5 points
Which code returns the only column pgdac, pgdbda and pgdesd from the 0/1
cdac table?
SELECT pgdac, pgdbda, pgdesd FROM cdac;
SELECT pgdacpgdbdapgdesd FROM cdac;
SELECT * from cdacpgdac, pgdbda,pgdesd;
SELECT *, pgdac, pgdbda, pgdesd FROM cdac;
Correct answer
SELECT pgdac, pgdbda, pgdesd FROM cdac;
Identify the correct statement from the following: 0/1
LIKE clause can work with only one operator %
LIKE clause cannot work with operator _
LIKE clause can work with two operators % and _
LIKE clause can work with operators % and ?
Correct answer
LIKE clause can work with two operators % and _
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6s… 15/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Which of the these tasks can you accomplish using SQL as a DML? 1/1
Inserting a record into the table
Deleting the database
Allowing a new user access to read data from a table
Removing a column from a table
What is the difference between a PRIMARY KEY and a UNIQUE KEY? 0/1
Primary key can store null value, where as a unique key cannot store null value
Primary key has unique and not null value, where as a unique key has unique values
Primary key cannot be a date variable whereas unique key can be
Primary key has unique values whereas a unique key has unique and not null
value
Correct answer
Primary key has unique and not null value, where as a unique key has unique values
Which of the below is not a valid TCL command? 1/1
SAVEPOINT
COMMIT
ROLLBACK
REVOKE
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6s… 16/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Untitled section 4 of 5 points
Which of the following is not a MySQL Storage Engine? 1/1
MyISAM
InnoDB
CSV
FEDERAL
What is the latest SQL server version? 1/1
SQL Server 2021
SQL Server 2020
SQL Server 2022
SQL Server 2019
Which of the following is a wrong statement? 0/1
MySQL cursor is by default asensitive
An insensitive cursor performs faster than an asensitive cursor
MySQL cursor is read-only
MySQL cursor is non-scrollable
Correct answer
An insensitive cursor performs faster than an asensitive cursor
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6s… 17/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
What is a complex view? 1/1
A view that is created from only one table
A view that is created from more than one table
A view that does not contain groups of data
A view that is used to update the data in the tables
Which of the following is the correct IF statement syntax? 1/1
IF boolean_expression { statement_block} FI
IF boolean_expression START { statement_block} END
IF boolean_expression BEGIN{ statement_block} END
IF boolean_expression START { statement_block} FI
Untitled section 3 of 5 points
The standard user and application program and statement interface(API) 1/1
of a relational database is the
Structured Query Language
Sequential Query Language
Relational Query Language
Standard Query Language
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6s… 18/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
Which of the following function returns the current date and time? 1/1
CURRENT_TIMESTAMP
TIMESTAMP
CURDATE
CURTS
Which of the following command is used to insert data into collection in 1/1
MongoDB?
db.COLLECTION_NAME.update(document)
db.COLLECTION_NAME.insert(document)
db.COLLECTION_NAME.create(document)
db.COLLECTION_NAME.insertOne(document)
Which syntax is followed by MySQL for stored routines? 0/1
SQL:2000
SQL:2003
SQL:2005
None of the above
Correct answer
SQL:2003
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6s… 19/20
8/24/22, 11:29 PM Database Technologies(DBT) Mock CCEE
The ___command can be used to show the metadata regarding the table 0/1
created.
SHOW
EXPLAIN
FIND
DESC
Correct answer
DESC
This content is neither created nor endorsed by Google. - Terms of Service - Privacy Policy
Forms
https://docs.google.com/forms/d/e/1FAIpQLSeRptBpd6vOwIiuPwRnD2Tx9_FIIjPLwS3hLDj6lKMDVV7UWQ/viewscore?viewscore=AE0zAgDfBO6s… 20/20