0% found this document useful (0 votes)
1K views60 pages

Class 12 Previous Year Questions

Class 12th previous year questions 2025 previous year question

Uploaded by

rananeelam885
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views60 pages

Class 12 Previous Year Questions

Class 12th previous year questions 2025 previous year question

Uploaded by

rananeelam885
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 60

INFORMATION TECHNOLOGY

(Session 2023-24)

Section A (Objective Type Questions) (30 Marks)

1. Answer any 4 questions out of the given 6 questions on Employability Skills. (4×1=4)

(i) A __ is a group of words that communicate a complete meaning.

(ii) In the acronym ‘SMART’ to set goals, the letter ‘S’ implies ____.

(iii) is a state of feeling upset, annoyed and hopeless.

(iv) In a spreadsheet, ____ the shows the location of selected cell.

(v) A/An ____ entrepreneur is a type of entrepreneur who creates a new market for his services
or provides a service in an existing market.

(vi) ____ farming is the process by which we can grow plants in an environmental friendly way.

2. Answer any 5 out of the given 7 questions. (5X1=5)

(i) ____ is produced by processing data.

(ii) How many primitive data types are supported by Java ?

(iii) Which one of the following commands is used to delete the table from the database ?
(A) Delete
(B) Drop
(C) Remove
(D) Pop

(iv) ____ method in Java is used to concatenate the specified string at the end of the given
string.

(v) NeGD stands for ____.


(A) National e-Governance District
(B) National e-Government Draw
(C) National e-Governance Division
(D) National e-Government Discord
(vi) What is the advantage of Java Virtual Machine ?

(vii) In which phase of web based application development, will the feasibility of the project be
checked ?

3. Answer any 6 out of the given 7 questions. (6X1=6)

(i) Write any two logical operators in Java.

(ii) State True or False. “Java is not a portable language.”

(iii) The ____ aggregate function in SQL is used to find the average of all the values for an
attribute in a table.
(A) MAX
(B) MIN
(C) AVG
(D) COUNT

(iv) Name any two educational websites.

(v) In SQL, ____ constraint is used to restrict the values within a range in a relation.
(A) DEFAULT
(B) NOT NULL
(C) KEY
(D) CHECK

(vi) In a web application development process, data connectivity between front-end interface
and back-end database happens in the ____ phase.
(A) Design
(B) Testing
(C) Implementation
(D) Requirement Definition

(vii) The ____ statement in Java is used to execute a block of code matching one value out of
many possible values.

4. Answer any 5 out of the given 6 questions. (5X1=5)

(i) Which of the following ICT enabled services have not been set up by the Indian
Government ?
(A) Registration of death certificate
(B) Purchase of movie tickets
(C) RTI application submission
(D) Registration of birth certificate

(ii) Sohan has created a table, STUDENT in RDBMS. He now wants to add another field,
PERCENTAGE, which is of type integer, to the table. Write the command that will help Sohan
to complete his task.

(iii) Name any two ICT tools that can be used for e-Governance.

(iv) ____ method of Arrays class in Java helps us to search for a specific element in the array.
(A) search()
(B) binary()
(C) binarySearch()
(D) find()

(v) The number of rows in a relation is called the ____ of a relation.

(vi) Predict the output :


System.out..print("Hello");
System.out..println("Java");

5. Answer any 5 out of the given 6 questions. (5X1=5)

(i) Name any two domains where database applications may be used.

(ii) To show the structure of created table in the database, ____ command is used.

(iii) ____ keyword is used to create a new class in Java program.

(iv) Write the SQL command to display all the details of teachers from the table ‘Teacher’
whose salary is greater than 15000.

(v) OOP stands for ____.


(A) Ordinary Object Programming
(B) Oriented Object Programming
(C) Outsource Oriented Processing
(D) Object Oriented Programming

(vi) Which keyword helps to make a data member of a class visible only within the class ?
6. Answer any 5 out of the given 6 questions. (5X1=5)

(i) Which of the following is a valid variable declaration ?


(A) yes no
(B) yes & no
(C) yesno
(D) 1_yesno

(ii) While creating a table in MYSQL database, Sudha wants to set the value for the field Age
as 0. This value will be inserted if no value of age is given by the user. Suggest a constraint
that Sudha can use to complete her task.

(iii) Name the national portal which provides a single window access to information and
services being provided by various government entities.

(iv) What will be the output of the Java code given below ?
int a = 20;
int b = 30;
a + = b;
System.out.println(a);

(v) Which one of the following is not a DML command ?


(A) SELECT
(B) INSERT
(C) CREATE
(D) DELETE

(vi) Give any one benefit of online shopping to the consumer.

Section B (Subjective Type Questions) (30 Marks)

Answer any 3 questions out of the given 5 questions on Employability Skills. Answer
each question in 20-30 words.

7. Write any two ways to maintain positive attitude.

8. What are the different stages of active listening ? Write the names of any four stages.

9. How can we reduce greenhouse gas emission ?

10. Write any two benefits of goal setting by an entrepreneur.


11. Write the steps to save a presentation in LibreOffice Impress.

Answer any 3 out of the given 5 questions in 20-30 words each. (3X2=6)

12. Give the output of the following code segment :


public class test {
public static void main (string [] args) {
int num = 5;
while (num > 1)
{
system.out.println("**" + num * num);
num;
}
}
}

13. What is DBA ? Write any one responsibility of DBA.

14. Differentiate between CHAR(n) and VARCHAR(n) data types of MySQL. Give examples to
support your answer.

15. Aalam wants to create a database to manage the purchase and sale of items in his
departmental store. The ITEMS table in the database contains information of all items that he
sells in his store. Give details of ITEMS table along with its schema.

16. Differentiate between while loop and do while loop in Java.

Answer any 2 out of the given 3 questions in 30-50 words each. (2X3=6)

17. Complete the following code in JAVA, that prints the number (either 0 or 1) in words :
public class word {
public static void main (string [ ] args) {
int number = 0;
_____ (number) { case 0 : system.out.println("ZERO"); ;
_______;
case 1 :
system.out.println("ONE");
break;
_____:
system.out.println("NEITHER ZERO NOR ONE");
}
}
}

18. (a) Vikrant has given the following query but it has errors. Rectify the errors and underline
the correction made.
Select name, age from teacher where name = “_a%”;
(b) Explain the GROUP BY clause in SQL with an example.

19. State the applications of database management systems in the field of education.

Answer any 3 out of the given 5 questions in 50-80 words each. (3X4=12)

20. (a) Read the given Java code carefully and give the output :
public class StringDemo{
public static void main(String[]args) {
String myString = "Welcome Java";
System.out.println (myString.toUpperCase());
System.out.println (myString.indexOf('o'));
System.out.println (myString.contains("come"));
}}

(b) Consider the following string in Java :


String quote = "Stay Safe";
Write a statement to replace ‘Safe’ with ‘Secure’

21. (a) Write a program in Java to display area of a rectangle.


Note : Assign any imaginary values to the variables used in the program.

(b) What is the difference between = and == operator in Java ? Give example to support your
answer.

22. (a) Give one difference between a webinar and a video tutorial.

(b) The organization or company providing the online reservation facility to the users has
several advantages. Give any two of these advantages.

(c) Anil wants to book a flight from Delhi to Mumbai through online reservation. He has
opened the website for flight reservation and logged in using his userid and password. Write
the steps that he should follow now to complete his booking.

23. (a) Define the term Array with respect to Java.

(b) Explain the access modifiers and their types in Java.

24. Consider the following and answer the questions.


(a) Write an SQL command to create a table TravelAgency whose description is given below :
AgentCode Char(4) Primary Key

AgentName Varchar(20) Not Null

Location Varchar(25)

Package Varchar(30)

Charges Decimal

(b) Write the command to add a new row to a table TravelAgency with the following data :
("A005","Raman","Grover Travel","Domestic",8000)

(c) Write a query to remove the column Package from the table TravelAgency.
Sample paper

Answer any 4 out of the given 6 questions on Employability Skills. (4X1=4)

(i) An individual demonstrates a desire to do his/her work without any external reward
is ____ motivation.
Answer: intrinsic

(ii) “Entrepreneurship is considered to be both an art and a science.” Is this statement


true or false ?
Answer: True

(iii) All formulae in OpenOffice Calc begin with ____ sign.


a) #
b) $%
c) %
d) =

(iv) Mention any one quality that makes an entrepreneur successful.


Answer: Some of these qualities include: Vision, Risk-taking, Adaptability, Creativity, Strong
work ethic etc.

(v) A ____ is a collection of one or more worksheets in a single file.


Answer: workbook

(vi) People with ____ personality disorder essentially lack a sense of self-worth and thus
experience feelings of emptiness and fear of abandonment.
a) Paranoid
b) Antisocial
c) Borderline
d) Schizoid

2. Answer any 5 out of the given 7 questions. (5X1=5)

(i) Define Data.


Answer: Data refers to facts, figures, or information that can be in the form of numbers, text,
images, or any other format, which can be stored, processed, and analyzed to extract meaning
or make decisions.

(ii) The number of attributes in a relation is called its ____.


a) Degree
b) Attribute
c) Cardinality
d) Domain

(iii) ____ is a set of attributes in a relation, for which no two tuples in a relation state
have the same combination of values.
Answer: superkey

(iv) In SQL, a column definition can be changed with the help of ____ command.
Answer: ALTER TABLE

(v) A/An ____ is a task that is undertaken to create a unique product, service or result.
Answer: project

(vi) ____ are real time lectures, where users participate in the lecture, may ask questions
and get their queries answered.
Answer: Webinars

(vii) In this phase we identify the problem statement for which the “web application” is
to be developed.
a) Requirement Definition Phase
b) Design Phase
c) Implementation Phase
d) Test Phase

3. Answer any 6 out of the given 7 questions. (6X1=6)

(i) A/An ____ is the named storage location in the computer’s internal memory, has a
specific data type and its value can change during execution.
Answer: variable

(ii) Name any two primitive data types in Java.


Answer: In Java, there are several primitive data types. Here are five of them: int, double,
boolean, char, byte.

(iii) In Java = = is a/an ____ operator.


a) Arithmetic
b) Relational
c) Assignment
d) Logical
(iv) Alternate of if - else is :
a) switch.. case
b) while
c) for
d) do while

(v) “There is no use of Database Management System applications in


telecommunications.” Is the given statement true or false ?
Answer: false

(vi) What are the different payment methods while buying online ?
Answer: When buying online, there are several payment methods available to make
transactions like Credit / Debit Card, PayPal, Digital Wallets, Bank Transfers, Prepaid Cards,
Cash on Delivery (COD), Mobile Payment Apps etc.

(vii) ____ method of a String Class returns the count of characters present in a String.
a) indexOf()
b) indexAt()
c) length()
d) isEmpty()

4. Answer any 5 out of the given 6 questions. (5X1=5)

(i) Which of the following is not a key characteristic of a project ?


a) A project has a beginning and an end
b) A project has a specific time frame
c) A project has no boundaries
d) The objective of the project is specific and identifiable

(ii) The ____ block is examined during execution to detect any exceptions that may be
thrown by any statements or any calls to methods within the block.
Answer: try

(iii) JVM stands for _____.


Answer: Java Vertual Machine

(iv) The ____ statement evaluates the test after executing the body of a loop.
Answer: do-while loop

(v) ____ command deletes one or more tuples from a Table.


Answer: DELETE
(vi) if ((percentage > = 40)&& (percentage < 60))
{System.out.println("PASSED with II Division");}
Consider the above statement, && will check for both the conditions to be :
a) True
b) False
c) Any of the above
d) None of the above

5. Answer any 5 out of the given 6 questions. (5X1=5)

(i) In SQL, while applying condition on a group, instead of WHERE clause ____ clause is
used.
Answer: HAVING

(ii) Name any two aggregate functions used in SQL.


Answer: COUNT, SUM

(iii) An application that can be accessed via a web browser, over a network connection is
called a ____ application.
Answer: web

(iv) command displays list of databases available on the current server.


a) Show databases
b) Show tables
c) Create tables
d) Display tables

(v) ____ can be used for Multi-line Comment entry.


a) //
b) /* …. */
c) ##
d) $$

(vi) All Java Statements must end with ____.


a) /
b) *
c) ;
d) &

6. Answer any 5 out of the given 6 questions. (5X1=5)


(i) Name any one e-governance website of India.
Answer: https://www.digitalindia.gov.in

(ii) Give examples of any two online educational websites.


Answer: (i) Coursera (ii) Khan Academy

(iii) Create backend database, frontend and the connectivity between them comes
under which phase ?
a) Requirement Definition
b) Design
c) Implementation
d) Testing

(iv) How does e-governance benefits its citizens ?


Answer: E-governance offers numerous benefits to its citizens. One of the most significant
advantages is increased accessibility. Through online platforms, citizens can conveniently
access government services and information without the need for physical visits to
government offices. This not only saves time and money but also provides 24/7 availability,
allowing citizens to complete tasks at their own convenience.

(v) An error situation that is unexpected in the program execution and causes it to
terminate unexpectedly is called ____.
Answer: “exception” or “runtime exception”

(vi) Consider Payment Table with columns


Payment_id, Payment_amount, Payment_date, Mode.
Identify the Primary Key in the above given table.
Answer: Payment_id

Section B – Subjective Type Questions (30 Marks)

Answer any 3 out of the given 5 questions on Employability Skills. Answer each question in 20-
30 words. (3X2=6)

7. Suggest any four ways to maintain positive attitude.


Answer: Maintaining a positive attitude is essential for personal well-being and productivity.
Here are four ways to help you maintain a positive attitude:
(i) Practice Gratitude
(ii) Surround Yourself with Positivity
(iii) Self-Care
(iv) Challenge Negative Thoughts
8. Mention any four most common environmental barriers that an entrepreneur may
face.
Answer: Entrepreneurs often face various environmental barriers that can impact their
business ventures. Four of the most common environmental barriers include:
(i) Regulatory and Legal Barriers
(ii) Economic Barriers
(iii) Market Competition
(iv) Technological and Industry Changes

9. Write a short note on the significance of self-awareness.


Answer: Self-awareness empowers better decision-making, emotional control, effective
communication, and personal growth, enhancing overall well-being and success in both
personal and professional life.

10. Write down the main steps to sort the data in Calc.
Answer: To sort data in Calc, follow these main steps:
Step 1: Select the range of cells that you want to sort.
Step 2: Click on “Data” in the menu and select “Sort.”
Step 3: Choose the column you want to sort by from the “Sort Key” list and specify the sorting
order (ascending or descending).
Step 4: Click “OK” to apply the sort.

11. Why must a successful entrepreneur have self-confidence ? Discuss briefly.


Answer: Self-confidence is crucial for entrepreneurs as it fuels risk-taking, resilience, decision-
making, and leadership, enabling them to navigate challenges and inspire others toward
success.

Answer any 3 out of the given 5 questions in 20-30 words each. (3X2=6)

12. What is the purpose of comments in Java ?


Answer: Comments in Java provide explanations and context within code, aiding developers in
understanding, maintaining, and collaborating on software projects while not affecting
program execution.
13. The following code has some error(s). Rewrite the correct code underlining all the
corrections.

Answer:
int x, y; // Corrected variable declaration and added a semicolon
x = 10; // Corrected variable assignment
for (x = 20; x > 10; x--) // Corrected the for loop syntax and condition
y = y - 2;
System.out.println(y); // Corrected the print statement and removed the extra curly
brace
14. Write SQL command to create the following table :

Answer:
CREATE TABLE Gadget (

G_ID CHAR(4),

Description VARCHAR(20),

Manufacture_Date DATE,

Price DECIMAL,

Warranty INT

);
15. Mention any two usages of a Database Management System in Hospitals.
Answer: Database Management Systems (DBMS) are widely used in hospitals for various
purposes. Two common usages are:
(i) Patient Records: DBMS is used to store and manage patient records. This includes storing
patient demographics, medical history, diagnostic reports, treatment plans, and billing
information.
(ii) Inventory Management: Hospitals need to manage a vast inventory of medical supplies,
equipment, and medications.

16. Suggest the datatypes for the following columns of Salary table to be created :
Emp_ID
Name
Basic Salary
HRA
Field Name Data Type

Emp_ID CHAR or VARCHAR

Name VARCHAR

Basic Salary DECIMAL or NUMERIC

HRA DECIMAL or NUMERIC

DateofJoin DATE or DATETIME

Net_Salary DECIMAL or NUMERIC

DateofJoin
Net_Salary
Answer: You can use the following data types for the columns of the “Salary” table:

Answer any 2 out of the given 3 questions in 30-50 words each. (2X3=6)

17. Write any three domain names where database applications may be used. Also give
one example of each of these three domains which can be developed to cater their
respective needs.
Answer: Database applications are used in various domains to manage and process data
efficiently. Here are three domain names and examples of database applications in each:
(i) Education Domain:
• Student Information System: A database application for educational institutions to
manage student records, including enrollment, grades, attendance, and course schedules.
(ii) Manufacturing Domain:
• Production Planning and Control System: In manufacturing, a database application can be
used for production planning, scheduling, and tracking. It helps optimize production
processes, manage resources, and ensure timely delivery of products to meet customer
demands.
(iii) Human Resources Domain:
• HR Management System: An HR database application streamlines employee data
management, including personnel records, payroll, benefits, and performance evaluations.

18. Explain Syntax error with the help of a valid example.


Answer: A syntax error in Java occurs when the code you write does not adhere to the correct
syntax rules of the Java programming language.
Here’s an example of a Java syntax error:

Students Table:
public class SyntaxErrorExample {

public static void main(String[] args) {

System.out.println("Hello, World!"

In the code above, there is a missing semicolon ; at the end of


the System.out.println statement. This is a common syntax error in Java. When you attempt
to compile this code, you’ll receive an error message like this:

Courses Table:
SyntaxErrorExample.java:4: error: ';' expected

System.out.println("Hello, World!"

19. Explain Referential Integrity Constraint with valid example.


Answer: Referential integrity is a database constraint that ensures the relationships between
tables in a relational database are maintained correctly. It enforces that relationships between
tables are consistent, and it prevents actions that would violate these relationships, such as
deleting a record from one table that is referenced by another table. This constraint is typically
used in database management systems (DBMS) like MySQL
Here’s a valid example to explain referential integrity with two tables: “Students” and
“Courses.”

CREATE TABLE Students (

StudentID INT PRIMARY KEY,

FirstName VARCHAR(50),

LastName VARCHAR(50),

CourseID INT,

FOREIGN KEY (CourseID) REFERENCES Courses(CourseID)

);

CREATE TABLE Courses (

CourseID INT PRIMARY KEY,

CourseName VARCHAR(100)

);

In this example:
• The “Students” table has a foreign key column called “CourseID” that references the
“Courses” table’s “CourseID” primary key.
• The “CourseID” in the “Students” table is constrained by the referential integrity rule to only
allow values that exist in the “CourseID” column of the “Courses” table. This ensures that
students can only be associated with valid courses.

Answer any 3 out of the given 5 questions in 50-80 words each. (3X4=12)
20. Consider the following table and write SQL statements for the given task :

(i) Display all the records of the table Menu.


Answer: SELECT * FROM Menu;
(ii) Increase the prices of all Menu Items by 10.
Answer: UPDATE Menu SET Price = Price + 10;
(iii) Display the Description and Price in the ascending order of Price.
Answer: SELECT Description, Price FROM Menu ORDER BY Price ASC;
(iv) Display the structure of Table Menu.
Answer: DESCRIBE Menu;

21. Write a code in Java to print the squares of numbers from 1 to 5 by using for loop.

Answer:
public class SquareNumbers {

public static void main(String[] args) {

for (int i = 1; i <= 5; i++) {

int square = i * i;

System.out.println("The square of " + i + " is: " + square);

}
22. Write a method Disp_sal() in Java to display Net Salary on the basis of Basic Salary,
Allowance and Deductions to be passed as arguments of type double.
(Net Salary = Basic Salary + Allowance - Deductions)
If the Net Salary is more than 50,000, additional 2000 bonus is added.
Also display Net Salary.

Answer:
public class SalaryCalculator {

public static void main(String[] args) {

double basicSalary = 50000.0;

double allowance = 10000.0;

double deductions = 5000.0;

double netSalary = Disp_sal(basicSalary, allowance, deductions);

System.out.println("Net Salary: " + netSalary);

public static double Disp_sal(double basicSalary, double allowance, double


deductions) {

double netSalary = basicSalary + allowance - deductions;

// Check if the net salary is more than 50,000 and add a bonus if true
if (netSalary > 50000) {
netSalary += 2000;
}

return netSalary;
}
}
23. Online shopping is playing a vital role in making our country a digital country. Write
any two situations when online shopping can be more beneficial as compared to
traditional offline shopping. Also discuss any two main precautions to be taken while
shopping online.
Answer: Online shopping has become a significant contributor to the digital transformation of
many countries. Here are two situations when online shopping can be more beneficial
compared to traditional offline shopping:
(a) Convenience and Selection: Online shopping provides the convenience of shopping from
anywhere, at any time. You can explore a vast selection of products from multiple retailers
without the need to physically travel to different stores.
(b) Cost Savings and Comparisons: Online shopping often offers competitive prices and
discounts. Shoppers can easily compare prices across different websites and find the best
deals.

However, while online shopping offers numerous benefits, it’s essential to take precautions to
ensure a safe and satisfying shopping experience. Here are two main precautions:
(a) Secure and Trusted Websites: Only shop from well-established websites. Verify that the
website uses secure payment and look for “https://” in the website URL.
(b) Protect Personal Information: Be cautious when sharing personal and financial
information online. Use strong and unique passwords for your online shopping accounts, and
avoid using public Wi-Fi networks for making purchases.

24. Mention any two main points of difference between while and do-while statements.
Also give the syntax of both.
Answer: In a while loop, the condition is evaluated before the loop body is executed. If the
condition is initially false, the loop body may not execute at all whereas in a do-while loop,
the condition is evaluated after the loop body is executed. This guarantees that the loop body
will execute at least once, even if the condition is false.

Syntax: While Loop:


while (condition) {

// Code to be executed
}
Syntax: Do-While Loop:
do {

// Code to be executed
} while (condition);
Sample paper
1. Answer any 4 questions out of the given 6 questions on Employability Skills. (4×1=4)

(i) An individual’s motivations, inspired by others or events is known as ____.


Answer: extrinsic motivation

(ii) What is stress ?


Answer: Stress is when you feel worried, upset, or tense because of things happening around
you. It’s like a feeling of pressure or being overwhelmed by problems or challenges. Stress can
make your body feel uneasy, and it can affect your emotions and how you think.

(iii) A ____ is rectangle shaped box, where row and column meet in a spreadsheet.
Asnwer: cell

(iv) Decisiveness is one of the entrepreneurial competencies. State True/False.


Answer: True

(v) The act of setting up and running a business and taking risks in order to earn profits
is known as ____.
Answer: entrepreneurship

(vi) In Open Office Calc ____ contains the Name Box which shows the location of the
selected cell.
a) Formula Bar
b) Status Bar
c) Menu Bar
d) Title Bar

2. Answer any 5 out of the given 7 questions. (5X1=5)

(i) ____ command displays all the tables created in the current database.
(a) SHOW DATABASES
(b) SHOW TABLES
(c) CREATE TABLES
(d) DISPLAY TABLES

(ii) ____ symbol replaces a single character while matching a pattern with LIKE keyword.
Answer: underscore (_)
(iii) Predict the output :
String myStr = "Welcome Users";
System.out.println("New String:"+myStr.toUpperCase());
Answer: WELCOME USERS

(iv) An attribute value may not be permitted to be NULL value with ____ constraint.
Answer: NOT NULL

(v) ____ statement in Java, allows to use a prebuilt class and its associated methods from
a package.
a) include
b) public
c) extend
d) import

(vi) _________ is an e-commerce application where the customer can purchase goods over
the Internet.
Answer: Online store

(vii) Ranjana has written the following query but it is giving an error. Rectify the error
and rewrite the query.
SELECT * FROM PRODUCT
SORT BY PRICE;
Answer: SELECT * FROM PRODUCT
ORDER BY PRICE;

3. Answer any 6 out of the given 7 questions. (6X1=6)

(i) The ____ blocks follow a try block. It contains the exception handler-specific code that
is executed when the exception occurs.
Answer: catch

(ii) “Database management system could not find any usage in hospital domain.” Is the
above statement true or false?
Answer: False
Explanation: DBMS plays a crucial role in the hospital domain by managing and organizing
vast amounts of data critical to patient care, administration, and research.

(iii) NeGP stands for ____ .


Answer: National e-Governance Plan
(iv) The ____ command is used to view the structure and description of a table :
a) DESCRIBE
b) SELECT
c) SHOW
d) DISPLAY

(v) Define Referential Integrity.


Answer: Referential Integrity is a database concept that ensures relationships between tables
are maintained. It enforces that foreign keys in one table match primary keys in another,
preserving data consistency.

(vi) What is a Compiler ?


Answer: A compiler is a software tool that translates high-level programming code into
machine code, making it executable by a computer.

(vii) Name any two Primitive datatypes in Java.


Answer: Int, Bollean

4. Answer any 5 out of the given 6 questions. (5X1=5)

(i) A ____ is a group of statements written to perform a specific task.


a) Method
b) Class
c) Comment
d) Variable

(ii) Predict the output of the given Java code :


String first_name = "Priyank";
String last_name = "Arora"
System.out.println(first_name.length()+last_name.length());
Answer: The combined length of “Priyank” (7 characters) and “Arora” (4 characters) is 11.

(iii) In which of the following phase of web based application project, we create
backend database, frontend and the connectivity between them ?
a) Requirement
b) Design
c) Implementation
d) Test

(iv) Which of the following constraints specifies that the value of every attribute in each
tuple must be from the domain of that attribute. ?
a) Domain Constraint
b) Key Constraint
c) Null Value Constraint
d) Entity Integrity Constraint

(v) Database can be removed by using ____ command.


Answer: DROP Command (DROP DATABASE database_name;)

(vi) What will be the output of the following code if value of variable a is 1 ?
{
case 0 : jTextField1.setText("Blue");
case 1 : jTextField1.setText("Red");
case 2 : jTextField1.setText("Orange");
break;
case 3 : jTextField1.setText("Black");
default : jTextField1.setText("transparent");
break;
}
Answer: If the value of the variable “a” is 1, the code will execute the “case 1” block, and the
text in “jTextField1” will be set to “Red.”

5. Answer any 5 out of the given 6 questions. (5X1=5)

(i) Define Front End, with respect to web based application project.
Answer: In the context of a web-based application project, the “Front End” refers to the user
interface or the client-side component of the application that users interact with.

(ii) ____ members of a class cannot be accessed outside the class.


Answer: Private

(iii) Create Table is a ____ command.


Answer: DDL (Data Definition Language) Command

(iv) Name any 2 web browsers.


Answer: Google Chrome, Apple Safari

(v) Name the Indian Government portal for booking train tickets.
Answer: https://www.irctc.co.in

(vi) Name the method that is used to concatenate a string at the end of another string
in Java.
Answer: concat()

6. Answer any 5 out of the given 6 questions. (5X1=5)


(i) RDBMS packages are widely used as ____ (Frontend/Backend)
Answer: Backend

(ii) Mention any one eGovernance initiative taken by the Central Government of India.
Answer: Digital India

(iii) What is a Bytecode ?


Answer: Bytecode is an intermediate representation of a program’s source code that is used in
various programming languages and platforms.

(iv) Requirement, ____, Implementation and Testing are the phases in Web Application
Development.
Answer: Design

(v) Which of the following is/are not a keyword in JAVA ?


break, While, for, switch, Display
Answer: Display

(vi) The functions that are used to apply certain mathematical functions on a group of
values in a database are called ____.
Answer: aggregate functions or SQL aggregate functions

Section B (Subjective Type Questions) (30 Marks)

Answer any 3 questions out of the given 5 questions on Employability Skills. Answer each
question in 20-30 words.

7. Briefly discuss the importance of positive attitude.


Answer: Having a positive attitude makes life better. It helps you stay strong, see the good in
things, and feel happier, even when things are tough.

8. Name any two types of Entrepreneurs.


Answer: (a) Small Business Entrepreneurs, Solo Entrepreneurs

9. Write down the main steps to apply filter to a tabular data in Calc.
Answer: The main steps to apply a filter to tabular data in LibreOffice Calc:
Step 1: Select the cell in the data.
Step 2: Go to “Data” > “Filter.”
Step 3: Click the filter arrow in the header.
Step 4: Set your filtering criteria.
Step 5: Click “OK” to apply the filter.
10. Mention any two common barriers to entrepreneurship.
Answer: (a) Lack of Capital (b) Market Competition

11. Mention any two steps to overcome personality disorders.


Answer: Overcoming personality disorders typically requires professional guidance and
therapy. However, here are two simple steps that can be part of the process:
(a) Self-Awareness: Acknowledging the issue is the first step towards seeking help and
change.
(b) Seek Professional Help: Consult a mental health professional, such as a psychologist or
psychiatrist, who can provide a diagnosis and develop a treatment plan, which may include
therapy, medication, or other interventions.

Answer any 3 out of the given 5 questions in 20-30 words each. (3X2=6)

12. Write a query to modify the value of field ‘dept’ from ‘marketing’ to ‘sales’ in the
table Department.
Answer: UPDATE Department SET dept = 'sales' WHERE dept = 'marketing';

13. What is the purpose of using try and catch statements in JAVA ?
Answer: In Java, try and catch statements are used to handle exceptions, which are
unexpected events that can occur during the execution of a program.

14. Explain any two methods of String class in Java with suitable example.
Answer: (a) substring(int beginIndex, int endIndex): This method extracts a portion of the
string, starting at the beginIndex and ending before the endIndex.
Example:
String original = “Hello, World!”;
String sub = original.substring(7, 12);
System.out.println(sub); // Output: “World”
(b) toUpperCase(): This method converts all characters in the string to uppercase and returns
a new string with the uppercase characters.
Example:
String text = “Hello, Java”;
String upperCaseText = text.toUpperCase();
System.out.println(upperCaseText); // Output: “HELLO, JAVA”

15. Mention any two major significances of Database Management System.


Answer: Database Management Systems (DBMS) have several significant advantages, but here
are two major significances:
(i) Data Integrity and Consistency: DBMS enforces data integrity constraints, ensuring that
data in the database follows predefined rules and constraints. This helps maintain the
accuracy and consistency of data, preventing inconsistencies and errors.
(ii) Data Security and Access Control: DBMS provides robust security features to control
access to data. It allows administrators to define user roles and permissions, limiting who can
view, modify, or delete data.

16. Fill in the blanks.


(a) The number of attributes in a relation is called the ____ of a relation.
Answer: degree
(b) To avoid repetition in the result of a SELECT Query ____ clause is used.
Answer: DISTINCT

Answer any 2 out of the given 3 questions in 30-50 words each. (2X3=6)

17. Discuss any three main purposes of using Database applications in education
domain.
Answer: Database applications in the education domain serve several important purposes, but
here are three main ones:
(i) Student Information Management: Education databases store and manage student
information, including personal details, enrollment records, attendance, and academic
performance.
(ii) Curriculum and Course Management: Databases are used to manage curriculum details,
course catalogs, class schedules, and resources. These systems help educators plan courses,
allocate resources efficiently, and make curriculum adjustments.
(iii) Research and Analysis: Databases aid in educational research by collecting and storing
data related to student performance, teaching methods, and institutional effectiveness.

18. Rewrite the following program code using switch statement :


if (color == 10)
{ system.out.println("Red"); }
else if (color == 20)
{
System.out.println ("Orange");
}
else if (color == 30)
{
System.out.println ("Green");
}
else
{
System.out.println ("Invalid");
}

Answer:
switch (color) {
case 10:

System.out.println("Red");

break;

case 20:

System.out.println("Orange");

break;

case 30:

System.out.println("Green");

break;

default:

System.out.println("Invalid");

break;

19. (i) State the role of a DBA (Database Administrator).


Answer: A Database Administrator (DBA) plays a pivotal role in the efficient and secure
management of database systems within organizations. DBAs are responsible for a wide range
of tasks that revolve around the design, implementation, maintenance, and optimization of
databases. They collaborate with software developers and business analysts to create well-
structured databases, ensuring data integrity and efficiency. DBAs keep a vigilant eye on data
growth and plan for capacity needs, as well as contribute to disaster recovery planning to
ensure business continuity.
(ii) Sana has given the following query but she is unable to execute it successfully. Write
the correct query after rectifying the error
SELECT NAME, MARKS
FROM STUDENT TABLE
WHERE NAME = "P%"
Answer: SELECT NAME, MARKS FROM STUDENT WHERE NAME LIKE ‘P%’;

Answer any 3 out of the given 5 questions in 50-80 words each. (3X4=12)
20. What is the purpose of HAVING clause ? How is it different from WHERE clause in SQL ? Give
example to support you answer.
Answer: The HAVING clause in SQL is used to filter the results of a SQL query that includes
a GROUP BY clause.
The main difference between the HAVING and WHERE clauses is when they are applied:
• The WHERE clause is used to filter rows before they are grouped and is applied to individual
rows in the table.
• The HAVING clause is used to filter the results of the grouping after the GROUP BY operation
has been performed, and it is applied to groups of rows based on the results of aggregate
functions.

Example: Using the WHERE clause:


SELECT CustomerID, SUM(Quantity) as TotalQuantity

FROM Orders

WHERE Product = 'Widget'

GROUP BY CustomerID

HAVING TotalQuantity > 100;

Using the HAVING clause:


SELECT CustomerID, SUM(Quantity) as TotalQuantity

FROM Orders

WHERE Product = 'Widget'

GROUP BY CustomerID

HAVING SUM(Quantity) > 100;

21. Write advantages of online tutorials.


Answer: Online tutorials offer several advantages, including:
Convenience and Flexibility: Learners can access online tutorials from anywhere, at any time,
making it convenient for them to fit learning into their schedules. This flexibility allows for
self-paced learning.
Variety of Topics: Online tutorials cover a wide range of subjects and skills, making it easy to
find tutorials on specific topics of interest or need.
Cost-Effective Learning: Many online tutorials are available for free or at a lower cost than
traditional classroom courses.
Interactive Learning: Online tutorials often incorporate multimedia, quizzes, and interactive
exercises, making the learning experience engaging and effective.

22. Why is Java considered as an Object Oriented Programming language ? Explain data
members and member methods with the help of an example.
Answer: Java is considered an Object-Oriented Programming (OOP) language because it
follows the principles and concepts of Object-Oriented Programming. These principles include
encapsulation, inheritance, polymorphism, and abstraction.
Data members and member methods with an example in Java:

public class Car {

// Data members or attributes


private String brand;
private String model;
private int year;
private double price;

// Constructor to initialize data members


public Car(String brand, String model, int year, double price) {
this.brand = brand;
this.model = model;
this.year = year;
this.price = price;
}

// Member methods
public void startEngine() {
System.out.println("The " + brand + " " + model + "'s engine is started.");
}

public void accelerate() {


System.out.println("The " + brand + " " + model + " is accelerating.");
}

public double calculateResaleValue() {


int currentYear = java.time.Year.now().getValue();
int age = currentYear - year;
if (age >= 0 && age <= 5) {
return price * 0.7; // 70% of the original price for cars 0-5 years old
} else {
return price * 0.5; // 50% of the original price for cars older than 5
years
}
}

// Getters and setters for data members (encapsulation)


public String getBrand() {
return brand;
}
public void setBrand(String brand) {
this.brand = brand;
}

// Other getters and setters for the remaining data members...


}
In this example, the Car class represents an object in an Object-Oriented manner. It has data
members (attributes) like brand, model, year, and price, and member methods
like startEngine, accelerate, and calculateResaleValue. The use of encapsulation is evident
through private data members and public getters and setters to access and modify these
attributes. The class illustrates the principles of OOP, including encapsulation and member
methods.

23. (i) ‘Java is a platform independent language.’ Justify the statement.


Answer: Java’s platform independence means that Java code can run on different computer
systems without modification. It achieves this through an intermediate step: when you write
Java code, it gets compiled into a special form called bytecode, which is not tied to any
specific computer. Then, a program called the Java Virtual Machine (JVM) on each computer
translates this bytecode into instructions that the computer can understand. Since the JVM is
available on various platforms, Java programs work on Windows, macOS, Linux, and more.
(ii) Give two relational operators and two logical operators in Java.
Answer: Relational Operators:
(i) Equal to (==): Used to check if two values are equal. For example: if (x == y) checks
if x and y have the same value.
(ii) Not equal to (!=): Used to check if two values are not equal. For example: if (a !=
b) checks if a and b have different values.
Logical Operators:
(i) Logical AND (&&): Used to combine two conditions. It returns true if both conditions
are true. For example: if (condition1 && condition2) checks if
both condition1 and condition2 are true.
(ii) Logical OR (||): Used to combine two conditions. It returns true if at least one of the
conditions is true. For example: if (conditionA || conditionB) checks if
either conditionA or conditionB is true.

24. Write the output of following code:


(i) class production
{
int inp = 50;
void change(int inp)
{
System.out.println("Change"+po.inp);
inp=inp+100;
}
public static void main(String args[])
{
production po=new production();
System.out.println("before change"+po.inp);
po.change(500);
System.out.println("after change"+po.inp);
}
}
Answer:
before change 50
Change 50
after change 50
(ii) What are the two ways to write comments in Java ?
Answer: In Java, there are two ways to write comments:
(a) Single-Line Comments: Single-line comments are used to comment a single line or a
portion of a single line. You can create a single-line comment by using //. Anything
following // on the same line is treated as a comment and is ignored by the compiler.
(b) Multi-Line Comments: Multi-line comments are used to comment multiple lines or a
block of code. You can create a multi-line comment by enclosing the comments
within /* and */. Anything between these delimiters is considered a comment and is ignored
by the compiler.

1. Write about any two interpersonal skills you know.


Answer: (a) Positive attitude (b) Communication (c) Problem solving (d) Stress management
etc.

2. Define Initiative.
Answer: Initiative means being able to step forward and take action in a situation before
others do. It’s about being proactive and taking the lead.

3. Write the full form of ILO.


Answer: International Labour Organization

4. What do you understand by the term ‘environment quality’?


Answer: Environmental quality refers to the overall condition and health of a particular
environment, whether it’s a local ecosystem, a community, or the planet as a whole.

Answer any 1 question out of the given 2 questions. (1X2=2)

5. Explain perseverance and efficiency.


Answer: Perseverance is about not giving up, even when things get tough. It means sticking
to your goals and working through challenges, even if it takes a long time.
Efficiency means doing things in a smart and organized way.
6. What do you mean by ‘adapting to the effects of climate changes’?
Answer: “Adapting to the effects of climate change” means getting ready for the changes
that happen because of climate change. It’s about making changes to stay safe and protect
the environment.

SECTION B – Subject Specific Skills (5+6+6=17 marks)

Answer any 5 questions out of the given 7 questions. (5X1=5)

7. Write the operator used to access members of a class object.


Answer: dot operator

8. Java compiler translates the Java program into ____.


Answer: Java bytecode

9. Expand the term JVM.


Answer: Java Virtual Machine

10. What is a method ?


Answer: A method is a block of code which only runs when it is called.

11. How many primitive data types does Java support in all ?
Answer: The eight primitives datatypes support Java are int, byte, short, long, float, double,
boolean and char.

12. What is the size of a Boolean variable in Java ?


Asnwer: In Java, a boolean variable, which represents a Boolean value (either true or false),
typically takes up 1 byte of memory.

13. Write the use of database management in Railways.


Answer: Database management in railways is essential for passenger ticketing, schedule
management, safety, inventory control, and resource management. It ensures the efficient
operation of railways, manages passenger information, and helps with logistics for both
passengers and cargo.

Answer any 3 questions out of the given 5 questions. (3X2=6)

14. How do the following two codes differ :


(a) System.out.print("Hello World");
(b) System.out.println("Hello World");
Answer: Statement (a) println method appends a newline character (‘\n’) to output, while
statement (b) print method does not.

15. Identify the errors in the following code and write the corrected code :

Answer:
public class IFDemo{

public static void main(String [] args) {

int percentage = 55;

String day = " ";

if ( percentage >= 40) //parenthesis apllied


{ //curly braces applied
System.out.println(“PASSED”) ;
}
else
//colon removed
{
System.out.println(“FAILED”); //println applied
}
} //curly braces applied
} //curly braces applied
16. Differentiate between Short and String data type.
Answer: short is a primitive data type used to store integer values. It is a 16-bit signed two’s
complement integer.
example: short num = 42;
String is a class in Java used to store sequences of characters (text). It’s not a primitive data
type but a reference type.
example: String text = “Java is Awesome!”;
17. Write a method in Java that accepts two numbers as parameters and returns the
greater number.

Answer
public class GreaterNumberFinder {

public static int findGreaterNumber(int num1, int num2) {

if (num1 > num2) {

return num1;

} else {

return num2;

public static void main(String[] args) {

int number1 = 10;

int number2 = 20;

int result = findGreaterNumber(number1, number2);

System.out.println("The greater number is: " + result);

18. What will be the value of b after the execution of the following code ? Also, identify
the logical operator being used in the code :
Answer: After the execution of this code, the value of b will be 10.
The logical operator being used is &&, which represents the logical AND operator.

Answer any 2 questions out of the given 4 questions. (2X3=6)

19. Consider the following class :

Write a command to create a constructor of the above class that initializes the data
members of a class.

Answer:
public class Stud {

// Data members
private String Rno;
private String Sname;
private String Address;
private double marks;

// Constructor
public Stud(String rno, String sname, String address, double m) {
Rno = rno;
Sname = sname;
Address = address;
marks = m;
}

// Display method
public void display() {
// Add code to display the student information
}
}
20. (a) Name the package to be imported in Java to take input from the user at run
time.
Answer: java.util
(b) Consider the following two declarations and differentiate between them :
int a = 50;
Integer b = new Integer(50);
Answer: int a = 50; It directly assigns the integer value 50 to the variable a.
Integer b = new Integer(50); It creates an instance of the Integer class using the
constructor and assigns it to the variable b
The difference is that int is a primitive data type, while Integer is a class that wraps
an int value, allowing it to be treated as an object. In many cases, you can use int for simple
numerical values, but Integer provides more flexibility and object-oriented capabilities when
needed.

21. Write a program in Java to print the average of the first ten numbers.

Answer:
public class AverageOfFirstTenNumbers {

public static void main(String[] args) {

int n = 10; // The number of values to average


int sum = 0;

// Calculate the sum of the first ten numbers


for (int i = 1; i <= n; i++) {
sum += i;
}

// Calculate the average


double average = (double) sum / n;

// Print the average


System.out.println("Average of the first ten numbers: " + average);
}
}
22. (a) Explain wait() method in Java threads.
Answer: In Java, the wait() method is used for thread synchronization. It is used to make a
thread pause and release the lock on the object it’s called on, allowing other threads to
acquire the lock and execute their synchronized code.
(b) Explain setPriority() method in Java and give the range of priority levels.
Answer: The setPriority() method allows you to specify the priority level of a thread.
The range of priority levels in Java threads is defined by the
constants Thread.MIN_PRIORITY and Thread.MAX_PRIORITY, which have the values 1 and 10,
respectively.

SECTION C – Competency-Based Questions (2X4=8 marks)

23. Write the method in Java to accept a string as parameter from the user and print
whether string contains the characters ‘old’ or not.

Answer:
public class StringContainsExample {

public static void main(String[] args) {

String userInput = getUserInput(); // Get a string from the user


boolean containsOld = containsOld(userInput);

if (containsOld) {
System.out.println("The string contains 'old'.");
} else {
System.out.println("The string does not contain 'old'.");
}
}

// Method to get a string from the user


public static String getUserInput() {
// You can use a Scanner to get input from the user
java.util.Scanner scanner = new java.util.Scanner(System.in);
System.out.print("Enter a string: ");
String input = scanner.nextLine();
scanner.close();
return input;
}

// Method to check if a string contains 'old'


public static boolean containsOld(String text) {
return text.contains("old");
}
}
24. Consider the following string variable :
String str1="Hello";
String str2= "morning";
Write the code statements in Java :
(a) To convert the first letter of a string variable 'str1' into uppercase.
(b) To display combined length of string str1 and str2.
(c) To display the index value of the first occurrence of letter 'e' in str1.
(d) To display str1 and str2 after joining them.

Answer (a):
String str1 = "Hello";

str1 = Character.toUpperCase(str1.charAt(0)) + str1.substring(1);

System.out.println(str1);

Answer (b):
String str1 = "Hello";

String str2 = "morning";

int combinedLength = str1.length() + str2.length();

System.out.println("Combined length: " + combinedLength);

Answer (c):
String str1 = "Hello";

int index = str1.indexOf('e');

System.out.println("Index of 'e' in str1: " + index);

Answer (d):
String str1 = "Hello";

String str2 = "morning";

String joinedString = str1 + " " + str2;

System.out.println(joinedString);
25. (a) How are database management concepts helpful in Telecommunications ?
Answer: Database management concepts are essential in telecommunications for efficiently
managing subscriber data, network configurations, billing, fault management, performance
monitoring, inventory, CRM, compliance, data analysis, security, and more. Databases store
critical information used for network operations, customer service, regulatory compliance, and
data-driven decisions.
(b) An Airlines company is making a database of its flights and staff.
The staff table includes : Emp_id, Emp_name, Emp_dob, E_sal. Give the details of Flight
table with its schema.

Answer: The details of the Flight table for the airline company along with its schema as
follows:

• Flight_ID: INT (Integer) – A unique identifier for each flight.


• Flight_Number: VARCHAR – The flight number associated with the flight, stored as a
string.
• Departure_Location: VARCHAR – The location where the flight departs from, stored as
a string.
• Arrival_Location: VARCHAR – The location where the flight arrives, stored as a string.
• Departure_Date: DATE – The date when the flight departs.
• Departure_Time: TIME – The time when the flight departs.
• Arrival_Date: DATE – The date when the flight arrives.
• Arrival_Time: TIME – The time when the flight arrives.
• Aircraft_Type: VARCHAR – The type of aircraft used for the flight, stored as a string.
• Seat_Capacity: INT (Integer) – The total number of seats available on the flight.
• Ticket_Price: DECIMAL – The price of a ticket for the flight, stored as a decimal
number.
Sample paper
Answer any 5 questions out of the given 6 questions on Employability Skills. (5X1=5)

1. Mishit is very creative and is an excellent designer. He lacks communication skills


and this results in :
a) happiness
b) frustration
c) ample opportunities
d) inspiration

2. Ruchika is a teacher and while teaching in the class she is telling her students
about the importance of listening attentively. Identify the incorrect option displaying
the importance of listening attentively.
a) It helps to obtain information
b) It helps in building relationships
c) It helps in resolving conflicts
d) It breaks communication

3. ____ is a mental attitude, reflecting a belief or hope, can lead to positive and
desirable outcomes. It helps us to achieve our dreams, continue working hard
towards achieving success and live a happy life with a positive mindset. Select the
most appropriate option from the following :
a) Stress
b) Pre-planning
c) Selfawareness
d) Optimism

4. Mohit is under a lot of stress due to his examinations during festival season. His
friend suggests some of the ways to overcome stress. Which among the following is
not the correct way to manage stress ?
a) Keop your thoughts in the present. Pondering over past issues makes us feel upset
and helpless.
b) Talk to friends and family for comfort.
c) Practice meditation and yoga.
d) Never look at your accomplishment sheet.

5. In spreadsheets, content of a cell appears in __ and the cell.


a) Title bar
b) Formula bar
c) Address box
d) Sheet tab

6. Select the correct option with respect to spreadsheets :


(i) A workbook is a spreadsheet that has one or more worksheets
(ii) A worksheet that has one ar more workbooks.
(iii) A cell is a grid of rows and columns.
(iv) By default. data is sorted in ascending order in spreadsheets.
a) (i) is correct
b) (ii) and (iii) are both correct
c) (i) and (iv) are both correct
d) (i), (iii) and (iv) are correct

SECTION B

Answer any 20 questions out of the given 25 questions on Employability Skills.


(20X1=20)

7. Adarsh is maintaining data of his company in the form of files. He uses various
application programs to insert, delete or modify data. With time he needs to add
new application programs. Different users maintain details about different areas in
separate files. He faces the problem of data redundancy and data inconsistency very
often. Identify the type of file system approach he uses.
a) Hierarchical approach
b) Traditional file system
c) Database approach
d) Network approach

8. Rashid is maintaining various records of his sales in different independent files. His
boss asked him to give a compiled report of his work. As all the data is stored in
independent files, it became difficult to access information out of multiple files. He is
facing the problem of
a) Lack of date integration
b) Data storage
c) Lack of data availability
d) Data deletion

9. Identify the incorrect statement w.r.t. DBMS


a) It enables creation of repository of data.
b) There is a single repository that is accessed by all the programs.
c) It helps users to create and maintain database.
d) Data is accessible by only one user.

10. Mrigank works in a company. He identifies requirements of the end users and
develops specifications to interact with the database. He plays union role in database
designing. He is a __.
a) Programmer
b) End User
c) Database Administrator
d) Systems Analyst

11. ____ a collection of raw facts which have not been processed to reveal useful ____ .
a) Data, information
b) Information, data
c) Database, Information
d) Information, database

12. Identify the limitations of a database.


a) Improved security
b) User friendly
c) Reduced redundancy
d) Security and recovery overheads

13. Consider a table Employee with fields Empid, Empname, DOB, DOJ, Salary,
Designation and Phone_num. Every employee record must have a non-repeated Empid.
Identify the appropriate key that must be applied while creating the table.
a) Default
b) Null
c) Primary Key
d) Domain

14. Consider a table Student with attributes AdmnNo, Rno, Sname, Class and Marks.
The column AdmnNo is the Primary key. Every student has a Identify set of attributes
that cannot be a superkey in table Student :
a) (AdmNo, Sname)
b) (AdmNo, Class, Marks)
c) (Class, Marks)
d) (AdmnNo, Marks)
15. Consider the table Supplier :

Select the appropriate set of candidate keys


a) S_ID, Supp_name, Company
b) Supp_name, City, Phoneno
c) S_ID, Supp_name, Phoneno
d) S_ID, Phoneno

16. Pariniti wants to remove all the records from table “Customer” with fields
(Cust_ID, C_name, Amount, Dues, Address) whose dues status is ‘Clear’. Select the
query that wil solve the purpose :
a) Delete * from Customer where dues=’Clear’;
b) Remove * from Customer where dues=’Clear’;
c) Drop Customer where dues=’Clear’;
d) Delete from Customer where dues=’Clear’;

17. Jagriti wants to display the list of all the students in relation ‘Student’ with fields
(Admno, Name, DOB, DOJ, City, Class, FatherName, MotherName) whose city name
ends with letter ‘d’ in decending order of Admno. Identify the correct query to do
the same from the following :
a) Select * from Student where City like '%d' order by Admno;
b) Select from Student where City like '%d' order by Admno;
c) Select * from Student where City like '%d' order by Admno desc;
d) Select * from Student where City like '*d' order by Admno desc;

18. Which of the following is incorrect with respect to the foreign key ?
a) Foreign key in one table is primary key of another table.
b) Foreign key of a table must have same name as the associated primary key.
c) A foreign key can have a NULL value.
d) A foreign key can have duplicate value.
19. Sukhdev has created a relation Teacher (Teacher_ID, First_Name, Last_Name,
Gender, Date_of_Birth, Salary, Dept_ No ). Help him to identify the correct query to
display all the records of Teacher with no last name.
a) Select * from Teacher where First name is not null;
b) Select * from Teacher where Last_name = NULL;
c) Select * from Teacher where Last_name is NULL;
d) Select * from Teacher where Last name = is NULL;

20. Ishu created a relation ‘Sales’ and now he wants to add tuples in the relation.
Identify the type of command and the command name from the following :
a) DDL, add
b) DML, insert
c) DDL, insert
d) DML, add

21. Consider a table ‘Flights’ with fields (Flight_ID, Start, Destn, Seats, Costs
Deptime). Select the command to find average Price of all the flights from source
‘Delhi’ to destination ‘Mangalore
a) Select average(cost) from Flights Where start=’Delhi’, Destn=’Mangalore’
b) Select avg(cost) from Flights where start=’Delhi’, Destn=’Mangalorc’;
c) Select avg(cost) from Flights where start=’Delhi’ and Destn=’Mangalore’;
d) Select average(cost) from Flights where start=’Delhi’ and Destn=’Mangalore’;

22. While booking on Airflight Reservation Site, it asks to create a profile with a
username and password. This feature ensures
a) Security
b) Low cost
c) Confirm reservation
d) Confirm services

23. After a railway ticket has been booked online, the customer receives a copy of
the ticket. Which one of the following is the correct option to receive a copy of ticket
?
a) A copy of ticket is received through email.
b) A copy of ticket is sent through courier at your address.
c) Tickets needs to be collected from the nearest railway station.
d) A person from railways visits to deliver the hard copy of ticket.

24. For online booking of train ticket using the Indian Railway Catering and Tourism
Corporation (IRCTC) online portal, Identify the website of IRCTC Portal.
a) irctc.gov.in
b) irctc.in
c) irctc.nic.in
d) irctc.co.in

25. E-Governance or electronic governance is the use of electronic i.e. Information


and Communication Technology (ICT) tools for governance by the government for
the citizens. Which one of the following statements is wrong ?
a) The ICT tools include the Internet, Local Area Network (LAN), mobiles, etc.
b) The use of ICT facilitates providing access to information for the citizens by the
government.
c) The government has set up ICT enabled services like registration of birth/death
certificate.
d) It enables citizens to access information directly, after paying money to a middleman or
a tout.

26. The term DISNIC stands for


a) Distributed Information System of the National Informatics Centre
b) District Information Systom of the National Informatics Centre
c) Distinguished Information System of the National Informatics Centre
d) District Information Systom of the National Information Centralized

27. In India. the main thrust for E-Governance was provided by launching of NICNET
in 1987. It is a
a) National broadband based computer network
b) Natural satellite-based computer network
c) National satellite-based computer network
d) Private satellite based computer organization

28. In online tutoring, the students and the teachers are at physically different
locations, connected to each other via Internet, Seeing very less attendance in online
classes, Daya wants to promote learning among his students during pandemic and
increased participation of his students in online tutorial classes. Identify which one of
the following not an advantage of online tutorial :
a) It provides freedom to the learner to learn at their convenient location
b) Learners can learn at their own pace of learning
c) Audio and video enriched tutorials make it more interesting
d) Online tutorials can be attended even without internet connection

29. Learning the benefits of online teaching Mohit Dorbi searches for educational
websites. Help him to identify the non-educational website from the given list :
a) Udacity.org
b) Coursera.org
c) Yebhi.com (outdated e-commerce website)
(d) w3schools.com

30. Government of India has taken a lot of initiatives to promote online services for
the convenience of citizens. Different methods to make online payments by different
websites are given below. Identify the option that does not provide online payment.
a) Credit card
b) Net banking
c) Debit card transaction
d) Cash on delivery

31. Naman studies in a government school and is a very intelligent child. He is


preparing for is examinations. He noticed that he lost his prescribed textbook due to
renovation work at his home. Help him to identify the website from where he can
download his NCERT notebook for free.
a) Ncert.org
b) Ncert.nic.in
c) W3schools.com
d) edx.org

SECTION C

Answer any 5 questions out of the given 7 questions. (5X1=5)


32. Consider the following tables:

Select appropriate option to display average price of products less than 500.00
a) Select prod_name, avg(price) from product group by prdo_name where
avg(price)<500.00;
b) Select prod_name, avg(price) from product group by prdo_name having
avg(price)<=500.00;
c) Select prod_name, avg(price) from product group by prdo_name having
avg(price)<500.00;
d) Select prod_name, avg(price) from product group by prdo_name where price<500.00;
33. Consider the table Product in Q33 and select the query to display records of
P111, P123 and belong to either ‘Delhi’ or ‘Lucknow’.
a) Select * from Product Where P_ID in ('P111', 'P123') and City in ('Delhi',
'Lucknow');
b) Select * from Product having P_ID in ('P111', 'P123') and City in ('Delhi',
'Lucknow');
c) Select * from Product Where P_ID in ('P111', 'P123') and City in ('Delhi',
'Lucknow') group by City;
d) Select * from Product Where P_ID in ('P111', 'P123') or City in ('Delhi',
'Lucknow');

34. Consider the table Supplier in Q33 and select appropriate query to display
Supplier
name and product name for all the products :
(i) Select Sup_ID, Prod_name from Product P, Supplier S where P.P_ID=S.P_ID;
(ii) Select Sup_ID, S_name from Product P, Supplier S where P.P_ID=S.P_ID
(iii) Select s_name, Prod_name from Product P, Supplier S where P.P_ID=S.P_ID;
(iv) Select P_ID, S_name from Product P, Supplier S where P.P_ID=S.P_ID;
a) Only (i)
b) (ii) and (iii)
c) Only (iii)
d) (i) and (iv)

35. Consider the table Product and give appropriate command to change the
datatype of column P_ID from char (20) to varchar (20)
a) Update table Product set P_ID varchar (20);
b) Alter table Product set P_ID varchar (20);
c) Alter table Product update P_ID varchar (20);
d) Alter table Product modify P_ID varchar (20);

36. Consider the table Product and Supplier and display name of all the suppliers
alongwith their product name who do not belong to city ‘Delhi’ and ‘Jaipur’
(i) Select s_name, prod_name from product P, supplier S where P.P_ID=S.P_ID and
city in ('Delh', 'Jaipur')
(ii) Select s_name, prod_name from product P, supplier S where P.P_ID=S.P_ID and
city not in ('Delhi', 'Jaipur')
(iii) Select s_name, prod_name from product P, supplier S where P.P_ID=S.P_ID and
city<>'Delhi'and city<>'Jaipur'
(iv) Select s_name, prod_name from product p, sup lier S where city in ('Delhi',
'Jaipur')
a) Option (i) and (ii) are correct
b) Option (ii) and (iii) are correct
c) Option (iii) and (iv) are correct
d) Only option (ii) is correct

37. A wide range of onlin internet services are being provided by many companies
these days. Identify the categories of the following online systems.
Category :
X: Applications that require financial online transactions
Y: Applications that provide information and allow interaction.
Online Services :
(i) Online reservation system (ii) E-governance (iii) Online tutorial (iv) Bill payments
(v) Tests
Select the appropriate option from the following :
a) X : (i),(ii) and Y : (iii),(iv),(v)
b) X : (i),(iv) and Y : (ii),(iii),(v)
c) X : (ii),(iii),(v) and Y : (i),(iv)
d) X : (i),(ii),(iii) and Y : (iv),(v)

38. This portal is a one-point source to access all Indian Government websites at all
levels and from all sectors. It includes sites of different States and Union Territories
of India, sites of government departments like judiciary and legislature. It also
provides information about the various sectors like education and agriculture.
Identify the above web portal from the following :
a) goidirectory.co.in
b) goidirectory.org
c) goidirectory.nic.in
d) goidirectory.in

INFORMATION TECHNOLOGY – TERM 1


(Session 2021-22)

Time allowed : 1.5 hours


Maximum Marks : 30

General Instructions :

1. Please read the instructions carefully.


SECTION A

Answer any 5 questions out of the given 6 questions on Employability Skills. (5X1=5)
1. Mishit is very creative and is an excellent designer. He lacks communication skills and
this results in :
a) happiness
b) frustration
c) ample opportunities
d) inspiration

2. Ruchika is a teacher and while teaching in the class she is telling her students about
the importance of listening attentively. Identify the incorrect option displaying the
importance of listening attentively.
a) It helps to obtain information
b) It helps in building relationships
c) It helps in resolving conflicts
d) It breaks communication

3. ____ is a mental attitude, reflecting a belief or hope, can lead to positive and desirable
outcomes. It helps us to achieve our dreams, continue working hard towards achieving
success and live a happy life with a positive mindset. Select the most appropriate option
from the following :
a) Stress
b) Pre-planning
c) Selfawareness
d) Optimism

4. Mohit is under a lot of stress due to his examinations during festival season. His
friend suggests some of the ways to overcome stress. Which among the following is not
the correct way to manage stress ?
a) Keop your thoughts in the present. Pondering over past issues makes us feel upset
and helpless.
b) Talk to friends and family for comfort.
c) Practice meditation and yoga.
d) Never look at your accomplishment sheet.

5. In spreadsheets, content of a cell appears in __ and the cell.


a) Title bar
b) Formula bar
c) Address box
d) Sheet tab

6. Select the correct option with respect to spreadsheets :


(i) A workbook is a spreadsheet that has one or more worksheets
(ii) A worksheet that has one ar more workbooks.
(iii) A cell is a grid of rows and columns.
(iv) By default. data is sorted in ascending order in spreadsheets.
a) (i) is correct
b) (ii) and (iii) are both correct
c) (i) and (iv) are both correct
d) (i), (iii) and (iv) are correct

SECTION B

Answer any 20 questions out of the given 25 questions on Employability Skills.


(20X1=20)

7. Adarsh is maintaining data of his company in the form of files. He uses various
application programs to insert, delete or modify data. With time he needs to add new
application programs. Different users maintain details about different areas in separate
files. He faces the problem of data redundancy and data inconsistency very often.
Identify the type of file system approach he uses.
a) Hierarchical approach
b) Traditional file system
c) Database approach
d) Network approach

8. Rashid is maintaining various records of his sales in different independent files. His
boss asked him to give a compiled report of his work. As all the data is stored in
independent files, it became difficult to access information out of multiple files. He is
facing the problem of
a) Lack of date integration
b) Data storage
c) Lack of data availability
d) Data deletion

9. Identify the incorrect statement w.r.t. DBMS


a) It enables creation of repository of data.
b) There is a single repository that is accessed by all the programs.
c) It helps users to create and maintain database.
d) Data is accessible by only one user.

10. Mrigank works in a company. He identifies requirements of the end users and
develops specifications to interact with the database. He plays union role in database
designing. He is a __.
a) Programmer
b) End User
c) Database Administrator
d) Systems Analyst

11. ____ a collection of raw facts which have not been processed to reveal useful ____ .
a) Data, information
b) Information, data
c) Database, Information
d) Information, database

12. Identify the limitations of a database.


a) Improved security
b) User friendly
c) Reduced redundancy
d) Security and recovery overheads

13. Consider a table Employee with fields Empid, Empname, DOB, DOJ, Salary, Designation
and Phone_num. Every employee record must have a non-repeated Empid. Identify the
appropriate key that must be applied while creating the table.
a) Default
b) Null
c) Primary Key
d) Domain

14. Consider a table Student with attributes AdmnNo, Rno, Sname, Class and Marks. The
column AdmnNo is the Primary key. Every student has a Identify set of attributes that
cannot be a superkey in table Student :
a) (AdmNo, Sname)
b) (AdmNo, Class, Marks)
c) (Class, Marks)
d) (AdmnNo, Marks)
15. Consider the table Supplier :

Select the appropriate set of candidate keys


