• 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 9 pages
Exam (elaborations)

TRU COMP 1131 – Computer Programming I Final Exam 2026 tips for next weekend

Document preview thumbnail
Preview 2 out of 9 pages

TRU COMP 1131 – Computer Programming I Final Exam 2026 tips for next weekend

Content preview

TRU COMP 1131
Computer Programming I
Final Exam Sample Questions and Answers | 2026–2027
Independent study resource • 42 original questions • Java
Suggested duration: 3 hours | Total marks: 100
This practice examination is not an official Thompson Rivers University examination. The format, marks and
duration are suggested for practice.


Course topic coverage

Module Topic Practice marks

1 Introduction to Java 10

2 Data and expressions 15

3 Using classes and objects 10

4 Conditionals and loops 20

5 Writing classes and methods 20

6 Arrays 15

7 Recursion 10

Total 100




COMP 1131 | Independent practice examination 1

, A. Multiple-choice questions (20 marks)
One mark per question.
1. Which component executes Java bytecode?
A. Java compiler
B. Java Virtual Machine
C. Text editor
D. Operating system compiler
Answer: B. JVM executes compiled bytecode.

2. Which is a valid Java identifier?
A. 2number
B. class
C. studentAge
D. student-age
Answer: C. studentAge.

3. What is in Java?
A. 3.4
B. 4
C. 3
D. 2
Answer: C. Integer division discards the fraction.

4. What is 17 % 5?
A. 3
B. 2
C. 5
D. 0
Answer: B. The remainder is 2.

5. Which type stores true or false?
A. int
B. char
C. boolean
D. double
Answer: C. boolean.

6. Which keyword creates an object?
A. create
B. class
C. object
D. new
Answer: D. new.




COMP 1131 | Independent practice examination 2

Document information

Uploaded on
November 27, 2026
Number of pages
9
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$16.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.
smartzone
3.6
(628)
Sold
3481
Followers
2299
Items
14978
Last sold
2 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed 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