Advance Java Quiz | Multiple Choice Questions on Advance Java | Itronix Solutions
The quizzes consist of questions carefully designed to help you self-assess your comprehension of the information presented on the topics covered in the module.
Question 1: What is a primitive data type in Java?
Submitted answers: [A method to represent values ??that are so useful that they are an integral part of the language.]
Question 2: How many objects of a given class can be constructed in a program?
Submitted answers: [As many as the program requires.]
Question 3: What is a reference to an object?
Submitted answers: [Data where the object can be found.]
Question 4: Does every variable in Java need a data type?
Submitted answers: [Yes – every variable must be declared with its data type.]
Question 5: Suppose a particular data item does not use a primitive data type. What does it have to be?
Submitted answers: [An object.]
Question 6: How many alternatives are there for a single if-else statement?
Submitted answers: [2]
Question 7: In which of the following situations will most likely no counting loop be used?
Submitted answers: [Prompt the user until a correct entry has been made.]
Question 8: Which of the following is a reserved word?
Submitted answers: [boolean]
Question 9: What method of a content pane changes its background color?
Submitted answers: [setBackground (Color c)]
Question 10: Which method will the program end immediately?
Can the program put text in JTextField?
Submitted answers: [Yes, by setText()using.]
Question 11: Which is the class for swing labels?
Submitted answers: [JLabel]
Question 12: Which method is used JTextFieldto read text from one?
Submitted answers: [getText()]
Question 13: What is an expression?
Submitted answers: [An expression is a combination of literals, operators, variables, and parentheses to calculate a value.]