a) S_ID, Supp_name, Company
b) Supp_name, City, Phoneno
c) S_ID, Supp_name, Phoneno
d) S_ID, Phoneno

16. Pariniti wants to remove all the records from table “Customer” with fields (Cust_ID,
C_name, Amount, Dues, Address) whose dues status is ‘Clear’. Select the query that wil
solve the purpose :
a) Delete * from Customer where dues=’Clear’;
b) Remove * from Customer where dues=’Clear’;
c) Drop Customer where dues=’Clear’;
d) Delete from Customer where dues=’Clear’;

17. Jagriti wants to display the list of all the students in relation ‘Student’ with fields
(Admno, Name, DOB, DOJ, City, Class, FatherName, MotherName) whose city name
ends with letter ‘d’ in decending order of Admno. Identify the correct query to do the
same from the following :
a) Select * from Student where City like '%d' order by Admno;
b) Select from Student where City like '%d' order by Admno;
c) Select * from Student where City like '%d' order by Admno desc;
d) Select * from Student where City like '*d' order by Admno desc;

18. Which of the following is incorrect with respect to the foreign key ?
a) Foreign key in one table is primary key of another table.
b) Foreign key of a table must have same name as the associated primary key.
c) A foreign key can have a NULL value.
d) A foreign key can have duplicate value.
19. Sukhdev has created a relation Teacher (Teacher_ID, First_Name, Last_Name, Gender,
Date_of_Birth, Salary, Dept_ No). Help him to identify the correct query to display all
the records of Teacher with no last name.
a) Select * from Teacher where First name is not null;
b) Select * from Teacher where Last_name = NULL;
c) Select * from Teacher where Last_name is NULL;
d) Select * from Teacher where Last name = is NULL;

20. Ishu created a relation ‘Sales’ and now he wants to add tuples in the relation.
Identify the type of command and the command name from the following :
a) DDL, add
b) DML, insert
c) DDL, insert
d) DML, add

21. Consider a table ‘Flights’ with fields (Flight_ID, Start, Destn, Seats, Costs Deptime).
Select the command to find average Price of all the flights from source ‘Delhi’ to
destination ‘Mangalore
a) Select average(cost) from Flights Where start=’Delhi’, Destn=’Mangalore’
b) Select avg(cost) from Flights where start=’Delhi’, Destn=’Mangalorc’;
c) Select avg(cost) from Flights where start=’Delhi’ and Destn=’Mangalore’;
d) Select average(cost) from Flights where start=’Delhi’ and Destn=’Mangalore’;

22. While booking on Airflight Reservation Site, it asks to create a profile with a
username and password. This feature ensures
a) Security
b) Low cost
c) Confirm reservation
d) Confirm services

23. After a railway ticket has been booked online, the customer receives a copy of the
ticket. Which one of the following is the correct option to receive a copy of ticket ?
a) A copy of ticket is received through email.
b) A copy of ticket is sent through courier at your address.
c) Tickets needs to be collected from the nearest railway station.
d) A person from railways visits to deliver the hard copy of ticket.

24. For online booking of train ticket using the Indian Railway Catering and Tourism
Corporation (IRCTC) online portal, Identify the website of IRCTC Portal.
a) irctc.gov.in
b) irctc.in
c) irctc.nic.in
d) irctc.co.in

25. E-Governance or electronic governance is the use of electronic i.e. Information and
Communication Technology (ICT) tools for governance by the government for the
citizens. Which one of the following statements is wrong ?
a) The ICT tools include the Internet, Local Area Network (LAN), mobiles, etc.
b) The use of ICT facilitates providing access to information for the citizens by the
government.
c) The government has set up ICT enabled services like registration of birth/death certificate.
d) It enables citizens to access information directly, after paying money to a middleman or a
tout.

26. The term DISNIC stands for


a) Distributed Information System of the National Informatics Centre
b) District Information Systom of the National Informatics Contre
c) Distinguished Information System of the National Informatics Centre
d) District Information Systom of the National Information Centralized

27. In India. the main thrust for E-Governance was provided by launching of NICNET in
1987. It is a
a) National broadband based computer network
b) Natural satellite-based computer network
c) National satellite-based computer network
d) Private satellite based computer organization

1987.
28. In online tutoring, the students and the teachers are at physically different locations,
connected to each other via Internet, Seeing very less attendance in online classes, Daya
wants to promote learning among his students during pandemic and increased
participation of his students in online tutorial classes. Identify which one of the
following not an advantage of online tutorial :
a) It provides freedom to the learner to learn at their convenient location
b) Learners can learn at their own pace of learning
c) Audio and video enriched tutorials make it more interesting
d) Online tutorials can be attended even without internet connection

29. Learning the benefits of online teaching Mohit Dorbi searches for educational
websites. Help him to identify the non-educational website from the given list :
a) Udacity.org
b) Coursera.org
c) Yebhi.com
d) w3schools.com

30. Government of India has taken a lot of initiatives to promote online services for the
convenience of citizens. Different methods to make online payments by different
websites are given below. Identify the option that does not provide online payment.
a) Credit card
b) Net banking
c) Debit card transaction
d) Cash on delivery

31. Naman studies in a government school and is a very intelligent child. He is


preparing for is examinations. He noticed that he lost his prescribed textbook due to
renovation work at his home. Help him to identify the website from where he can
download his NCERT notebook for free.
a) Ncert.org
b) Ncert.nic.in
c) W3schools.com
d) edx.org

SECTION C

Answer any 5 questions out of the given 7 questions. (5X1=5)

32. Consider the following tables:


Select appropriate option to display average price of products less than 500.00
a) Select prod_name, avg(price) from product group by prdo_name where
avg(price)<500.00;
b) Select prod_name, avg(price) from product group by prdo_name having
avg(price)<=500.00;
c) Select prod_name, avg(price) from product group by prdo_name having
avg(price)<500.00;
d) Select prod_name, avg(price) from product group by prdo_name where price<500.00;

33. Consider the table Product in Q33 and select the query to display records of P111,
P123 and belong to either ‘Delhi’ or ‘Lucknow’.
a) Select * from Product Where P_ID in ('P111', 'P123') and City in ('Delhi',
'Lucknow');
b) Select * from Product having P_ID in ('P111', 'P123') and City in ('Delhi',
'Lucknow');
c) Select * from Product Where P_ID in ('P111', 'P123') and City in ('Delhi',
'Lucknow') group by City;
d) Select * from Product Where P_ID in ('P111', 'P123') or City in ('Delhi',
'Lucknow');

34. Consider the table Supplier in Q33 and select appropriate query to display Supplier
name and product name for all the products :
(i) Select Sup_ID, Prod_name from Product P, Supplier S where P.P_ID=S.P_ID;
(ii) Select Sup_ID, S_name from Product P, Supplier S where P.P_ID=S.P_ID
(iii) Select s_name, Prod_name from Product P, Supplier S where P.P_ID=S.P_ID;
(iv) Select P_ID, S_name from Product P, Supplier S where P.P_ID=S.P_ID;
a) Only (i)
b) (ii) and (iii)
c) Only (iii)
d) (i) and (iv)

35. Consider the table Product and give appropriate command to change the datatype
of column P_ID from char (20) to varchar (20)
a) Update table Product set P_ID varchar (20);
b) Alter table Product set P_ID varchar (20);
c) Alter table Product update P_ID varchar (20);
d) Alter table Product modify P_ID varchar (20);

36. Consider the table Product and Supplier and display name of all the suppliers
alongwith their product name who do not belong to city ‘Delhi’ and ‘Jaipur’
(i) Select s_name, prod_name from product P, supplier S where P.P_ID=S.P_ID and city
in ('Delh', 'Jaipur')
(ii) Select s_name, prod_name from product P, supplier S where P.P_ID=S.P_ID and city
not in ('Delhi', 'Jaipur')
(iii) Select s_name, prod_name from product P, supplier S where P.P_ID=S.P_ID and
city<>'Delhi'and city<>'Jaipur'
(iv) Select s_name, prod_name from product p, sup lier S where city in ('Delhi',
'Jaipur')
a) Option (i) and (ii) are correct
b) Option (ii) and (iii) are correct
c) Option (iii) and (iv) are correct
d) Only option (ii) is correct

37. A wide range of onlin internet services are being provided by many companies these
days. Identify the categories of the following online systems.
Category :
X: Applications that require financial online transactions
Y: Applications that provide information and allow interaction.
Online Services :
(i) Online reservation system (ii) E-governance (iii) Online tutorial (iv) Bill payments (v)
Tests
Select the appropriate option from the following :
a) X : (i),(ii) and Y : (iii),(iv),(v)
b) X : (i),(iv) and Y : (ii),(iii),(v)
c) X : (ii),(iii),(v) and Y : (i),(iv)
d) X : (i),(ii),(iii) and Y : (iv),(v)

38. This portal is a one-point source to access all Indian Government websites at all
levels and from all sectors. It includes sites of different States and Union Territories of
India, sites of government departments like judiciary and legislature. It also provides
information about the various sectors like education and agriculture.
Identify the above web portal from the following :
a) goidirectory.co.in
b) goidirectory.org
c) goidirectory.nic.in
d) goidirectory.in

You might also like