Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CSCI 2010 Quizzes 1-6 – Practice Questions and Answers

Rating
-
Sold
-
Pages
42
Grade
A+
Uploaded on
31-03-2026
Written in
2025/2026

This document contains quizzes 1 through 6 for CSCI 2010, providing practice questions and answers on programming fundamentals, data structures, algorithms, and problem-solving exercises.

Institution
CSCI
Course
CSCI

Content preview

(CSCI 2010 - Quiz 1-6: 2026 Test Preparation)




Only one constructor may be defined per class.


False


What is a method?


A member of a class that defines an operation on an object.




Page 1 3/30/2026, 4:48:56 PM

, (CSCI 2010 - Quiz 1-6: 2026 Test Preparation)




A classed called Printer has a method called printDocument. This
calls a void method in the Printer class called printPage that takes
an integer representing the page number as an argument. How
should printDocument call printPage with an argument of 4?


printPage(4);


Given a class called Rectangle with a constructor that takes two
doubles as arguments representing the dimensions, which of the
following is the correct way to invoke that constructor?


Rectangle rect = new Rectangle(8.2, 3.5);




Page 2 3/30/2026, 4:48:56 PM

, (CSCI 2010 - Quiz 1-6: 2026 Test Preparation)




Consider the following code:


Employee emp1 = new Employee();
emp1.setName("Anna Karenina");
Employee emp2 = new Employee();
emp2.setName("David Copperfield"):
emp2 = emp1;


Which of the following best describes the contents of the two
variables emp1 and emp2 after this code has executed?


emp1 refers to the object with the name Anna Karenina. emp2
refers to the same object.



Page 3 3/30/2026, 4:48:56 PM

, (CSCI 2010 - Quiz 1-6: 2026 Test Preparation)




Given the following method header:


public double computeArea(double length, double width)


Which of the following would be a legal overloaded method in
the same class?


public double computeArea(double length)


When calling a method from another method in the same class,
the form methodName() is equivalent to this.methodName().


True


Page 4 3/30/2026, 4:48:56 PM

Written for

Institution
CSCI
Course
CSCI

Document information

Uploaded on
March 31, 2026
Number of pages
42
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.99
Get access to the full document:

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


Also available in package deal

Thumbnail
Package deal
CS & CSCI 2010/1010/1300 – Comprehensive Practice Questions and Study Guides
-
16 2026
$ 84.13 More info

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.
doingqwerty Harvard University
View profile
Follow You need to be logged in order to follow users or courses
Sold
262
Member since
9 months
Number of followers
0
Documents
227
Last sold
2 weeks ago

4.5

4 reviews

5
2
4
2
3
0
2
0
1
0

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