STUDY STACK · YEAR 1 · 2025 EDITION
Intr odu ction
to Java
Pr ogr am m ing.
Comprehensive Revision Paper · 100 Marks · 2h 30min
03 23 100 6
Sections Questions Total Marks Topics
TOPICS COVERED
Data Types & Variables · Control Structures · OOP Fundamentals · String Methods · Arrays &
Methods · Error Types & Access Modifiers
How to use this paper
– Attempt all of Section A and Section B before checking answers.
– Choose any TWO questions from Section C.
– Model answers are at the end — resist the urge to peek early.
– Mark your own work honestly. Understanding errors is part of revision.
– One paper, one student. Do not share or redistribute this file.
studystack.gumroad.com
studystack.gumroad.com · For personal use only. Do not redistribute.
, JAVA PROGRAMMING · CSE 102 / MT 103 · Revision Paper
SECTION A
Multiple Choice · 20 marks — 2 marks each
Choose the single best answer for each question.
1 Which of the following is a valid Java variable declaration? [2 marks]
A. int 1number = 5;
B. int number1 = 5;
C. int number-one = 5;
D. int number one = 5;
2 What is the output of this code? [2 marks]
int x = 10;
System.out.println(x++);
A. 9
B. 10
C. 11
D. Compile error
3 Which keyword is used to create an object in Java? [2 marks]
A. create
B. object
C. new
D. class
4 Which data type stores a single character in Java? [2 marks]
A. String
B. char
C. letter
D. byte
5 What does OOP stand for? [2 marks]
A. Object Oriented Programming
B. Operational Overriding Process
C. Output Ordered Protocol
D. Open Object Parsing
6 Which access modifier makes a member accessible only within the same class? [2 marks]
A. public
studystack.gumroad.com · For personal use only. Do not redistribute.