Online Exam Quiz

questionQuestion  1 to 30

What is a flat file database?

  • File with compressed schema
  • UI test file
  • Plain text file storing data
  • SQL format data
Mark for review

What is the role of a data dictionary?

  • Stores table rows
  • Stores database schema metadata
  • Encrypts columns
  • Defines user roles
Mark for review

What does NVL() function do in SQL?

  • Returns next value
  • Converts NULL to alternate value
  • Compares strings
  • Merges rows
Mark for review

What is a surrogate key?

  • Natural identifier
  • Manually entered field
  • System-generated primary key
  • Schema version
Mark for review

What is a primary key?

  • A duplicate key
  • A unique identifier for records
  • A null field
  • A database name
Mark for review

Which statement is used to create a new table?

  • ALTER
  • INSERT
  • CREATE TABLE
  • UPDATE
Mark for review

Which SQL statement is used to update existing data?

  • SELECT
  • UPDATE
  • INSERT
  • DELETE
Mark for review

What does SQL injection test for?

  • Network bandwidth
  • Security flaws in input fields
  • Query speed
  • Image loading
Mark for review

How do you ensure data was inserted correctly?

  • UI test
  • Validate from logs
  • Query the DB with SELECT
  • Ask developer
Mark for review

What does COUNT(*) do?

  • Counts NULLs only
  • Returns total number of rows
  • Excludes duplicates
  • Counts only selected fields
Mark for review

What is the purpose of the BETWEEN clause?

  • Match exact values
  • Check range of values
  • Search text
  • Group values
Mark for review

What is the result of RIGHT JOIN without a match?

  • NULLs on left table columns
  • Full join result
  • Error
  • Only matched records
Mark for review

Which SQL statement is used to retrieve data?

  • UPDATE
  • INSERT
  • SELECT
  • DELETE
Mark for review

Which datatype is best for storing date/time values?

  • INT
  • DATETIME
  • CHAR
  • FLOAT
Mark for review

What is latency in database performance?

  • Query length
  • Delay in data access
  • Total rows
  • Index position
Mark for review

Which clause is used to limit the number of rows returned?

  • COUNT
  • HAVING
  • LIMIT
  • SUM
Mark for review

What is the result of dividing by zero in SQL?

  • Error
  • Zero
  • NULL
  • Infinity
Mark for review

What is the first normal form (1NF)?

  • Remove foreign keys
  • No repeating groups or arrays
  • Add redundant data
  • Encrypt columns
Mark for review

What is a NULL value in a database?

  • A zero
  • An empty string
  • A missing or undefined value
  • A negative number
Mark for review

What is a composite foreign key?

  • Primary and unique keys
  • Multiple columns referring to another table?s composite key
  • Single column mapping
  • Redundant key
Mark for review

What is the purpose of rollback testing?

  • Validate delete statements
  • Ensure transactions revert correctly
  • Check logs
  • Test speed
Mark for review

What is data integrity?

  • UI design accuracy
  • Network strength
  • Accuracy and consistency of data
  • Number of test cases
Mark for review

What does DML stand for?

  • Data Memory Load
  • Database Management Language
  • Data Manipulation Language
  • Data Module Layer
Mark for review

What is a view in database?

  • Stored data
  • Virtual table based on a query
  • Schema info
  • SQL user
Mark for review

Which SQL clause groups records?

  • GROUP BY
  • ORDER BY
  • HAVING
  • WHERE
Mark for review

What happens when a DELETE statement has no WHERE clause?

  • Only one row is deleted
  • No rows deleted
  • All rows are deleted
  • Syntax error
Mark for review

What is the difference between CHAR and VARCHAR?

  • CHAR is variable-length
  • VARCHAR uses more memory
  • CHAR is fixed-length, VARCHAR is variable-length
  • No difference
Mark for review

What is the default sort order in ORDER BY clause?

  • Descending
  • Random
  • Ascending
  • Alphabetical
Mark for review

Which clause restricts rows before aggregation?

  • HAVING
  • GROUP BY
  • WHERE
  • LIMIT
Mark for review

Which test ensures foreign keys maintain relationships correctly?

  • Load testing
  • Referential integrity testing
  • UI testing
  • Stress testing
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review