std10 Revision Paper Term1
std10 Revision Paper Term1
(b) The blueprint from which objects are created in Java is known as _______ :
(A) Object B)Interface (C) Class D) Language
d)____ statement skips the rest of the statement of the body of the loop and exits
the loop before the iteration is completed.
a)continue c)break
b)switch d)if
B) System.out.println(10 * 20 + "JavaProgramming");
a) 200JavaProgramming b) 1020JavaProgramming
c) 10*20JavaProgramming d) None of these
(a) All of the basic types of Java storage variables are known also as
(A) Basic types (B) Object types
(C) Primitive type (D)None of these
c) Which are the errors inspite of which the program will compile and run
c) none of these
a) Based on the below code snippet, conclude on the statement below it.
public class Stop
{
int RGY;
Stop()
{
RGY =0;
}
}
The above method in a class definition is known as ____________
(A) Object function (B) default constructor
(C) parameterised constructor (D) Function definition
a)5 c)12
b)10 d)None of these
Question 7
Programming Question
Question 8
A Super number is a number for which the sum of its proper factors is greater than
the number itself. Write a program to input a number and check and print whether
it is a Super number or not.
Example:
Consider the number 12.
Factors of 12 = 1, 2, 3, 4, 6
Sum of factors = 1 + 2 + 3 + 4 + 6 = 16
As 16 > 12 so 12 is a Super number.
import java.util.Scanner;
if (<F>)
System.out.println(n + " is a Super number");
else
System.out.println(n + " is not a Super number");
}
}
<A> System.in
<B> in.nextInt();
<C> i<n
<F> sum>n
Question 9
Define a class called Student to check whether a student is eligible for taking
admission in class XI with the following specifications:
Data Members Purpose
String name to store name
Member Purpose
Methods
Student( ) parameterised constructor to initialize the data members by
accepting the details of a student
void check( ) to check the eligibility for course based on the table given
below
void display() to print the eligibility/remark along with the name
Marks Eligibility/Remark
Average marks 80% or more and less than 90% Science with Hindi
void check()
{
remark = "Admission not possible";
<C>
<A> Student
Question 10 Read the paragraph given below and answer the questions given
below:
(b) Which of the following is a fundamental way in which OOP based languages
work?
(A) By creating objects and these objects interact with each other
(B) By solving problems based on algorithms
(C) By using methods to solve problems
In OOPS programming programs are organized around objects and data rather than
actions and logic. -true