Deck 6: JDBC and Spring Framework

ملء الشاشة (f)
exit full mode
سؤال
Which interface in spring is responsible for Instantiating and managing the so called Spring beans?

A)Bean Factory
B)ApplicationContext
C)BeanDefenition.
D)BeanDefenition
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Beans can be created by which of the following properties?

A)Scope
B)Property
C)Class
D)It's own constructor
سؤال
Which attribute is used to specify class name of the bean?

A)name
B)id
C)class
D)constructor-args
سؤال
Which of the following method can be used to used to instantiate a method?

A)static factory method
B)default-init method
C)destroy method
D)lazy-init method
سؤال
Which attribute is used to specify static factory-method?

A)factory-method
B)default-init method
C)destroy method
D)lazy-init method
سؤال
Purpose of Static Factory Method?

A)Static method to create an object
B)Initialize bean
C)All of the mentioned
D)None of the mentioned
سؤال
Which of the following contains both date and time?

A)java.io.date
B)java.sql.date
C)java.util.date
D)java.util.datetime
سؤال
Which of the following is advantage of using JDBC connection pool?

A)slow performance
B)using more memory
C)using less memory
D)better performance
سؤال
Which of the following is advantage of using PreparedStatement in Java?

A)slow performance
B)encourages sql injection
C)prevents sql injection
D)more memory usage
سؤال
Which one of the following contains date information?

A)java.sql.timestamp
B)java.sql.time
C)java.io.time
D)java.io.timestamp
سؤال
What does setAutoCommit(false) do?

A)commits transweraction after each query
B)explicitly commits transweraction
C)does not commit transweraction automatically after each query
D)never commits transweraction
سؤال
Which of the following is used to call stored procedure?

A)statement
B)preparedstatement
C)callablestatment
D)calledstatement
سؤال
Which of the following is method of JDBC batch process?

A)setbatch()
B)deletebatch()
C)removebatch()
D)addbatch()
سؤال
Which of the following is used to rollback a JDBC trAnsweraction?

A)rollback()
B)rollforward()
C)deletetransweraction()
D)removetransweraction()
سؤال
Which driver uses ODBC driver to connect to the database?

A)jdbc-odbc bridge driver
B)native - api driver
C)network protocol driver
D)thin driver
سؤال
How many JDBC product components does the Java software provides?

A)3
B)2
C)4
D)5
سؤال
How many types of JDBC drivers are available?

A)3
B)4
C)2
D)5
سؤال
Which result set generally does not show changes to the underlying databasethat are made while it is open. The membership, order, and column values ofrows are typically fixed when the result set is created?

A)type_forward_only
B)type_scroll_insensitive
C)type_scroll_sensitive
D)all mentioned above
سؤال
Which method is used for an SQL statement that is executed frequently?

A)prepare statement
B)prepare call
C)create statement
D)none of the above
سؤال
What is used to execute parameterized query?

A)statement interface
B)preparedstatement interface
C)resultset interface
D)none of the above
سؤال
Which JDBC product components does the Java software provide?

A)the jdbc driver manager
B)the jdbc driver test suite
C)the jdbc-odbc bridge
D)all mentioned above
سؤال
JDBC stands for?

A)java database connectivity
B)java database concept
C)java database communications
D)none of the above
سؤال
Which of the following allows non repeatable read in JDBC Connection?

A)transweraction_read_uncommitted
B)transweraction_read_committed
C)transweraction_serializable
D)transweraction_repeatable_read
سؤال
Which of the following statements is false as far as different type of statements is concern in JDBC?

A)regular statement
B)prepared statement
C)callable statement
D)interim statement
سؤال
Which of the following methods are needed for loading a database driver in JDBC?

A)registerdriver() method
B)class.forname()
C)both a and b
D)getconnection()
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 6: JDBC and Spring Framework
1
Which interface in spring is responsible for Instantiating and managing the so called Spring beans?

A)Bean Factory
B)ApplicationContext
C)BeanDefenition.
D)BeanDefenition
ApplicationContext
2
Beans can be created by which of the following properties?

A)Scope
B)Property
C)Class
D)It's own constructor
It's own constructor
3
Which attribute is used to specify class name of the bean?

A)name
B)id
C)class
D)constructor-args
class
4
Which of the following method can be used to used to instantiate a method?

A)static factory method
B)default-init method
C)destroy method
D)lazy-init method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
Which attribute is used to specify static factory-method?

A)factory-method
B)default-init method
C)destroy method
D)lazy-init method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
Purpose of Static Factory Method?

A)Static method to create an object
B)Initialize bean
C)All of the mentioned
D)None of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which of the following contains both date and time?

A)java.io.date
B)java.sql.date
C)java.util.date
D)java.util.datetime
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
Which of the following is advantage of using JDBC connection pool?

A)slow performance
B)using more memory
C)using less memory
D)better performance
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which of the following is advantage of using PreparedStatement in Java?

A)slow performance
B)encourages sql injection
C)prevents sql injection
D)more memory usage
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
Which one of the following contains date information?

A)java.sql.timestamp
B)java.sql.time
C)java.io.time
D)java.io.timestamp
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
What does setAutoCommit(false) do?

A)commits transweraction after each query
B)explicitly commits transweraction
C)does not commit transweraction automatically after each query
D)never commits transweraction
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which of the following is used to call stored procedure?

A)statement
B)preparedstatement
C)callablestatment
D)calledstatement
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which of the following is method of JDBC batch process?

A)setbatch()
B)deletebatch()
C)removebatch()
D)addbatch()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which of the following is used to rollback a JDBC trAnsweraction?

A)rollback()
B)rollforward()
C)deletetransweraction()
D)removetransweraction()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
Which driver uses ODBC driver to connect to the database?

A)jdbc-odbc bridge driver
B)native - api driver
C)network protocol driver
D)thin driver
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
How many JDBC product components does the Java software provides?

A)3
B)2
C)4
D)5
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
How many types of JDBC drivers are available?

A)3
B)4
C)2
D)5
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which result set generally does not show changes to the underlying databasethat are made while it is open. The membership, order, and column values ofrows are typically fixed when the result set is created?

A)type_forward_only
B)type_scroll_insensitive
C)type_scroll_sensitive
D)all mentioned above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
Which method is used for an SQL statement that is executed frequently?

A)prepare statement
B)prepare call
C)create statement
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
What is used to execute parameterized query?

A)statement interface
B)preparedstatement interface
C)resultset interface
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which JDBC product components does the Java software provide?

A)the jdbc driver manager
B)the jdbc driver test suite
C)the jdbc-odbc bridge
D)all mentioned above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
JDBC stands for?

A)java database connectivity
B)java database concept
C)java database communications
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which of the following allows non repeatable read in JDBC Connection?

A)transweraction_read_uncommitted
B)transweraction_read_committed
C)transweraction_serializable
D)transweraction_repeatable_read
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which of the following statements is false as far as different type of statements is concern in JDBC?

A)regular statement
B)prepared statement
C)callable statement
D)interim statement
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
Which of the following methods are needed for loading a database driver in JDBC?

A)registerdriver() method
B)class.forname()
C)both a and b
D)getconnection()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.