πŸ“Š JAVA
Q. Java Stream classes can be categorized into two groups:
  • (A) Byte and Character Stream Classes
  • (B) Stream and String Classes
  • (C) String and Character Stream Classes
  • (D) Buffer and Character Stream Classes
πŸ’¬ Discuss
βœ… Correct Answer: (A) Byte and Character Stream Classes
πŸ“Š JAVA
Q. Byte Stream Classes support input/output operations on _____
  • (A) 8 bit
  • (B) 16 bit
  • (C) 32 bit
  • (D) 64 bit
πŸ’¬ Discuss
βœ… Correct Answer: (A) 8 bit
πŸ“Š JAVA
Q. Character Stream Classes support input/output operations on _______ characters:
  • (A) 8 bit Unicode
  • (B) 16 bit Unicode
  • (C) 32 bit Unicode
  • (D) 64 bit Unicode
πŸ’¬ Discuss
βœ… Correct Answer: (B) 16 bit Unicode
πŸ“Š JAVA
Q. How do you position a component using FlowLayout?
  • (A) North, South, East, West
  • (B) Assign a row/column grid reference
  • (C) Pass a X/Y percentage parameter to the add method
  • (D) Do nothing, the FlowLayout will position the component
πŸ’¬ Discuss
βœ… Correct Answer: (D) Do nothing, the FlowLayout will position the component
πŸ“Š JAVA
Q. How do you change the current layout manager for a container
  • (A) Use the setLayout() method
  • (B) Once created you cannot change the current layout manager of a component
  • (C) Use the setLayoutManager() method
  • (D) Use the updateLayout() method
πŸ’¬ Discuss
βœ… Correct Answer: (A) Use the setLayout() method
πŸ“Š JAVA
Q. The AWT component used to display a single line of read-only text
  • (A) A checkbox
  • (B) A Label
  • (C) A button
  • (D) A TextField
πŸ’¬ Discuss
βœ… Correct Answer: (B) A Label
πŸ“Š JAVA
Q. The method to get the text of a Label
  • (A) getLabel()
  • (B) getText()
  • (C) getString()
  • (D) getData()
πŸ’¬ Discuss
βœ… Correct Answer: (B) getText()
πŸ“Š JAVA
Q. The AWT component used for taking input from user.
  • (A) A TextBox
  • (B) A Label
  • (C) A button
  • (D) A TextField
πŸ’¬ Discuss
βœ… Correct Answer: (D) A TextField
πŸ“Š JAVA
Q. The method to set the text of Textfield.
  • (A) setLabel()
  • (B) setString()
  • (C) setText()
  • (D) setData()
πŸ’¬ Discuss
βœ… Correct Answer: (C) setText()
πŸ“Š JAVA
Q. The class used to create a Radio button in awt is
  • (A) Checkbox
  • (B) RadioButton
  • (C) OptionButton
  • (D) CheckboxGroup
πŸ’¬ Discuss
βœ… Correct Answer: (D) CheckboxGroup