Course Hero Logo

Feedback the correct answer is flowlayout question 41

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 84 - 90 out of 126 pages.

FeedbackThe correct answer is: FlowLayoutQuestion 41Not answeredMarked out of 1.00Flag questionQuestion textSuppose that a class definition begins:
public class QuizQuestion {public int firstNum, secondNum;...Which statements are correct?1. It is illegal to refer to QuizQuestion .firstNum and QuizQuestion .secondNum becausefirstNum and secondNum are not static.2. Whenever an object of type QuizQuestion is created, that object will contain instancevariables named firstNum and secondNum, but the instance variables have to be referred tothrough the object, not through the class.Select one:a. 1b. 2c. 1 and 2d. Neither 1, nor 2FeedbackYour answer is incorrect.The correct answer is: 1 and 2Question 42Not answeredMarked out of 1.00Flag questionQuestion textHow many items can be added into a JComboBox object?Select one:
a. 1b. 3c. 2d. No limitFeedbackThe correct answer is: No limitQuestion 43Not answeredMarked out of 1.00Flag questionQuestion textThe method ….. gets the text (or caption) of the button bttn.Select one:a. bttn.text()b. bttn.getText()c. bttn.findText()d. None of the above.FeedbackThe correct answer is: bttn.getText()Question 44Not answered
Marked out of 1.00Flag questionQuestion textObject-oriented programming allows you to derive new classes from existing classes. Thiscapability is known as:Select one:a. Encapsulationb. Abstractionc. Generalizationd. InheritanceFeedbackThe correct answer is: InheritanceQuestion 45Not answeredMarked out of 1.00Flag questionQuestion textTrue or False: A program that is written in the Java programming language must be compiledbefore it can be executed.Select one:
TrueFalseFeedbackThe correct answer is 'True'.Question 46Not answeredMarked out of 1.00Flag questionQuestion textWhich of the following are subclasses of java.awt.Component?Select one or more:a. Container classesb. Swing user interface classesc. Helper classes such as Color and Fontd. Layout managersFeedbackThe correct answers are: Container classes, Swing user interface classesQuestion 47Not answeredMarked out of 1.00
Flag questionQuestion textWhich of the following statements are true?Select one or more:a. Inner classes can make programs simple and concise.b. An inner class can be declared public or private subject to the same visibility rules applied to amember of the class.c. An inner class can be declared static. A static inner class can be accessed using the outer classname. A static inner class cannot access nonstatic members of the outer class.d. An inner class supports the work of its containing outer class and is compiled into a class namedOuterClassName$InnerClassName.class.FeedbackYour answer is incorrect.The correct answers are: Inner classes can make programs simple and concise., An inner class can bedeclared public or private subject to the same visibility rules applied to a member of the class., An innerclass can be declared static. A static inner class can be accessed using the outer class name. A staticinner class cannot access nonstatic members of the outer class., An inner class supports the work of itscontaining outer class and is compiled into a class named OuterClassName$InnerClassName.class.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 126 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Winter
Professor
N/A
Tags
Object Oriented Programming, Correct Answer, Subroutine

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture