0% found this document useful (0 votes)
3 views2 pages

Java Programming 2079 A 111

The document outlines the Second Terms Examination for Computer Engineering at Shree Mahunyala Secondary School, focusing on Java programming. It includes multiple-choice questions and descriptive questions covering various Java concepts such as OOPS, access modifiers, and programming structures. Candidates are instructed to answer in their own words and are required to attempt questions from different groups for full marks.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Java Programming 2079 A 111

The document outlines the Second Terms Examination for Computer Engineering at Shree Mahunyala Secondary School, focusing on Java programming. It includes multiple-choice questions and descriptive questions covering various Java concepts such as OOPS, access modifiers, and programming structures. Candidates are instructed to answer in their own words and are required to attempt questions from different groups for full marks.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

SHREE MAHUNYAL SECONDARY SCHOOL

BARDAGORIYA - 6 BASKOTI, KAILALI

Second Terms Examination 2080


Program: Computer Engineering FM:-50, PM:- 5. Which of the following is not an OOPS concept in Java?
18 a) Polymorphism
Class 11 b) Inheritance
Subject: JAVA programming c) Compilation
Time: 1:30 hr d) Encapsulation
Candidates are required to give their answers in their own 6. Which one of the following is not an access modifier?
words as far as practicable. The figures in the margin a) Protected
indicate full marks. b) Void
Group A c) Public
Multiple choice (Objective question) 1x9=9 d) Private
1. Who invented Java Programming? 7) Java language was initially called as ……
a) Guido van Rossum a) Sumatra
b) James Gosling b) J++
c) Dennis Ritchie c) Oak
d) Bjarne Stroustrup d) Pine
2. Which component is used to compile, debug and
execute the java programs? 8. What is the full form of JVM?
a) JRE a) Java Very Large Machine
b) JIT b) Java Verified Machine
c) JDK c) Java Very Small Machine
d) JVM d) Java Virtual Machine
[Link] one of the following is not a Java feature.
a) Object-oriented
b) Use of pointers 9) Which one is true about a constructor?
c) Portable a) A constructor must have the same name as the class it
d) Dynamic and Extensible is declared within.
b) A constructor is used to create objects.
c) A constructor may be declared private
4. Which of these cannot be used for a variable name d) All of the above
in Java?
a) Identifier & keyword
b) identifier
c) keyword
d) none of the mentioned
Group B
Attempt (any five) questions 5x5=25 ............................Best of Luck......................................
1) What is java programing? Write different feature
of java programs.
2) Define java variable? Explain types of variable
used in java.
3) Define JRE, JVM and JDK and write function of JVM.
4) Define algorithms and flowchart? Write a program
to enter marks of five subjects and calculate total
and percentage using class and object. with
5) Define looping in java? Write a program to print
series of whole number up to 100 terms using for
loop.
6) What is array? Write a program to calculate sum
1 2 4 1 2 3
to two given matrixes a 2 4 5 b4 5 6
3 4 5 2 3 5

Group C
Attempt (any two) question (2x8=16)
1. a) Define class ? Write a program to create a class
and read eid, name and roll of employee and display
information using class.
b) Define object? Write a program to create class-
having member sid, name and marks of student and
read records of students and display them using
multiple objects

2. a) Define constructor in java? Write a program to


create a parameterized constructor having sid and
name with multiple object and display information.

b) Define constructor overloading? Explain


constructor-overloading example.

You might also like