Paper Tayyari

Lecture 16: Result Set

MCQs, short and long questions from lecture 16.Lecture 16 ki MCQs, short aur long sawal.

3 MCQs · 3 MCQs from past papers3 MCQs · 3 MCQs past papers se

Start mock testMock test shuru karein
DoneHal kiye 0/3
– correctsahi
1.
★ Final term 2012

Which of the following method is used to move the cursor to given row number?

  1. Aabsolute(int);
  2. Babsolute();
  3. CmoveToInsertRow(int);
  4. DinsertRow();

absolute(int) moves the ResultSet cursor to the given row.

2.
★ Final term 2012

previous() is a method of __________ object.

  1. AStatement
  2. BResultSet
  3. CResultSetMetaData
  4. DConnection

previous() moves the ResultSet cursor back one row.

3.
★ Final term 2012

Which of the following is NOT a method of ResulSet object?

  1. Anext()
  2. Babsolute(int)
  3. CexecuteQuery(sql)
  4. DupdateRow()

executeQuery() belongs to Statement, not ResultSet.