CST-8110 Lecture Notes - Lecture 1: Hard Disk Drive, Distributed Computing, Central Processing Unit

252 views6 pages
Attempt 3
Written: May 29, 2018 9:54 PM - May 29, 2018 10:02 PM
Submission View
Your quiz has been submitted successfully.
Question 1 1 / 1 point
Where does Java start executing a program once it is compiled.
at import statement(s)
Correct Response
at method public static void main (String args[])
at first line of .java file
none of above
Question 2 1 / 1 point
Which of the following will cause a compiler error in Java. Select all that apply.
a) Missing ; at end of a statement
b) Spelling main as mian
c) Omitting */ at end of block comment
d) Inserting space between System.out.print and (
e) no } at end of main function
a, b, e
Correct Response
a, b, c, e
all of above
Question 3 0.71 / 1 point
Put these parts of a Java program in order.
Correct Response __3__ {
Correct Response __5__ System.out.print ("hello world!");
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-2 of the document.
Unlock all 6 pages and 3 million more documents.

Already have an account? Log in
Incorrect Response __6__ (7) } // end of class
Correct Response __2__ public class MyProgram
Incorrect Response __7__ (6) } // end of main
Correct Response __4__ public static void main (String argv[]) {
Correct Response __1__ import java.lang.*;
Question 4 1 / 1 point
How many classes should be included in each .java file?
Correct Response
1
2
3
As many as you'd like.
Question 5 1 / 1 point
How many classes can you include in one project?
1
2
3
Correct Response
As many as you'd like.
Question 6 1 / 1 point
What must there be one and only one of in each Java project?
class
Correct Response
function main
.java file
.class file
Question 7 1 / 1 point
All variables must be given a type when they are declared.
Correct Response
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-2 of the document.
Unlock all 6 pages and 3 million more documents.

Already have an account? Log in

Document Summary

Written: may 29, 2018 9:54 pm - may 29, 2018 10:02 pm. Where does java start executing a program once it is compiled. at import statement(s) Correct response at method public static void main (string args[]) at first line of . java file none of above. Which of the following will cause a compiler error in java. Select all that apply: missing ; at end of a statement, spelling main as mian, omitting */ at end of block comment, inserting space between system. out. print and , no } at end of main function a, b, e. Correct response a, b, c, e all of above. Put these parts of a java program in order. __4__ public static void main (string argv[]) { What must there be one and only one of in each java project? class. All variables must be given a type when they are declared. Java considers the variables declared as number and number to be identical: true.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions