JDBC, Java Server Pages, and MySQL

Download Q&A
Q. In JDBC, which method is used to execute a SQL statement?
  • A. executeQuery()
  • B. runQuery()
  • C. executeSQL()
  • D. executeStatement()
Q. What does JDBC stand for?
  • A. Java Database Connectivity
  • B. Java Data Base Connection
  • C. Java Data Connection Bridge
  • D. Java Database Connection
Q. What does JSP stand for in the context of web development?
  • A. Java Server Pages
  • B. Java Simple Pages
  • C. Java Script Pages
  • D. Java Server Protocol
Q. What does the term 'ACID' stand for in database transactions?
  • A. Atomicity, Consistency, Isolation, Durability
  • B. Atomicity, Consistency, Integrity, Durability
  • C. Atomicity, Concurrency, Isolation, Durability
  • D. Atomicity, Consistency, Isolation, Dependability
Q. What is the main purpose of concurrency control in a DBMS?
  • A. To prevent data loss
  • B. To ensure data consistency
  • C. To speed up data retrieval
  • D. To manage user permissions
Q. What is the primary purpose of Java Server Pages (JSP)?
  • A. To create dynamic web content
  • B. To manage database connections
  • C. To handle server-side scripting
  • D. To compile Java code
Q. What is the role of Java Server Pages (JSP) in web applications?
  • A. To manage database connections
  • B. To create dynamic web content
  • C. To handle server-side scripting
  • D. To store data in a database
Q. Which of the following is a characteristic of a relational database?
  • A. Data is stored in tables
  • B. Data is stored in files
  • C. Data is stored in objects
  • D. Data is stored in arrays
Q. Which of the following is a component of DBMS architecture?
  • A. User Interface
  • B. Database Engine
  • C. Data Storage
  • D. All of the above
Q. Which of the following is a feature of MySQL?
  • A. Supports only SQL queries
  • B. Is a NoSQL database
  • C. Is open-source
  • D. Does not support transactions
Q. Which of the following is a type of indexing in databases?
  • A. B-tree indexing
  • B. C-tree indexing
  • C. D-tree indexing
  • D. E-tree indexing
Q. Which of the following is a valid JDBC URL format for MySQL?
  • A. jdbc:mysql://localhost:3306/mydb
  • B. mysql://localhost:3306/mydb
  • C. jdbc:mySQL://localhost:3306/mydb
  • D. jdbc:mysql:localhost:3306/mydb
Q. Which of the following is a valid SQL statement to retrieve all records from a table named 'users'?
  • A. SELECT * FROM users;
  • B. GET ALL FROM users;
  • C. FETCH ALL FROM users;
  • D. RETRIEVE * FROM users;
Q. Which of the following is NOT a type of normalization?
  • A. First Normal Form
  • B. Second Normal Form
  • C. Third Normal Form
  • D. Fourth Normal Form
Q. Which SQL statement is used to create an index?
  • A. CREATE INDEX
  • B. ADD INDEX
  • C. NEW INDEX
  • D. INDEX CREATE
Showing 1 to 15 of 15 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely