1. (TCO 6) Web applications can implement transactions by using methods that ___
ID: 3563998 • Letter: 1
Question
1. (TCO 6) Web applications can implement transactions by using methods that _______. (Points : 3) Â Â Â Â Â Â revert the transaction back to the original state of the database
      initiate a transaction
      commit the transaction
      validate the transaction
      All of the above
      Edit Style dialog
      Edit Field
      EditItem
      FormatItem
      FormatForm
      Process Transaction
      Begin Transaction
      Commit Transaction
      Rollback Transaction
Explanation / Answer
1.1)
"Formatter" class is used for alignment, formats of strings,numeric and data-time data. Formatter is not used in file input.
FileInputStream, FileReader, and ObjectInputStream classes are used for file input.
So, the correct answer is "Formatter".
------------------------------------------------------------------------------------------------------------
2.2)
File name = new File( "files.txt" ) cannot identify sub directories "c:ooks€9". It is
not equivalent to given statement. Remain all statements are true to given statement.
So, correct answer is "File name = new File( "files.txt" )".
-------------------------------------------------------------------------------------------------------------
3.3)
The following statement,
Scanner scanner = new Scanner( new File( "test.txt" ) );
This statement to read text from the file and pass the associated File object to a Scanner.
So, correct answer is "Opens a text file for input".
---------------------------------------------------------------------------------------------------------------
4.4)
The Java interface"Serializable" is a class implement to show that objects of the class can be input and output as a stream of bytes.
So, correct answer is "Serializable".
----------------------------------------------------------------------------------------------------------------
5.5)
"getSelectedFile()" method of JFileChooser class returns the selected file.
So, correct answer is " None of the above".
---------------------------------------------------------------------------------------------------------------
6.6)
The following three operations are supports if the user closes the window in a JFrame,
1) DISPOSE_ON_CLOSE
2)HIDE_ON_CLOSE
3) DO_NOTHING_ON_CLOSE
The operation "LOWER_ON_CLOSE" is not support the closes the window.
So, correct answer is "LOWER_ON_CLOSE".
----------------------------------------------------------------------------------------------------
7.7)The calling method "setJMenuBar" is menus are attached to windows.
So, correct answer is "setJMenuBar".
---------------------------------------------------------------------------------------------------
8.8)
The false statement is "Local variables must be declared static to be used in an anonymous inner class declaration".
------------------------------------------------------------------------------------------------------
9.9)
A JTabbedPane contains:
Thus, the given all conditions is satisfied for JTabbedPane class.
So, correct answer is "All of the above".
----------------------------------------------------------------------------------------------------
10.10)
The GridBagConstraints " RELATIVE and REMAINDER" constants can be used in place of gridX and gridY.
So, correct answer is"RELATIVE and REMAINDER".
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.