21. |
Which package needs to import to make database connection in java? Java માં ડેટાબેઝ કનેક્શન માટે ક્યા પેકેજ ને ઈમ્પોર્ટ કરવાની જરૂર પડે છે?
|
||||||||
Answer:
Option (c) |
22. |
Which of the following is used to call stored procedure?
સ્ટોર્ડ પ્રોસીજર કોલ કરવા માટે નીચે આપેલ માંથી કયો વિકલ્પ ઉપયોગી છે?
|
||||||||
Answer:
Option (b) |
23. |
Which of the following method used to execute SELECT Query? SELECT ક્વેરી એક્ઝીક્યુટ કરવા માટે કઈ મેથડ ઉપયોગી છે?
|
||||||||
Answer:
Option (c) |
24. |
Which of the following method used to execute UPDATE() query? UPDATE ક્વેરી એક્ઝીક્યુટ કરવા માટે કઈ મેથડ ઉપયોગી છે?
|
||||||||
Answer:
Option (d) |
25. |
The performance of the application will be faster if you use PreparedStatement interface because query is compiled only once.
જો પ્રીપેર્ડ સ્ટેટમેન્ટ (PreparedStatement) ઇન્ટરફેસ નો ઉપયોગ કરવામાં આવે તો એપ્લીકેશનનું પરફોર્મન્સ ઝડપી બને છે કારણ કે ક્વેરી ફક્ત એકજ વખત કમ્પાઈલ થાય છે.
|
||||
Answer:
Option (a) |
26. |
Which of the following is an advantage of using PreparedStatement in Java? Java માં પ્રીપેર્ડ સ્ટેટમેન્ટ (PreparedStatement) નો ઉપયોગ કરવાથી નીચે આપેલ માંથી કયા ફાયદા થાય છે?
|
||||||||
Answer:
Option (b) |
27. |
Which of the following is correct driver to connect mysql database? Mysql ડેટાબેઝ કનેક્ટ કરવા માટે નો સાચો ડ્રાઈવર કયો છે?
|
||||||||
Answer:
Option (c) |
28. |
Which method of DriverManager class is used to establishment connection with database? ડેટાબેઝ સાથે કનેક્શન કરવા માટે ડ્રાઈવર મેનેજર (DriverManager) ક્લાસ ની કઈ મેથડ ઉપયોગી છે?
|
||||||||
Answer:
Option (d) |
29. |
Which driver is efficient and preferable for JDBC applications?
JDBC એપ્લીકેશન માટે કયો ડ્રાઈવર એફિસીયન્ટ અને પ્રીફ્રેબલ છે?
|
||||||||
Answer:
Option (d) |
30. |
State true or False: next() method of ResultSet is used to move to the next row of the ResultSet, making it the current row.
આપેલ વિધાન સાચું છે કે ખોટું: ResultSet ની Next() મેથડ નો ઉપયોગ ResultSet ની આગળ ની રો માં મુવ થવા અને તેને કરન્ટ રો(current row) બનાવવા માટે થાય છે.
|
||||
Answer:
Option (a) |