Java Programming : MCQ 2076-2079 (Solved)!
Welcome to notedinsights.com, your hub for enriching educational resources. In this segment, we’re excited to present a goldmine of past questions for Java Programming, an integral subject in numerous academic programs.

Why Past Questions Matter: In the pursuit of academic excellence, revisiting past questions plays a pivotal role. They serve as a compass, guiding students through the essential aspects of the subject, aiding in comprehensive preparation for examinations.
Details:
- Title: Java Programming – MCQ 2076-2079 (Solved)
- Source: Ajay Mahato
- Course: Information Communication Technology and Education (ICTE)
- Semester: 5th Semester
- University: Tribhuvan University
Navigating the intricate realm of Java Programming requires a thorough understanding of its principles. Hence, we’re thrilled to bring forth a carousel viewer, presenting a collection of past questions tailored specifically to this subject.
Through this image carousel viewer, students and educators alike can access a treasure trove of questions, meticulously curated to encompass the breadth and depth of the subject matter. Each question serves as a stepping stone toward a comprehensive grasp of Java Programming concepts.
Access the MCQ Solutions from here:
MCQ Final Paper 2079
1. Which command is used for running Java programs?
- Java
- Javae
- Javac
- Javar
2. Which is the right syntax for creating object?
- Emp e
- Emp e=new Emp()
- Emp e=new Emp
- Emp e=Emp()
3. Which keyword is used for defining constants?
- const
- final
- define
- none of the above
4. Which access specifier allows members to be accessed only from the class and child classes?
- public
- private
- protected
- Default
5. Which of the following is checked exception?
- Arithmetic
- ArrayIndexOutOfBoundException
- FileNotFoundException
- SQLException
6. Which keywork is used for deriving an interface?
- extends
- derives
- implements
- inherit
7. Which class is character stream class?
- FileReader
- FileStream
- FileInputStream
- RandomFile
8. Which of the following is not container?
- Frame
- Panel
- Dialog
- TextField
9. Which interface needs to be implemented for handling button click events?
- ActionListener
- KeyListener
- ClickListener
- All of the above
10. Which JDBC driver is also called thin driver?
- Type 1
- Type 2
- Type 3
- Type 4
MCQ Final Paper 2079(i)
1. What is constructor?
- Same named function as class name
- Input function that initializes variables
- Function that is used to construct class in java
- Garbage collector function
2. Why super keyword is used in inheritance?
- To represent the sub class and super class
- To access member of parent class
- To derive new.class
- To reference to member of derived classes
3. Why JDBC is there in java?
- To create web form
- To handle file
- To create database and execute queries
- To initialize object
4. How new class is derived from old class in java?
- class child extends parent{}
- class child implements parent{}
- class child: public parent{}
- class child as parent{}
5. Why static keyword is always there in front of main method in Java?
- Because static keyword should be used for void methods
- Because main method is public
- Because main method is built in method
- Because main method needs to be invoked before any object instantiation
6. Which of the following is not the valid loop statement in Java?
- while(true){}
- for(datatype var: array){}
- for(false){}
- do{}while(false);
7. What is late binding in Java?
- Association of methods and classes in runtime
- Association of object and methods in runtime
- Association of derived class and base class in runtime
- All of the above
8. Which of the following method is used to execute alter statement of SQL in Java program?
- createStatement()
- execute()
- executeUpdate()
- executeQuery()
9. Which of the following is not the string methods in Java?
- trim()
- String()
- indexOf()
- gets()
10. Exception class in Java is derived from
- Throwable
- JavaLangException
- RuntimeException
- CompileTimeException
MCQ Final Paper 2077
1. What stands for JRE?
- Java Runtime Environment
- JVM Runtime Environment
- Java Robust Environment
- JVM Robust Environment
2. Which statement is used for terminating loops?
- break
- terminate
- final
- None of the above
3. Which statement is false about constructors?
- It does not have return type
- Its name is same as the name of class
- It cannot contain arguments
- It is invoked automatically
4. Which of the following is valid syntax of single inheritance?
- class extends class B
- class A: class B
- class A extends B
- class A: B
5. Which keyword is used for accessing members of parent class?
- parent
- base
- super
- sup
6. How many numbers of threads can be in ready state at a time?
- one
- two
- four
- Many
7. Which of the following is byte stream class?
- FileReader
- FileWriter
- FileInputStream
- All of the above
8. Which package contains classes related to event handling?
- Java.awt
- Javax.swing
- Java.awt.event
- Javax.swing.event
9. What is name of method used for running Insert commands in JDBC?
- execute
- executeUpdate
- executeQuery
- executelnsert
10. Which of the following is default access specifier for interfaces?
- private
- public
- protected
- default
MCQ Final Paper 2076
1. Which of these keywords is used by a class to use an interface defined previously?
- import
- Import
- implements
- Implements
2. In a java program, which of the following is true about package declaration?
- must precede
- must succeed
- may precede or succeed
- None
3. Which method is called internally by Thread start() method?
- execute()
- run()
- launch()
- main()
4. Using which keyword we can access value of the instance variables and class variables inside the method of the class?
- super
- final
- this
- either super or this
5. Which component is used to compile, debug and execute java program?
- JVM
- JDK
- JIT
- JRE
6. Which of these keywords is not a part of exception handling?
- try
- finally
- thrown
- catch
7. Which of the following statements about abstract methods/classes in Java is true?
- An abstract class cannot be instantiated.
- Constructors can be abstract.
- A subclass of an abstract class must defined the abstract methods.
- Static methods may be declared abstract.
8. Which keyword is used to insert interface by another interface?
- public
- implements
- extends
- class
9. What type of event is generated when the user presses the enter key in a JTextField?
- ActionEvent
- ActionListener
- TextEvent
- ItemEvent
10. Which JDBC driver Type(s) is(are) the JDBC-ODBC bridge?
- Type 1
- Type 2
- Type 3
- Type 4
These past questions encapsulate various topics within Java Programming, from network protocols to transmission media, providing a comprehensive overview for exam preparation.
At Noted Insights, we understand the significance of preparatory materials in shaping academic success. Therefore, we encourage students to leverage these resources to augment their learning journey.
Prepare, practice, and excel with our Java Programming past questions. Stay tuned for more curated educational resources tailored to elevate your academic endeavors.
Happy learning!
Team Noted Insights
Why Choose Noted Insights?
At notedinsights.com, we are committed to facilitating your academic excellence. Our platform boasts a rich collection of notes, syllabi, model questions, and study materials from diverse faculties of bachelor’s degree programs. With our user-friendly interface and regularly updated content, you can stay ahead in your studies and explore a wealth of educational resources.
Elevate your learning experience with Noted Insights today!
Share:
Stay Connected:
Follow us on social media for the latest updates, study tips, and educational insights.
- Facebook: Ajay Mahato
- LinkedIn: Ajay Mahato
- Instagram: Ajay Mahato
- Youtube: Noted Insights
Contact Us: Have questions or suggestions? Feel free to reach out to our team.
- Email: contact@notedinsights.com
You are doing great
Thanks a lot
can u provide a 10 page (lab report of DBMS AND SYSTEM ANALYSIS AND DESIGN)
Please check it here:
SAD Project: https://notedinsights.com/software-engineering-and-project-management-edutrack-projects/
DBMS Lab Sheet: https://notedinsights.com/dbms/