OOP-I Exam Preparation
Shared by a Veda learner · Generated with Veda AI
What you'll study, topic by topic
OOP-I Exam Preparation
Sample questions with model answers
Every question in the paper gets a full exam-length answer in the app — organised by marks, the way a topper writes it.
Write a java program to sum first n natural numbers.
Show answer outline
Use a loop to iterate from 1 to n and sum the numbers.
The full exam-length answer is in the app.
With the help of example explain use of break and continue in java.
Show answer outline
Break exits the loop; Continue skips the current iteration.
The full exam-length answer is in the app.
Write a code segment to get input from keyboard in java. Import all necessary packages.
Show answer outline
Use Scanner class from java.util package.
The full exam-length answer is in the app.
Write a java program for adding two 2x2 matrix.
Show answer outline
Use nested loops to sum corresponding elements.
The full exam-length answer is in the app.
Study it properly — free, in the app
The full Veda Bites deck, complete notes, spaced-repetition flashcards, leveled MCQs, tests and games for this kit — plus Daily Facts and the Arena, every day.