JDBC, Java Server Pages, and MySQL Questions

Practice JDBC, Java Server Pages, and MySQL MCQs with answers and explanations. Page 2 of 2.

Category
Database
Topic
JDBC, Java Server Pages, and MySQL
Page
2 / 2
Mode
Practice

Questions

Open any question to view the answer and explanation.

Software platforms comparison (Web): JavaServer Pages (JSP) and Active Server Pages (ASP) may look syntactically similar in use, but do they rely on the same or genuinely similar underlying technology stacks on the server?
Open
View answer
Vendor comparison claim: “MySQL is just as powerful as Oracle and costs half as much.” Evaluate the accuracy of this statement for enterprise database capabilities.
Open
View answer
Terminology check: In Java, the acronym JDBC expands to “Java Database Connectivity.” Is this expansion correct?
Open
View answer
MySQL design feature: In MySQL, surrogate key columns typically use the AUTO_INCREMENT property to generate sequential identifiers. Is that statement accurate?
Open
View answer
Java Applet concept: An applet is Java bytecode sent over HTTP and then “invoked using the HTTP protocol” on the user’s computer. Is that characterization correct?
Open
View answer
Driver taxonomy: Historically, Sun/Java defined four JDBC driver types (Type 1 through Type 4). Is this historical statement correct?
Open
View answer
JVM execution model: “The Java Virtual Machine interprets Java bytecode at runtime.” Is this statement essentially correct, considering modern JIT optimizations?
Open
View answer
Server components: A Java servlet is executed on the Web server and is invoked via HTTP requests that reach the server. Is this characterization accurate?
Open
View answer
Portability claim: “Java bytecode is machine-specific code.” Evaluate this statement about Java’s compilation target.
Open
View answer
JSP authoring model: “With JavaServer Pages (JSP), all coding is done in Java and only in Java.” Assess this claim considering JSP tags, Expression Language (EL), and templating.
Open
View answer
In Java database connectivity (JDBC) terminology, is the Type 1 driver correctly described as the JDBC–ODBC bridge driver? Provide the most accurate judgment about this statement, considering typical usage and deprecation history.
Open
View answer
Web containers and servlet support: does the standalone Apache HTTP Server “not support servlets”? Evaluate the statement considering common integration with servlet containers such as Apache Tomcat.
Open
View answer
Pronunciation of “MySQL”: is saying “my See-quel” universally correct? Judge the accuracy of this claim with respect to the project’s own guidance.
Open
View answer
MySQL system databases and metadata: does MySQL keep its metadata in a database named “meta_sql”? Evaluate this claim against current and historical defaults.
Open
View answer
JDBC driver suitability for web clients: can Type 3 and Type 4 JDBC drivers be used with servlets and with applets (where applicable)? Decide whether the statement is accurate.
Open
View answer
Language compatibility and drivers: since Java and C/C++ are “close,” is a database driver unnecessary? Evaluate this statement in the context of JDBC and DBMS connectivity.
Open
View answer
JSP technology: do JavaServer Pages (JSP) enable creation of dynamic web pages using HTML mixed with Java code and tags? Provide the most accurate evaluation.
Open
View answer
Platform independence: although Java is machine-independent, are JSPs themselves not machine-independent? Assess the claim in the context of servlet containers and bytecode portability.
Open
View answer
JDBC Type 2 drivers: do they connect through the native API of the target DBMS? Decide whether the statement is correct, and consider deployment implications.
Open
View answer
Java compilation targets: are Java programs compiled into portable bytecode that runs on a Java Virtual Machine (JVM)? Evaluate this foundational statement.
Open
View answer

Practice smarter

Solve a few questions daily and revisit weak topics regularly to improve accuracy.