0% found this document useful (0 votes)
4 views

802_INFORMATION_TECHNOLOGY- Class 11

This document is a mid-term examination paper for Information Technology for Class XI, consisting of 12 questions divided into two sections: Section A with objective questions worth 5 marks and Section B with subjective questions worth 25 marks. Students are instructed to follow the order of questions and adhere to the provided guidelines. The questions cover various programming concepts and require analysis, coding, and explanation of Java programming elements.

Uploaded by

Saradha S
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)
4 views

802_INFORMATION_TECHNOLOGY- Class 11

This document is a mid-term examination paper for Information Technology for Class XI, consisting of 12 questions divided into two sections: Section A with objective questions worth 5 marks and Section B with subjective questions worth 25 marks. Students are instructed to follow the order of questions and adhere to the provided guidelines. The questions cover various programming concepts and require analysis, coding, and explanation of Java programming elements.

Uploaded by

Saradha S
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
You are on page 1/ 4

MID TERM I EXAMINATION [2023-2024]

Information technology
CLASS: XI Max Marks: 30
Date : Max.Time : 1 ½ hrs
General Instructions:

1. Please read the instructions carefully.


2. This Question Paper consists of 12 Questions in two sections – Section A & Section B.
3. Section A has Objective type questions whereas Section B contains Subjective type questions.
4. All questions of a particular section must be attempted in the correct order.
5. SECTION A - OBJECTIVE TYPE QUESTIONS (5 MARKS):
i. This section has 1 question.
ii. There is no negative marking.
iii. Do as per the instructions given.
iv. Marks allotted are mentioned against each question/part.
6. SECTION B – SUBJECTIVE TYPE QUESTIONS (25 MARKS):
i. This section contains 9 questions.
ii. Do as per the instructions given.
iii. Marks allotted are mentioned against each question/part.

SECTION A: OBJECTIVE TYPE QUESTIONS

Q. 1 Answer the following questions 1X5=5


i. Which clause is optional in a switch statement? 1
ii. Identify and name the following tokens 1
(a) ‘a’ (b) ==
iii. int a[] = new int[3]{1, 2, 3} – is it a right way to declare arrays in java? 1
iv. A group of statements which get executed based on a condition in java is called 1
.
(a) Selection
(b) Sequential
(c) Iteration
(d) None of these
v. Analyze the following code: 1

public class Test {


public static void main(String[] args) {
Pg. 1
double radius;
final double PI= 3.15169;
double area = radius * radius * PI;
System.out.println("Area is " + area);
}
}

A. The program has compile errors because the variable radius is not initialized.
B. The program has a compile error because a constant PI is defined inside a
method.
C. The program has no compile errors but will get a runtime error because radius
is not initialized.
D. The program compiles and runs fine.
Analyze the following code:

public class Test {


public static void main(String[] args) {
double radius;
final double PI= 3.15169;
double area = radius * radius * PI;
System.out.println("Area is " + area);
}
}

A. The program has compile errors because the variable radius is not initialized.
B. The program has a compile error because a constant PI is defined inside a
method.
C. The program has no compile errors but will get a runtime error because radius
is not initialized.
D. The program compiles and runs fine.
Analyze the following code:

public class Test {


public static void main(String[] args) {
double radius;
final double PI= 3.15169;
double area = radius * radius * PI;
System.out.println("Area is " + area);
}
}

A. The program has compile errors because the variable radius is not initialized.
B. The program has a compile error because a constant PI is defined inside a
method.
C. The program has no compile errors but will get a runtime error because radius
is not initialized.
D. The program compiles and runs fine
Analyze the following code
public class Test{
public static void main(String [] args){
double radius;
double PI=3.14;
double area=radius*radius*PI;
System.out.print(" Area is" + area);
}
Pg. 2
}
(a) The program has compile errors because the variable radius is not initialized.
(b) The program has a compile error because a constant PI is defined inside a
method.
(c) The program has no compile errors but will get a runtime error because radius
is not initialized.
(d) The program compiles and runs fine.

SECTION B: SUBJECTIVE TYPE QUESTIONS

Answer the following questions 2x4=8


marks
Q. 2 Analyze the given program segment and answer the following questions. 1+1
Int k;
For(k=5;k<=20;k++)
If(k%6==0)
System.out.println(k);
a. How many times the loop will execute?
b. Write the output of the program segment.
Q. 3 a.Predict the output 1+1
Class Test
{
Public static void main(String args[])
{
int var=10;
double x=10;
System.out.println(“original value of var:”+var);
System.out.println(“original value of x:”+x);
Var=var/4;
X=x/4;
System.out.println(“var after division:”+var);
System.out.println(“ x after division:”+x);
}
}
b.What is a constructor?
Q. 4 Write a program in java to find the result of the following expressions. 2
a. a%b
b. a/b
c. (a+b*100)/10
d. a++
Q. 5 a.Difference between = and == operator in java. 1+1
b.Which property of an array is used to find the size of the array?

Answer the following questions 3 x 3 = 9 marks

Q.6 a.The following code has some errors(s). rewrite the correct code underlying 3
all corrections. Also categorize the loop as entry/exit control loops.
int p
P=14;
do
P= p-2
System. out. display (p);
While(p>=2);
Pg. 3
b. a.what is method?write the structure of java method

Q.7 Give three differences between while loop and do while loop. 3
Q.8 Write a Java Program to calculate simple interest. 3

Q.9 (a) Write a program to calculate the sum of first 10 natural number 2+2
using For loop.
(b) Write a java program to display the details of book by using class
and object.
Q.10 a.Write a program to print the class report card for the five students by using 2+2
Array.
b.Write a program to print the circumference and area of a circle by defining
your own method.
Answer the following questions 4 x2 = 8 marks

Teacher Incharge HOD VicePrincipal Principal

Pg. 4

You might also like