Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Java is a compiled language and the compiler produces an executable A true B false 2)What operator is used to create object from class

1) Java is a compiled language and the compiler produces an executable

A true

B false

2)What operator is used to create object from class definitions(templates)?

A create

B new

C construct

D instantiate

3) By convention, all class names

A Use camel notation

B Are in all lowercase letters

C Start with an uppercase letter

D Are in all caps

4) Which method is used to "build" an object?

A set( )

B class( )

C constructor method

D mutate( )

5) The name of the your source code file must:

A Be exactly the same as the public class in the file

B Must be short

C Must start with a lowercase letter

D Must start with an uppercase letter

6)You can only create one instance of a class.

A true

B false

7)A reference variable will hold an

A Object

B Address

C Set of fields

D Variable

8) If your method is reading input from one input stream only, how many Scanner objects are needed?

A One object for each data item you are reading

B Two, one to read ints, and one to read doubles

C Only one

D As many as the number of data items your project needed

9) What parameter do you send to the constructor of the Scanner class to indicate you will use keyboard input?

A keyboard

B System

C system.in

D System.in

10) What Java operator allows you to access public methods?

A set operator

B get operator

C new operator

D dot operator

11)What is the purpose of the toString( ) method?

A To print an object

B To change the values of the fields

C To return an object

D To return a textual representation of the state of an object

12) A Java symbolic constant must be assigned a value when it is declared.

A true

B false

13) Both fields and local variables can be declared as final.

A true

B false

14)What built in class is used to mange sequences of characters?

A string

B Character

C String

D Buffer

15)What built in class is used to manipulate and change sequences of characters?

A String

B Character

C StringBuilder

D string

16)Where do you type javadoc comments?

A Inside each method

B At the top of the class definition file

C Above each method heading

D Anywhere in your source code file

17)Every object has a reference variable holding its address

A true

B false

18) Fields and variables are the same thing

A true

B false

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions