Class 12 Previous Year Questions
Class 12 Previous Year Questions
(Session 2023-24)
1. Answer any 4 questions out of the given 6 questions on Employability Skills. (4×1=4)
(ii) In the acronym ‘SMART’ to set goals, the letter ‘S’ implies ____.
(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.
(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.
(vii) In which phase of web based application development, will the feasibility of the project be
checked ?
(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
(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.
(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()
(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.
(iv) Write the SQL command to display all the details of teachers from the table ‘Teacher’
whose salary is greater than 15000.
(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)
(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);
Answer any 3 questions out of the given 5 questions on Employability Skills. Answer
each question in 20-30 words.
8. What are the different stages of active listening ? Write the names of any four stages.
Answer any 3 out of the given 5 questions in 20-30 words each. (3X2=6)
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.
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) 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.
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
(i) An individual demonstrates a desire to do his/her work without any external reward
is ____ motivation.
Answer: intrinsic
(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
(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
(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
(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()
(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
(iv) The ____ statement evaluates the test after executing the body of a loop.
Answer: do-while loop
(i) In SQL, while applying condition on a group, instead of WHERE clause ____ clause is
used.
Answer: HAVING
(iii) An application that can be accessed via a web browser, over a network connection is
called a ____ application.
Answer: web
(iii) Create backend database, frontend and the connectivity between them comes
under which phase ?
a) Requirement Definition
b) Design
c) Implementation
d) Testing
(v) An error situation that is unexpected in the program execution and causes it to
terminate unexpectedly is called ____.
Answer: “exception” or “runtime exception”
Answer any 3 out of the given 5 questions on Employability Skills. Answer each question in 20-
30 words. (3X2=6)
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.
Answer any 3 out of the given 5 questions in 20-30 words each. (3X2=6)
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
Name VARCHAR
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.
Students Table:
public class SyntaxErrorExample {
System.out.println("Hello, World!"
Courses Table:
SyntaxErrorExample.java:4: error: ';' expected
System.out.println("Hello, World!"
FirstName VARCHAR(50),
LastName VARCHAR(50),
CourseID INT,
);
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 :
21. Write a code in Java to print the squares of numbers from 1 to 5 by using for loop.
Answer:
public class SquareNumbers {
int square = i * i;
}
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 {
// 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.
// 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)
(iii) A ____ is rectangle shaped box, where row and column meet in a spreadsheet.
Asnwer: cell
(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
(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;
(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) 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
(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.”
(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.
(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()
(ii) Mention any one eGovernance initiative taken by the Central Government of India.
Answer: Digital India
(iv) Requirement, ____, Implementation and Testing are the phases in Web Application
Development.
Answer: Design
(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
Answer any 3 questions out of the given 5 questions on Employability Skills. Answer each
question in 20-30 words.
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
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”
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.
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;
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.
FROM Orders
GROUP BY CustomerID
FROM Orders
GROUP BY CustomerID
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:
// Member methods
public void startEngine() {
System.out.println("The " + brand + " " + model + "'s engine is started.");
}
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.
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.
15. Identify the errors in the following code and write the corrected code :
Answer:
public class IFDemo{
Answer
public class GreaterNumberFinder {
return num1;
} else {
return num2;
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.
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 {
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 {
if (containsOld) {
System.out.println("The string contains 'old'.");
} else {
System.out.println("The string does not contain 'old'.");
}
}
Answer (a):
String str1 = "Hello";
System.out.println(str1);
Answer (b):
String str1 = "Hello";
Answer (c):
String str1 = "Hello";
Answer (d):
String str1 = "Hello";
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:
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.
SECTION B
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
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
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 :
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
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
SECTION C
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
General Instructions :
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.
SECTION B
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
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
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 :
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.
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
SECTION C
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