Home » E-Books » NCERT » Class 12 » Download Previous Year Question Paper with Answers of “Information Technology – Code 802” for Class 12 NSQF Vocational, CBSE Session 2021-2022.

Download Previous Year Question Paper with Answers of “Information Technology – Code 802” for Class 12 NSQF Vocational, CBSE Session 2021-2022.

CBSE | NSQF – Vocational Education 
Information Technology (Subject Code 802)
Class XII (Session 2021-2022)
Sample Question Paper For Term – II

Max. Time Allowed: 1 ½ Hour (90 min)  Max. Marks: 30

 

General Instructions:
1. Please read the instructions carefully
2. This Question Paper is divided into 03 sections, viz., Section A, Section B and Section C.
3. Section A is of 05 marks and has 06 questions on Employability Skills.
a) Questions numbers 1 to 4 are one mark questions. Attempt any three questions.
b) Questions numbers 05 and 06 are two marks questions. Attempt any one question.
4. Section B is of 17 marks and has 16 questions on Subject specific Skills.
a) Questions numbers 7 to 13 are one mark questions. Attempt any five questions.
b) Questions numbers 14 to 18 are two marks questions. Attempt any three questions.
c) Questions numbers 19 to 22 are three marks questions. Attempt any two questions
5. Section C is of 08 marks and has 03 competency-based questions.
a) Questions numbers 23 to 25 are four marks questions. Attempt any two questions.
6. Do as per the instructions given in the respective sections.
7. Marks allotted are mentioned against each section/question.

SECTION A

(3 + 2 = 5 marks)

Answer any 03 questions out of the given 04 questions 1 x 3 = 3

Q.1 Who are social entrepreneurs? 1
Q.2 An entrepreneur may face many personal barriers. Give any two personal barriers to entrepreneurship. 1
Q.3 What are the possible green jobs in building and construction? 1
Q.4 What is the mission of National Action Plan on Climate Change? 1

Answer any 01 question out of the given 02 questions 1 x 2 = 2

Q.5 What are the attitudes that make a successful entrepreneur? 2
Q.6 List some ways to minimise waste and pollution. 2

 

SECTION B

(5 + 6 + 6 = 17 marks)

Answer any 05 questions out of the given 07 questions 1 x 5 = 5

Q.7 Why Java program is platform independent? 1
Q.8 Think of any two work areas which uses Database Management Systems 1
Q.9 How can you write multiline comments in java program? 1
Q.10 What should we do to make a data member or a method member of a class visible only within the class? 1
Q.11 Why main is special method in java program? 1

Q.12 How many times the loop will execute?

for (int number = 5; number >= 1; number = number-1) {
System.out.print(“Square of ” + number);
System.out.println(” = ” + number*number); } 1

Q.13 Write the statement to create an array that stores the percentage of 5 students.1

Answer any 03 questions out of the given 05 questions 2 x 3 = 6

Q.14 Explain the difference between a Class and an Object with an example. 1+1

Q.15 Find the error and give the correct code

int number = 1;
while (number <= 5)
{System.out.print(“Square of ” + number);
System.out.println(” = ” + number*number);} 2

Q.16 Give two differences between while loop and do while loop 1+1
Q.17 What is the need of a constructor in OOP? Also write one feature of a constructor. 1+1

Q.18 What will be the value of n after the execution of the following selection statement :

int n=0;
if (6>7 II 5>4)
{n=5;}
else n=7; 2

Answer any 02 questions out of the given 04 questions 3 x 2 = 6

Q.19 Read the code carefully and give its output :

