• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 13 pages
Exam (elaborations)

CSC 201 - Quiz #1 and answers already passed 2025

Document preview thumbnail
Preview 2 out of 13 pages

CSC 201 - Quiz #1 and answers already passed 2025 ________ translates high-level language program into machine language program. A). The operating system B). A compiler C). An assembler D). CPU - correct answers A compiler If a program compiles fine, but it produces incorrect result, then the program suffers ________. A). a compilation error B). a runtime error C). a logic error - correct answers a logic error When you invoke a method with a parameter, the value of the argument is passed to the parameter. This is referred to as _________. A). pass by value B). pass by name C). pass by reference D). method invocation - correct answers pass by value (char)('a' + Mm() * ('z' - 'a' + 1)) returns a random character __________. A). between 'b' and 'y' B). between 'a' and 'y' C). between 'b' and 'z' D). between 'a' and 'z' - correct answers between 'a' and 'z'

Content preview

CSC 201 - Quiz #1 and answers already
passed 2025
________ translates high-level language program into machine language
program.


A). The operating system
B). A compiler
C). An assembler
D). CPU - correct answers A compiler


If a program compiles fine, but it produces incorrect result, then the program
suffers ________.


A). a compilation error
B). a runtime error
C). a logic error - correct answers a logic error


When you invoke a method with a parameter, the value of the argument is
passed to the parameter. This is referred to as _________.


A). pass by value
B). pass by name
C). pass by reference
D). method invocation - correct answers pass by value

, (char)('a' + Math.random() * ('z' - 'a' + 1)) returns a random character
__________.


A). between 'b' and 'y'
B). between 'a' and 'y'
C). between 'b' and 'z'
D). between 'a' and 'z' - correct answers between 'a' and 'z'


You should fill in the blank in the following code with ______________.


public class Test {
public static void main(String[] args) {
System.out.print("The grade is " + getGrade(78.5));
System.out.print("\nThe grade is " + getGrade(59.5));
}


public static _________ getGrade(double score) {
if (score >= 90.0)
return 'A';
else if (score >= 80.0)
return 'B';
else if (score >= 70.0)
return 'C';
else if (score >= 60.0)
return 'D';
else

Document information

Uploaded on
June 15, 2025
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$18.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
flyhigher329
3.7
(61)
Sold
386
Followers
175
Items
18474
Last sold
1 month ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions