802 CBSE Sample Paper

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

JAWAHAR NAVODAYA VIDYALAYA

“2nd Pre-Board 2022-23”


INFORMATION TECHNOLOGY (802)
Max. Time: 3 Hours Max. Marks: 60
General Instructions:
1. Please read the instructions carefully.
2. This Question Paper consists of 16 questions
3. All questions of a particular section must be attempted in the correct order.
Section A
Q. 1 Answer any 4 out of the given 6 questions on Employability Skills (1 x 4 = 4 marks)
i. What is java? Expand the term JVM? 1
ii. How do the following two codes differ: 1
A) System.out.print(“Hello World”);
B) System.out.println(“Hello World”);
iii. Write the use of database management in Railway? 1
iv. Which of the following is a type of polymorphism in Java Programming? 1
a) Multiple polymorphism
b) Compile time polymorphism
c) Multilevel polymorphism
d) Execution time polymorphism

v. Which of these are selection statements in Java? 1


a) break
b) continue
c) for()
d) if()
vi. Which one of the following is not an access modifier? 1
a) Protected
b) Void
c) Public
d) Private
Q. 2 Answer any 5 out of the given 7 questions (1 x 5 = 5 marks)
i. Which of the following is not a Java features? 1
a) Dynamic
b) Architecture Neutral
c) Use of pointers
d) Object-oriented
ii. Evaluate the following Java expression, if x=3, y=5, and z=10: 1
++z + y - y + z + x++
a) 24 b) 23 c) 20 d) 25

iii. How many threads can be executed at a time? 1


a)Only one thread
b) Multiple threads
c) Only main (main() method) thread
d) Two threads

Pg. 1
iv. Roma is booking a railway ticket using an online ticketing website makemytrip.com. 1
When she reached to catch the train she found that she left the ticket at her hotel.
What should she do?
(a) she can’t board the train
(b) she should book a new ticket at station
(c) she should go back and get the ticket
(d) She can download the e-ticket from the website.
v. Who are social entrepreneurs? 1
vi. What are the attitudes that make a successful entrepreneur? 1
vii. Why and How is Java Platform Independent? What are superclass and subclass, 1
respectively?

Q. 3 Answer any 6 out of the given 7 questions (1 x 6 = 6 marks)


i. Write the full form of IDE ? What is IDE? 1
ii. What is a comment? How many ways do you write comments in java? 1
iii. What is SQL? Define it. What are the usages of SQL? 1
iv. What is the primary key and foreign key? 1
v. What is the purpose of break keyword while using switch case statement? Illustrate with 1
the help of an example.
vi. Write the difference between the following: 1
(i) A = 10
(ii) lf(A==10)
vii. What do you mean by a keyword? Can we use keywords as identifiers? 1
Q. 4 Answer any 5 out of the given 6 questions (2 x 5 = 10 marks)
i. Why are the iteration or looping statements are used? Name the iteration statements 2
used in Java. Explain All?
ii. Outline the major Java features ? Explain all ? 2
iii. Java case sensitive, Yes Or No, explain it with proper example? And Why and How is 2
Java Platform Independent?
iv. Explain with Example What is Objects and Classes in Java 2
v. Why and How is Java Platform Independent? What are superclass and subclass, 2
respectively?

Pg. 2
SECTION B: SUBJECTIVE TYPE QUESTIONS
Q. 5 Write a java program to print the largest of three numbers? 3
Q. 6 Write a java program to print first 20 natural number using while loop? 2
Q. 7 The following code has some errors(s). rewrite the correct code underlying all corrections. 3
Also categorize the loop as entry/exit control loops.
int p
P=14;
do
P= p-2
System. out. display (p);
While(p>=2);
Q. 8 What are four main OOP concept in java and what are the benefits of 3
object-oriented programming?
Q. 9 An Airlines company is making a database of its flights and staff. The staff table 2
includes : Emp_id, Emp_name, Emp_dob, E_sal. Give the details of Flight table with
its schema.
Q. 10 Mr. Amit wants to go for a business trip .He is thinking of booking a flight. 3
(a) Give any one benefit of online reservation to Amit?
(b) What are the precautions to be followed while performing online transactions?
(c) Give any one advantage to the company providing online reservation?
Q. 11 How many types of constructors are there in the Java programming language? Define all with 3
example?
Q. 12 Explain method overloading? Compare overloading with overriding? 3
Q. 13 Explain the different types of SQL commands. ? Define DDL and DML? 3
Q. 14 Explain important phases of Web Application Development. 3
Q. 15 What do you mean by access specifiers ? List the Java access specifiers that are available? 3
Q. 16 Consider the following table and write SQL statements Table Menu 4

a) Create the above table?


b) Delete the Employee having Employee_ID 1217
c) Update the salary of Amyra to 4000
d) Write a query to display the names and salaries of those employees whose
salaries are greater than 20000.

Answer each question in 40 – 50 word

Pg. 3
Pg. 4

You might also like