WorksheetsSQL and Software Engineering Quiz
Total questions: 69
Worksheet time: 2hrs 18mins
Which language is used to manage relational databases?
HTML
SQL
CSS
XML
What does DDL stand for in SQL?
Data Derivation Language
Data Definition Language
Data Dynamic Language
Data Description Language
Which SQL command is used to remove rows from a table?
REMOVE
DELETE
ERASE
CLEAR
A primary key must be:
Null
Unique and not null
Duplicate
Optional
Which key establishes relationship between tables?
Primary key
Unique key
Foreign key
Alternate key
Which SQL clause groups rows that have the same values?
ORDER BY
GROUP BY
SORT BY
COLLECT
Which function returns the number of rows?
COUNT()
SUM()
AVG()
LENGTH()
Which keyword joins rows from multiple tables?
UNION
JOIN
CONNECT
LINK
Normalization aims to:
Increase redundancy
Remove redundancy
Add tables
Remove tables
Which normal form removes partial dependency?
1NF
2NF
3NF
BCNF
In SQL, which command removes table structure permanently?
DELETE
REMOVE
DROP
TRUNCATE
ACID properties in database ensure:
Speed
Cost
Size
Reliable transactions
Which command is used to create indexes?
MAKE INDEX
BUILD INDEX
CREATE INDEX
ADD INDEX
Which is a NoSQL database?
MySQL
PostgreSQL
MongoDB
Oracle
Which JOIN returns matching rows and non-matching rows with NULLs?
INNER JOIN
LEFT JOIN
RIGHT JOIN
FULL OUTER JOIN
The foreign key must refer to:
Unique key
Primary key in another table
Index
Any column
What is denormalization?
Normalizing data
Removing tables
Adding redundancy to improve performance
Removing redundancy
Which data type stores large text in SQL?
VARCHAR
TEXT
INT
CHAR
Which command grants privileges?
ALLOW
GRANT
PERMIT
GIVE
Which of these is a transaction control command?
COMMIT
SELECT
INSERT
CREATE
Which isolation level prevents dirty reads?
Read Uncommitted
Read Committed
Repeatable Read
Serializable
Which SQL function finds the highest value?
MIN()
COUNT()
AVG()
MAX()
Which operator is used for pattern matching?
BETWEEN
IN
LIKE
EQUALS
Which clause filters aggregated results?
WHERE
ORDER BY
GROUP BY
HAVING
Which term describes data duplication?
Consistency
Redundancy
Integrity
Isolation
Which model uses objects to represent data?
Relational model
Hierarchical model
Object-oriented model
Network model
Which database architecture is scalable and distributed?
RDBMS
Flat file
NoSQL
Hierarchical
Which index type stores sorted data?
Hash index
B-Tree
Bitmap
Skip list
Which key uniquely identifies rows in a table but is not the primary key?
Foreign key
Composite key
Candidate key
Alternate key
SQL injection is related to:
Performance tuning
Indexing
Security vulnerability
Data modeling
Which command removes all rows but keeps the structure?
DELETE
DROP
TRUNCATE
CLEAR
In ER diagrams, relationships are represented by:
Ovals
Rectangles
Diamonds
Lines
Which type of join returns rows when there is at least one match?
INNER JOIN
LEFT JOIN
RIGHT JOIN
CROSS JOIN
Which SQL constraint ensures unique values?
CHECK
NOT NULL
UNIQUE
DEFAULT
What is the default sorting order in ORDER BY?
Ascending
Descending
Random
None
Which term describes the correctness of data?
Redundancy
Integrity
Isolation
Durability
Data dictionary stores:
User passwords
Metadata about database objects
Actual data
Queries
Which statement is true about views?
They store data
They store queries, not data
They are indexes
They are keys
Which normal form removes transitive dependency?
1NF
2NF
3NF
BCNF
A composite key is made up of:
One column
Two or more columns
Indexes
Constraints
A trigger in SQL is:
Index
View
Procedure that runs automatically
Backup
What is RAID in databases?
Query language
Transaction model
Data storage technology
Normal form
SQL command to rename a table:
CHANGE TABLE
MODIFY TABLE
RENAME TABLE
ALTER TABLE
Which command rolls back a transaction?
COMMIT
ROLLBACK
END
UNDO
A star schema is used in:
OLTP
Data warehousing
ER modeling
Normalization
Deadlock occurs when:
Data is redundant
Indexes are missing
Two transactions wait for each other
Query is slow
SQL constraint to check a condition:
UNIQUE
PRIMARY KEY
CHECK
INDEX
Which stores historical data?
OLTP system
OLAP system
Normalized DB
NoSQL
Which is an in-memory database?
Oracle
MySQL
Redis
PostgreSQL
What is a cursor?
Key
Control structure for row traversal
Trigger
View
BCNF is stricter than:
1NF
2NF
3NF
4NF
Which allows duplicate values?
PRIMARY KEY
UNIQUE
FOREIGN KEY
NOT NULL
Which database uses key-value pairs?
RDBMS
NoSQL
Hierarchical
Network
Savepoint is used for:
Backups
Partial transaction rollback
Indexing
Joins
CAP theorem includes:
Count, Aggregate, Project
Consistency, Availability, Partition tolerance
Create, Alter, Protect
Cache, Apply, Purge
In ER model, attributes are shown as:
Rectangles
Ovals
Diamonds
Arrows
Temporal database handles:
Text
Time-related data
Multimedia
Big data
What does DML stand for?
Data Markup Language
Data Manipulation Language
Database Machine Language
Data Mapping Language
Which index is faster for equality search?
Hash index
B-tree
Bitmap
Cluster
Cardinality refers to:
Table size
Number of rows
Column type
Key type
Which is NOT a DDL command?
SELECT
CREATE
ALTER
DROP
A surrogate key is:
Natural attribute
System-generated key
Foreign key
Composite key
Which operator combines results with duplicates removed?
JOIN
UNION ALL
UNION
INTERSECT
Referential integrity ensures:
No duplicate keys
Valid foreign keys
Fast queries
No nulls
Clustered index:
Sorts and stores rows
Only sorts rows
Only stores rows
Is same as primary key
Which is a columnar storage database?
MySQL
MongoDB
Apache Cassandra
Redis
Log-based recovery uses:
Index files
Backup files
Transaction logs
Views
Software engineering is the application of engineering to the development of:
Hardware
Software
Networks
Databases
SDLC stands for:
Software Data Level Control
Software Development Life Cycle
System Design Level Cycle
Software Deployment Life Cycle
