Free Papers

COMP 328 DEVRY Course Tutorial / UOPhelp

COMP 328 Entire CourseFor more course tutorials visit
www.uophelp.comCOMP 328 All ilabs weeks 1-6 / Devry University………………………………………………………………………………………………………………………..COMP 328 Final GuideFor more course tutorials visit
www.uophelp.comSelect the best answer.
1: The .class extension on a file means that the file
a.contains Java source code.
b.contains HTML.
c.is produced by the Java compiler (javac).
d.contains a machine specific executable image.
2: Which command compiles the Java source code file Welcome.javaa.cd Welcome.java
b.javac Welcome.java
c.java Welcome.java
d.compile Welcome.java
3: A(n) ________ enables a program to read data from the user.
a.printf
b.import declaration
c.Scanner
d.main routine
4: Which of the following is a Scanner methoda.nextLine
b.nextText
c.nextWord
d.readNext
5: Every Java application is required to have
a. at least one public static method.
b.at least one data member.
c. a String variable which holds the name of the application.
d.a content pane and several GUI components.
6: Which of the following statements about creating arrays and initializing their elements is falsea. The new keyword should be used to create an array.
b. When an array is created, the number of elements must be placed in square brackets following the type of element being stored.
c. The elements of an array have unknown values just after the array has been created.
d. A for loop is an excellent way to initialize the elements of an array.
7: Assume the following class declaration.
class MyClass
{
int a;
String q;
public void firstMethod()
{
int b, ;
* 7;
+ c * a;
}
}
Mark the following statements as TRUE or FALSE.
q is a reference variable which refers to the empty string. __TRUE___ b and c are local variables. ___TRUE____ a, b, and c are primitive data types. ___FALSE____ MyClass is a Java…

Hire a custom writer who has experience.
It's time for you to submit amazing papers!


order now

Leave a Reply

Your email address will not be published. Required fields are marked *