NotesNav
NotesBEU notesSBTE notesAboutContactWhat is this?Web NotesPlay Quizzes
Search notes & PYQs...

NotesNav

Study Material

All Engineering Branches
SBTE Bihar Notes & PYQs
Bihar Engineering University Notes & PYQs
BCECE LE Notes & PYQs

Features

Study Directory
Search
Notes Categories
Explore Notes
Quizzes & MCQs

Company

About
Contact
Feedback

Legal

Privacy Policy
Disclaimer
Support us

Resources

Engineering Notes & PYQs
Notes
Academic notes
Upload notes
Explore notes
Search notes
Quizzes & Tests
University Engineering Notes
All Engineering UniversitiesSBTE Bihar CSEBihar Engineering University 1st Year all BranchBihar Engineering University CSE Cyber SecurityBihar Engineering University CSE AIMLBihar Engineering University CSEBihar Engineering University CSE IoTBihar Engineering University CSE AIBihar Engineering University CSE Data ScienceBCECE LE B.Tech
© 2026 NotesNav. All rights reserved.Made with 💖
    HomeQuizzesCSE3rd Semester
    BEU Bihar Engineering University • BTech Quizzes

    CSE 3rd Semester Quizzes, Solved PYQs & MCQs

    Unit-wise practice tests, previous year questions (PYQ), and important exam questions with solutions for CSE BTech students.

    1 Quizzes Available
    10+ Practice MCQs & PYQs
    1 Subjects Covered
    Available Semesters (CSE)
    3rd Semester (1)4th Semester (36)

    Available Subject Quizzes & Exam PYQs

    Practice chapter-wise MCQs, BEU exam PYQs, and important questions with instant solutions and explanations.

    Object Oriented Programming Using JavaMedium#java#oops

    Object Oriented Programming Using Java - BEU CSE 3rd Semester

    10 important Java OOP multiple-choice questions covering Java fundamentals, JVM, arrays, classes, objects, inheritance, interfaces, polymorphism, multithreading and JDBC.

    10 Questions•15 Mins•2 plays

    Q1.Java is an example of which type of programming language?

    ACompiled language
    BInterpreted language
    CHybrid language
    Correct
    DAssembly language

    Explanation: Java source code is compiled into bytecode, which is executed by the JVM through interpretation or JIT compilation. Therefore, Java is commonly described as a hybrid language.

    Q2.Which of the following is considered the native language of a computer?

    AAssembly language
    BMachine language
    Correct
    CJava language
    DHigh-level language

    Explanation: Machine language consists of binary instructions that a computer processor can execute directly.

    Q3.Consider the following code: class Base { public static void main(String[] args) { System.out.println("Hello"); } } public class Test extends Base {} What happens when the Test class is executed?

    ACompilation error
    BRuntime error
    CNo output
    DHello is printed
    Correct

    Explanation: Static methods can be inherited by subclasses. The main() method of Base is accessible when executing Test, so Hello is printed.

    Q4.Consider the following Java code: int[] a = {1}; void increment(int[] i) { i[i.length - 1]++; } After calling increment(a), what will be the value of a[0]?

    A1
    B2
    Correct
    C0
    DCompilation error

    Explanation: The array reference is passed by value, but it refers to the same array object. Modifying its element inside the method changes the original array.

    Q5.Consider the following statements: long longArr[]; int intArr[] = {7, 8, 9}; longArr = intArr; What will happen?

    AThe assignment is valid
    BCompilation error
    Correct
    CRuntime exception
    DAutomatic type conversion occurs

    Explanation: Java does not support direct assignment of an int array to a long array. Array types are not automatically converted even when individual primitive values can be widened.

    Q6.Consider the following Java code: interface A { void aMethod(); } class Test implements A { void aMethod() { System.out.println("Hello"); } } What will happen during compilation?

    ACompilation succeeds
    BRuntime exception
    CCompilation error due to weaker access privileges
    Correct
    DNo output

    Explanation: Interface methods are implicitly public. The implementing method must also be public. Using default access in the implementing class causes a compilation error.

    Q7.Which of the following concepts represents runtime polymorphism in Java?

    AMethod overloading
    BConstructor overloading
    CMethod overriding
    Correct
    DOperator overloading

    Explanation: Method overriding allows a subclass to redefine an inherited method. The method implementation is selected at runtime based on the actual object type.

    Q8.Which of the following is the correct way to create an object of class Box in Java?

    ABox obj = new Box();
    Correct
    BBox obj = new Box;
    Cnew Box obj;
    DBox = new obj();

    Explanation: The new keyword creates an object and invokes its constructor. The reference variable stores the reference to the newly created object.

    Q9.Which method of the Thread class is used to temporarily pause the execution of the currently executing thread?

    Astart()
    Bsleep()
    Correct
    Crun()
    Dresume()

    Explanation: Thread.sleep() pauses the currently executing thread for a specified period. It is a static method of the Thread class.

    Q10.Which of the following is a major advantage of using PreparedStatement in JDBC?

    AIt increases SQL injection risks
    BIt eliminates the need for a database
    CIt supports parameterized queries and helps prevent SQL injection
    Correct
    DIt can execute only SELECT statements

    Explanation: PreparedStatement separates SQL instructions from parameter values. Parameterized queries help prevent SQL injection and can improve query execution efficiency.

    Other Available Branches

    BCECE (1 Quizzes)

    Want to save your quiz history and track accuracy?

    Sign in to automatically track your score breakdown, view question explanations, and practice with timed test simulations.

    Go to Quiz Hub