Object Oriented Programming with Java (CS2024) CIE 1 Aug 2024 Question Paper

RV University CIE 1 exam for Object Oriented Programming with Java (CS2024), held Aug 2024, semester 3, with 12 questions. Also searched as OOP, JAVA. Last updated 2026-11-14.

Questions

  1. 1. int a = -10, b=9;a = ++a + b--;System.out.println(a);Output of the above code snippet:
  2. 2. int a=1,b=2,c=3,p=1;switch(p) {case 1: ++a;case 2: ++b; break;case 3: c--;}System.out.println(a + "," + b + "," + c);Output of the above code snippet:
  3. 3. String x = "RashireeyaVidyalaya";System.out.println(x.indexOf(x.charAt(4)));System.out.println(x.substring(1,7));Output of the above code snippet:
  4. 4. parameter in the main method is used to handle command-line arguments.
  5. 5. is a part of JVM that is used to speed up the execution time of a program.
  6. 6. int[] arr = {2,4,6,8}; int sum;for(int i=0;i<=1;i++) {sum=arr[i]+arr[3-i];System.out.println(sum + ",");}Output of the above code snippet:
  7. 7. Given a 2D array 'int[1][1] grid = new int[3][4];',is used to access a specific element in the first row and the last column.
  8. 8. To which of the following package does the class String belong to:a. java.langb. java awtc. java appletd. java.string
  9. 9. class Vehicle {void startengine() { System.out.println("Engine Starts");}void stopengine() { System.out.println("Engine Stops");}public class Main {public static void main(String[] args){Vehicle v1 = new Vehicle();//Fill in the code below to call the startengine method;}
  10. 10. Which is the correct sequence for the Java program execution process:a. Source code (.java) → Compiler → Byte code → JVM → Machine codeb. Source code (.java) → Byte code → Compiler → JVM → Machine codec. Source code (.java) → JVM → Compiler → Byte code → Machine coded. Source cod
  11. 1. Write a Java program that reads a 1D array of size 10 from the user and prints the difference between largest and smallest element in the array.
  12. 2. Write a Java program to read a string from the user and find the count of uppercase and lowercase characters present in the string. Use classes-objects-methods.

More Object Oriented Programming with Java papers

Browse more RVU papers

RVU 3rd semester previous year question papers · RVU CIE previous year question papers · RVU School of Computer Science and Engineering (SoCSE) question papers