Which of the following lines is a properly formatted comment?
a.
// This is a comment
b.
/* This is a comment */
c.
/*
this is a comment
*/
d.
both a and b
e.
a, b and c - ANSWER-e. a, b and c
The Java compiler translates Java source code into _____________ .
a.
assembly code
b.
...
CSIT 210 Exam 1 Questions & Answers 100% Correct(GRADED A+)
Which of the following lines is a properly formatted comment?
a.
// This is a comment
b.
/* This is a comment */
c.
/*
this is a comment
*/
d.
both a and b
e.
a, b and c - ANSWER-e. a, b and c
The Java compiler translates Java source code into _____________ .
a.
assembly code
b.
C++
c.
Java bytecode
d.
an object-oriented language
e.
machine code - ANSWER-c. Java bytecode
Classes can be created from other classes by using _______________ .
a.
machine code
b.
attributes
c.
polymorphism
d.
encapsulation
e.
inheritance - ANSWER-e. inheritance Which of the following is not a valid Java identifier?
a.
thirdNumber
b.
answer_7
c.
2ndlevel
d.
highest$
e.
anExtremelyLongIdentifierIfYouAskMe - ANSWER-c. 2ndlevel
Which of the following might be included in an IDE?
a.
a compiler
b.
an editor
c.
a debugger
d.
all of the above
e.
none of the above - ANSWER-d. all of the above
Which of the following describes the act of ensuring that a program solves the intended problem in all cases?
a.
implementing the design
b.
creating a design
c.
establishing the requirements
d.
testing
e.
preliminary practice coding - ANSWER-d. testing
Write a statement that prints Hello, world to the screen.
a.
System.out.println("Hello, world")
b.
system.out.println("Hello, world");
c.
System.out.println("Hello, world");
d.
System.out.println('Hello, world'); - ANSWER-c. System.out.println("Hello, world"); What can be included in a comment?
a.
reserved words
b.
special characters
c.
user output
d.
all of the above - ANSWER-d. all of the above
Which of the following is a valid comment?
a.
int age; /* the age of the user */
b.
int age; /*// the age of the user //*/
c.
int age; */ the age of the user /*
d.
int age; //* the age of the user //* - ANSWER-a. int age; /* the age of the user */
Which of the following is not a reserved word?
a.
static
b.
this
c.
public
d.
main - ANSWER-d. main
_____________ consists of specific words and symbols to express a problem solution.
a.
An application
b.
A computer
c.
Hardware
d.
Software
e.
A programming language - ANSWER-e. A programming language
Which of the following is a valid Java identifier?
a.
Fourth_&_goal
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller papersbyjol. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.99. You're not tied to anything after your purchase.