100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
ITEC 1030 Week 3 QUIZ $8.00   Add to cart

Exam (elaborations)

ITEC 1030 Week 3 QUIZ

 1 view  0 purchase
  • Course
  • Institution

ITEC 1030 Week 3 QUIZ

Preview 2 out of 5  pages

  • March 23, 2022
  • 5
  • 2021/2022
  • Exam (elaborations)
  • Questions & answers
avatar-seller
ITEC 1030 Week 3 QUIZ


• Question 1
1 out of 1 points
In Java, methods must include all of the following except .
Selected
Answer:
a call to
another method
Correct
Answer:
a call to
another method
• Question 2
1 out of 1 points
All method declarations contain .
Selected
Answer:
parenthe
ses
Correct
Answer:
parenthe
ses
• Question 3
1 out of 1 points
A public static method named computeSum() is located in classA. To call
the method from within classB, use the statement .
Selected
Answer: classA.computeSum();
Correct
Answer: classA.computeSum();
• Question 4
1 out of 1 points
Which of the following method declarations is correct for a static method
named displayFacts() if the method receives an int argument?
Selected
Answer: public static void displayFacts (int data)
Correct
Answer: public static void displayFacts (int data)
• Question 5
1 out of 1 points
The method with the declaration public static int aMethod (double d)
has a method type of .
Selected
Answer: int

, Correct
Answer: int
• Question 6
1 out of 1 points
Which of the following is a correct call to a method declared as public
static void aMethod(char code)?
Selected
Answer: aMethod(‘Q’);
Correct
Answer: aMethod(‘Q’);
• Question 7
1 out of 1 points
A method is declared as public static void showResults (double d, int
i). Which of the following is a correct method call?
Selected
Answer: showResults(12.2, 67);
Correct
Answer: showResults(12.2, 67);
• Question 8
1 out of 1 points
The method with the declaration public static char procedure
(double d) has a method type of .
Selected
Answer: char

Correct
Answer: char
• Question 9
1 out of 1 points
The method public static boolean testValue (int response) returns .
Selected
Answer:
a boolean
val ue
Correct
Answer:
a boolean
val ue
• Question 10
1 out of 1 points
Which of the following could be the last legally coded line of a method
declared as public static int getVal (double sum)?
Selected
Answer:

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 RubricNurse. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $8.00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75632 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.00
  • (0)
  Add to cart