100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CSCI 1103 Final Exam Questions and Answers| Latest Update

Rating
5.0
(1)
Sold
-
Pages
7
Grade
A+
Uploaded on
22-03-2025
Written in
2024/2025

CSCI 1103 Final Exam Questions and Answers| Latest Update

Institution
CSCI 1103
Course
CSCI 1103









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CSCI 1103
Course
CSCI 1103

Document information

Uploaded on
March 22, 2025
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CSCI 1103 Final Exam Questions and Answers|
Latest Update

A variable declared as type double can store _____________________. ✔️✔️a 64-bit value used
to represent numbers with fractional parts


A graphical interface used to develop and debug Java programs is called:
_______________________________. ✔️✔️an Integrated Development Environment (IDE)


Assume the following (int) values for a set of variables:
a = 5; b = 17; c = 27; d = -1;
Then, does the following boolean expression evaluate as true or false?

((a < 5) && (b > 10)) || ((c < 3) || (d < 0)) ✔️✔️true


If you want to compare the String variable myvar and the literal "Yes" which boolean expression
would you use? __________________________ ✔️✔️("Yes".equals(myvar))


Which of the following can be used in the boolean condition of a Java if statement?
___________________. ✔️✔️All of the above



The following are Java loop control structures: __________________________. ✔️✔️all of the
above



A do-while loop always executes _____________________. ✔️✔️one or more times


Consider the following code fragment:
for (int i=5; i<=7; ++i) { System.out.println(i); }

The code will print: ✔️✔️5

, 6
7


Consider the following code fragment:
for (int i=0; i<10; ++i) {
for (int j=0; j<10; ++j) {
System.out.println("Hello");
}
}

How many times does the code fragment print the word "Hello"? ✔️✔️100 times



Which of the following means the same as object? ✔️✔️instance



Which of the following means the same as instance variable? ✔️✔️field



Which of the following is the most likely scenario for a specific class? ✔️✔️Its data fields are
private and its methods are public.


Assume that you have created a class named Dog that contains a data field named weight and
an instance method named setWeight(). Further assume that the setWeight() method is public
and accepts a numeric parameter named pounds. Which of the following statements correctly
sets a Dog's weight within the setWeight() method? ✔️✔️weight = pounds



Which method is automatically called when a Java object is instantiated? ✔️✔️Constructor



A Java object can be a field in another Java object. ✔️✔️True



Which of the following pairs is an example of an is-a relationship? ✔️✔️Laptop, Computer

Reviews from verified buyers

Showing all reviews
5 days ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

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.
Copilot Harvard University
View profile
Follow You need to be logged in order to follow users or courses
Sold
21
Member since
1 year
Number of followers
0
Documents
4415
Last sold
1 week ago
A+ GRADES

ON THIS PAGE YOU WILL FIND VERIFIED STUDY MATERIALS TO BOOST YOUR CAREERS. (EXAMS, STUDY GUIDES, TEST BANKS, PRACTICE TEST QUESTIONS, TEXT BOOKS &amp; CLASS NOTES FOR ALL COURSES) LETS WORK SMART TO EXCEL, WELCOME!!!

4.9

8 reviews

5
7
4
1
3
0
2
0
1
0

Recently viewed by you

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

Frequently asked questions