package javaprogarms;
public class StringDemo{
public static void main(String[]args)
{
String myString = “INFORMATION TECHNOLOGY”;
System.out.println(myString.indexof(’E’));
System.out.println(myString.contains(“NO”));
System.out.println(myString.length(); }};

1+1+1

Q.20 What will be the value of rem after the execution of the following code snippet? Give
reason.

code =2;
switch(code)
{ case 1: rem= 8;
case 2: rem= 9;
case 3: rem= 10; break;
case 4: rem= 11; break;}

3

Q.21 Write a for loop that displays all odd numbers between 1 to 10. 3

Q.22 i. How can we enable assertions to debug our code in java?
ii. What are the two ways to create threads in java?
iii. Which member function of the Integer wrapper class allows access to the int value held in it?

1+1+1

 

SECTION C (2 x 4 = 8 marks)

(COMPETENCY-BASED QUESTIONS)

Answer any 02 questions out of the given 03 questions

Q.23 What are methods in Java? Write a user defined method that return product of two numbers 1+3
Q.24 What is an exception? How are exceptions handled in java? Explain with example. 1+1+2
Q.25 i. How database management concepts are helpful in Government sector?
ii. A Hospital is making database of patients and its staff. Doctor table includes Docid, Dname, and Department. Give details of Patient Table along with its schema.

1+2+1

 

 

ANSWERS

SECTION A

(3 + 2 = 5 marks)

Answer any 03 questions out of the given 04 questions 1 x 3 = 3

Q.1 Who are social entrepreneurs?
Individuals, who focus on developing solutions that benefit the society, are called social entrepreneurs. They develop, fund and implement solutions that are directed towards society, culture and environment.

Q.2 An entrepreneur may face many personal barriers. Give any two personal barriers to entrepreneurship.
i. Self-doubt comes when we do not have confidence in ourselves and our abilities
ii. Forming a team /team work -Finding suitable people and training them to put in their best. ½+½

Q.3 What are the possible green jobs in building and construction?
Areas for green jobs in building and construction include landscape, gardening, maintenance of green components, water management developing new green building, rating programmes, certification services.

Q.4 What is the mission of National Action Plan on Climate Change?
The National Action Plan on Climate Change deals with adverse impacts of climate change on environment, forests, habitat, water resources and agriculture. 1
Answer any 01 question out of the given 02 questions 1 x 2 = 2

Q.5 What are the attitudes that make a successful entrepreneur?
The attitudes that make a successful entrepreneur are
1. Decisiveness
2. Initiative
3. Interpersonal Skills
4. Perseverance
5. Organisational Skills
(any 4 points to be mentioned ) ½* 4

Q.6 List some ways to minimise waste and pollution.
Ways to minimise waste and pollution
1. Reusing scrap material.
2. Ensuring quality control
3. Waste exchange
4. Managing e-waste
5. Use of eco-friendly material
(any 4 points to be mentioned ) ½* 4

 

SECTION B

(5 + 6 + 6 = 17 marks)

Answer any 05 questions out of the given 07 questions 1 x 5 = 5

Q.7 Why Java program is platform independent?
A Java compiler instead of translating Java code to machine language code, translates it into Java Bytecode. A Java interpreter, called the Java Virtual Machine (JVM), translates the bytecode into machine code and then executes it. The bytecode can be run on any platform as long as it has a JVM running on it. This makes Java programs platform independent and highly portable. (Keywords bytecodes and JVM to be included) 1

Q.8 Think and write any two work areas which uses Database Management Systems
Education, banking, railways, telecommunication, hotels, airlines, ecommerce, companies, government sector (any 2 domains should be written. 0.5 mark for each) 1

Q.9 How can you write multiline comments in java program?
Beginning a comment line with two consecutive forward slashes (//)
Writing the comment between the symbols /* and */ (both ways of commenting should be mentioned) 1

Q.10 What should we do to make a data member or a method member of a class visible only within the class?
To make a data member or method of a class visible only within the class.
Add the keyword private before its declaration. 1

Q.11 Why main is special method in java program?
Main is a special method that every Java application must have. When you run a program, the statements in the main method are the first to be executed. 1

Q.12 How many times the loop will execute?
for (int number = 5; number >= 1; number = number-1) {
System.out.print(“Square of ” + number);
System.out.println(” = ” + number*number); }
Answer = 5

Q.13 Write the statement to create an array that stores percentage of 5 students. double [] percentage = {78.3, 89.6, 90, 78 ,67};

(any numeric data type with any array name and values can be taken ) 1

Answer any 03 questions out of the given 05 questions 2 x 3 = 6

 

Q.14 Explain the difference between a Class and an Object with an example.
A class is a physical or logical entity that has certain attributes. A class is a template from which objects are created.

Object is an instance of a class.

Class book can have title, author, publisher, price as the data members. To display the details of class book you would call the method member display()

Method members of a class are invoked through the object like book1 to perform the action associated with that method.

(Any suitable example can be taken to explain class and object 1 mark for definition and 1 mark for example) 1+1

 

Q.15 Find the error and give correct code

int number = 1;
while (number <= 5)
{System.out.print(“Square of ” + number);
System.out.println(” = ” + number*number);}
This loop will run forever since number never changes – it remains at 1.

Correct code

int number = 1;
while (number <= 5)
{System.out.print(“Square of ” + number);
System.out.println(” = ” + number*number);
number++; }
(1 mark for finding the error and 1 mark for correct code) 2

 

Q.16 Give two differences between while loop and do while loop

while loop
1.A while loop is an entry controlled loop
2.Body of loop may never be executed
3. The variables in the test condition must be initialized prior to entering the loop structure.
do while loop
1.A do-while loop is an exit control loop –
2. Body of loop is executed at least once
3. It is not necessary to initialize the variables in the test condition prior to entering the loop structure. (any 2 points of difference. 1 mark for each difference) 1+1

 

Q.17 What is the need of a constructor in OOP? Also write one feature of a constructor.
A special method member called the constructor method is used to initialize the data members of the class.

Feature
The constructor has the same name as the class, has no return type, and may or may not have a parameter list.
Or
Whenever a new object of a class is created, the constructor of the class is invoked automatically.
(1 mark for definition. 1 mark for writing any 1 feature) 1+1

Q.18 What will be the value of n after the execution of the following selection statement :

int n=0;
if (6>7 II 5>4)
{n=5;}
else n=7;
answer
n=5 2

Answer any 02 questions out of the given 04 questions 3 x 2 = 6

Q.19 Read the code carefully and give its output :

package javaprogarms;
public class StringDemo{
public static void main(String[]args)
{
String myString = “INFORMATION TECHNOLOGY”;
System.out.println(myString.indexof(’E’));
System.out.println(myString.contains(“NO”));
System.out.println(myString.length(); }};
answer = 13
True 22
(1 mark for each correct answer)

1+1+1

Q.20 What will be the value of rem after the execution of the following code snippet? Give
reason.

code =2;
switch(code)
{ case 1: rem= 8;
case 2: rem= 9;
case 3: rem= 10; break;
case 4: rem= 11; break;}
answer
rem=10

case 2 will be executed and rem will become 9 but because of the absence of break statement the control will move down(fall through) and case 3 will be executed which will make rem as 10 now break will terminate the switch case statement . (2 marks for correct answer and 1 mark for explanation) 3

Q.21 Write a for loop that displays all odd numbers between 1 to 10

for(int count = 1; count <= 10; count = count +2)
{System.out.println(count);} 3

Q.22
i. How can we enable assertions to debug our code in java?
ii. What are the two ways to create threads in java?
iii. Which member function of the Integer wrapper class allows access to the int value held in it.
i. To enable assertions at runtime, you can enable them from the command line by using the –ea option
ii. In Java, threads can be created in two ways
1. By extending the Thread class
2. By implementing the Runnable interface
iii. intValue()
1+1+1

 

SECTION C

(2 x 4 = 8 marks)

(COMPETENCY-BASED QUESTIONS)

Answer any 02 questions out of the given 03 questions

Q.23 What are methods in Java? Write a user defined method that return product of two numbers.

A method in Java is a block of statements grouped together to perform a specific task. A method has a name, a return type, an optional list of parameters, and a body.

static double product (double number1, double number2)
{return (number1 * number2);}(1 mark for definition . 2 marks for correct

syntax of the user define method product ) 1+3

Q.24 What is an exception? Explain with an example.
An error situation that is unexpected in the program execution and causes it to terminate unexpectedly is called an exception.
For example Division by zero exception:

try
{
int quotient = divide(10,0);
System.out.println(quotient);
}
catch (Exception e)
{
System.out.println(e.getMessage());
}
(1 mark for correct definition of exceptions and 3 mark for example code using try and catch)

1+3

 

Q.25
i. How database management concepts are helpful in Government sector?
ii. A Hospital is making database of patients and its staff. Doctor table includes Docid, Dname, Department. Give details of Patient Table along with its schema.

i. Database management concepts are helpful in Government sector for storing details of electoral roll, all types of taxes, criminal records, PAN cards, AADHAR cards, vehicle registration, birth/death certificate registration.

ii. Patient table
Name Type Remarks pid Varchar(5) Patient unique number

pname Varchar(20) Patient name

phone Int(10) Patient phone no

disease Varchar(20) Disease he/she is suffering from

Schema:- Patient (pid, pname,phone,disease)

(1 mark for applications in govt sector, 2marks for creating the table with appropriate columns and data type, 1 mark for creating the schema

About

The main objective of this website is to provide quality study material to all students (from 1st to 12th class of any board) irrespective of their background as our motto is “Education for Everyone”. It is also a very good platform for teachers who want to share their valuable knowledge.

Leave a Reply

Your email address will not be published. Required fields are marked *