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

IT_P2_CLASS 12_2023-24

The document outlines the structure and instructions for Periodic Test-2 for Information Technology (802) for Class 12, consisting of 24 questions divided into two sections: Objective and Subjective. Students must answer a total of 17 questions within a maximum time of 3 hours, with specific marks allocated for each section. The document also includes various sample questions covering topics in programming, database management, and online transactions.

Uploaded by

tk200712xx
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)
12 views

IT_P2_CLASS 12_2023-24

The document outlines the structure and instructions for Periodic Test-2 for Information Technology (802) for Class 12, consisting of 24 questions divided into two sections: Objective and Subjective. Students must answer a total of 17 questions within a maximum time of 3 hours, with specific marks allocated for each section. The document also includes various sample questions covering topics in programming, database management, and online transactions.

Uploaded by

tk200712xx
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/ 8

Periodic Test-2[2023-24]

Information technology(802)
Class:12
Max. Time: 3 hrs. Max.Marks: 60

General Instructions:

1. Please read the instructions carefully.


2. This Question Paper consists of 24 questions in two sections – Section A & Section B.
3. Section A has Objective type questions whereas Section B contains Subjective type
questions.
4. Out of the given (6 + 18 =) 24 questions, a candidate has to answer (6 + 11 =) 17 questions in
the allotted (maximum) time of 3 hours.
5. All questions of a particular section must be attempted in the correct order.
6. SECTION A - OBJECTIVE TYPE QUESTIONS (30 MARKS):
i. This section has 06 questions.
ii. There is no negative marking.
iii. Do as per the instructions given.
iv. Marks allotted are mentioned against each question/part.
7. SECTION B – SUBJECTIVE TYPE QUESTIONS (30 MARKS):
i. This section contains 18 questions.
ii. A candidate has to do 11 questions.
iii. Do as per the instructions given.
iv. Marks allotted are mentioned against each question/part.
SECTION A: OBJECTIVE TYPE QUESTIONS
Q1. Answer any 4 out of the given 6 questions (1 x4 = 4 marks)
i Monika want retrieve names of all the teachers having 6 characters in the first name 1
and starting with 'S'.
Help her to write the query.
ii Find the output of the following code. 1
int Integer = 24;
char String = „I‟;
System.out.print(Integer);
System.out.print(String);
(A) Compile error (B) Throws exception (C) I (D) 24 I
iii The National Portal of India provides a single window access to information and 1
services being provided by the various Indian Government entities Which of the
following is the website for the National Portal of India:
A. india.gov.in
B. india.gov.org
C. indian.gov.in
D. d. indian.gov.org
vi Explain the expected output of the following code segment? 1
public class Simplilearn
{ public static void main (String args[])
{ System.out.println(100 + 100 +“Simplilearn");
System.out.println(“E-Learning Company" + 100 + 100);
} }
v Sidak is creating a table SALESMAN with fields Salesman number, Name, Total 1
Sales. He doesn‟t want the Total Sales column to be remain unfilled i.e. he wants to
make entry in this field mandatory. Which constraint she should use at the time of
creating SALESMAN table:
A. Check
B. Default
C. Not null
D. Primary key
vi Mansi want to retrieve the names and department numbers of all the teachers 1
ordered by the Department number and within each department ordered by the
names of the teachers in descending order.

Q2. Answer any 5 out of the given 7 questions (1 x 5 = 5 marks)


i Online shopping is an e-commerce application where the customer can purchase goods 1
over the Internet. There are several websites where the customer can go for online
shopping. Select from the options given below which of the following is not an online
shopping website:
A. snapdeal.com
B. myntra.com
C. coursera.org
D. infibeam.com
ii Internet transactions are susceptible to frauds. Creating a strong password is vital. A 1
strong password has:
A. 6-8 Alphanumeric characters
B. Special symbols
C. Only numbers
D. Both a and b
iii To retrieve all the details of those employees whose last name is not specified? 1
vi What are the differences between continue and break statement? 1
v Which of the following is an invalid variable declaration? 1
A. my_string_1
B. 1st_string
C. my string 1
D. _mystring1
vi Write the query to find the maximum and minimum salary.[Table: Teacher] 1
vii Aditya is compiling a detailed list with a clear description of application features of 1
his project and recognizing the limitations that are placed on the project. Out of the
given options choose the phase of the project in which Aditya is currently in:
A. Requirements Definition Phase
B. Testing Phase
C. Implementation Phase
D. Design Phase

Q3. Answer any 6 out of the given 7 questions (1 x6 = 6 marks)


i Why Java program is platform independent? 1
ii Think of any two work areas which uses Database Management Systems 1
iii Differentiate between = and = = operator in JAVA 1
vi IS NULL value equivalent equal to ZERO. 1
v Select count(*) from emp; return 5 1
Select count(fee) from emp; return 3
Why different output is coming in above two queries?
vi Write any two modes of payment during Online Shopping. 1
vii What are the naming rules we have to follow to declare a variable. 1
A. Variable names can begin with either an alphabetic character,
Underscore or a dollar sign.
B. Space are not allowed in variable names
C. Reserved words cannot be used as a variable name
D. All of the above

Q4. Answer any 5 out of the given 6 questions (1 x5 = 5 marks)


i _________________is an e-commerce application where the customer can 1
purchase goods over the Internet.
ii Name one front end and one Back end application to create Web Applications 1
iii How many times the loop will execute? 1
for (int number = 5; number >= 1; number = number-1)
{
System.out.print(“Square of ” + number);
System.out.println(” = ” + number*number); }
vi Predict the Output 1
int x=9, k=0;
int y=10;
y=++x;
x+=y;
k=x;
What will be the value of k?
v Consider a table „SCORE‟: 1
ROLLNO NAME STREAM OPTIONAL
1 Greesha Science 10
2 Satish Commerce 30
3 Teena NULL 20
4 Yasmine Humanities 10
5 Yashika Science 10
5 Lalit Humanities 20
Reema wants to display names of those students who have not been assigned any
stream. Help her select the correct query:
A. Select name from SCORE where stream =NULL;
B. Select name from SCORE where stream =null;
C. Select name from SCORE where stream = “ “;
D. d. Select name from SCORE where stream is NULL;
vi Consider the table SCORE in Q V. Select the correct query from the options given 1
below to display the names of all streams only once.
A. Select distinct stream from score;
B. Select distinct(stream) from score;
C. Select unique stream from score;
D. Select stream from score where stream = distinct;

Q5. Answer any 5 out of the given 6 questions (1 x5 = 5 marks)


i What should we do to make a data member or a method member of a class visible only 1
within the class?
ii Aarchi wants to add a new column SALE on type integer to the table SALE. Choose 1
the correct query for the same:
A. Add column SALE integer
B. Alter table add SALE integer;
C. Alter table store add SALE integer;
D. Alter table store modify SALE integer;
iii Reeta is going to her aunt‟s house to spend her vacations. To book her rail tickets 1
online she needs to create new account on the reservation portal. Which of the
following is NOT a correct step to do the same?
A. Sign up on the reservation portal.
B. Fill the registration form.
C. The fields marked with a star (*) are optional
D. Click the submit button after filling the form.
vi Java support __________. 1
A. Compiler
B. Interpreter
C. Assembler
D. None of the these
v Choose the correct query to display Stores names, Location and Date of Opening of 1
stores that were opened before 2015.
A. Select storename, location, OpeningYear from store where OpeningYear
”2015”;
B. Select storename, location, OpeningYear from store where OpeningYear =2015;
C. Select storename, location, OpeningYear from store where OpeningYear
!=2015;
D. NONE OF THESE
vi Read the following statements carefully about E-governance 1
i. It is the use of electronic tools for governance.
ii. ii. It has decreased the transparency in the system.
iii. E-governance empowers the citizens socially and economically.
iv. It enables citizens to access information after paying money.
Choose the correct option from the following:
A. Both i and ii are correct
B. Both ii and iii are correct
C. Both i and iii are correct
D. Only iv is correct

Q6. Answer any 5 out of the given 6 questions (1 x5 = 5 marks)


i Write any five attributes of BOOK entity. 1
ii In Java most common pre-built Java output methods are ___________. 1
A. System.out.println();
B. Public class
C. Public static void main(String[] args)
D. None of the above
iii Identify the keyword from the following query: 1
Select * From Student
vi An attribute A of datatype varchar(20) has the value “Shristi”. The attribute B of 1
datatype char(20) has value ”Anshika”. How many characters are occupied in attribute
A and attribute B?
A. 20,7
B. 7,20
C. 9,7
D. 7,9
v The ability of a computer to perform the same set of actions again and again is called 1
looping.
A. Looping
B. Actioning
C. Performing
D. None of the above
vi There are four main phases of development a Web Application Project. 1
Statement 1: The scope of the application is decided in the first
phase.
Statement 2: The data connectivity is established between the
Front-End interface and Back-End Database in the
implementation phase.
Select the correct option:
A. Only Statement 1 is correct
B. Only Statement 2 is correct
C. Both Statement 1 and Statement 2 are correct
D. None of the above statements are correct
SECTION B: SUBJECTIVE TYPE QUESTIONS
Answer any 3 out of the given 5 questions (2 x 3 = 6 marks)

Q7. A table FLIGHT has 4 rows and 2 columns and another table AIRHOSTESS has rows 2
and 4 columns. How many rows and columns will be there if we obtain the cartesian
product of these two tables?
Q8. Write the Precautions while Performing Online Transactions. 2
Q9. What is the purpose of ALTER TABLE command in MySQL? How it is different 2
from UPDATE commands?
Q10. Write a java program to calculate sum of two entered numbers.(Run time input) 2
Q11. Mr. Amit wants to go for a business trip .He is thinking of booking a flight. 2
(a) Name any one site which he should browse for booking an air ticket.
(b) Give any one benefit of online reservation to Amit?

Answer any 3 out of the given 5 questions (2 x 3 = 6 marks)

Q12. Ms Prabha has mistakenly entered „„AMIT‟‟ instead of „„AMITA‟‟ in name field of 2
table „TEACHER‟. Help her to write the correct SQL command to make the desired
changes in the table
Q13. Find the error and give the correct code 2

int number=1;
while(number<=5)
{System.out.print(“Square of ” + number);
system.out.println(” = ” + number*number);}
Q14. Explain the following term: 2
DISNIC, DEITY
Q15. Give two differences between while loop and do while loop . 2
Q16. List the various ways in which database management applications can be used in 2
Government Sector

Answer any 2 out of the given 3 questions (3 x 2 = 6 marks)


Q17. Consider the following table named SBOP with details of account holders. Write 3
commands of MySql for (i) to (iv) and output for (v) to (vii).TABLE SBOP
Accountno Name Balance DateOfopen transaction
SB-1 Mr. Anurag 150000 2011-02-24 7
SB-2 Mr.Akshay 200000 8
SB-3 Ms. Trishta 50000 2012-02-20 5
SB-4 Ms. Aarchi 300000 2013-08-22
SB-5 Ms. Aditi 150000 2012-02-20 12

A. To display Accountno, Name and DateOfopen of account holders having


transactions more than 8.
B. To display all information of account holders whose transaction value is
not mentioned.
C. To add another column Address with datatype and size as VARCHAR(25).

Q18 Create a program of for loop that displays all SUM odd numbers between 1 to 10. 3
Q19 What is the purpose of group by command? How is it different from Order by 3
command? Give example.
Answer any 3 out of the given 5 questions (4 x 3 = 12 marks)
Q20. i. What will be the value of rem after the execution of the following code 4
snippet? Give reason.

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

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

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

Q21. A Railway company uses machines to sell tickets. The machine details and daily 4
sales information are recorded in two tables:

Table Name: Machine


Field Data type
Machine _ID Char(3)
Station Char(30)

Table Name: Sales .


Field Data type
Machine _ID Char(3)
date Date
Tickets_Sold Integer
Income Decimal(8,2)

The primary key of the table Machine is Machine_ID. Records in the table Sales are
uniquely identified by the fields Machine_ID and Date.
(A) Create the tables Machine and Sales.
(B) Write a query to find the number of ticket machines in each station.
(C) Write a query to find the total ticket income of the station “New Delhi” of each
day.
(D) Write a query to find the total number of tickets sold by the machine
(Machine_ID = 122) till date
Q22. Write a JAVA program to calculate Marks in 5 subjects and show the percentage of 4
Students. Also calculate grade as per given condition:
Per<45 print grade “E”
Per>45 print grade “D”
Per>70 print grade “C”
Per>80 print grade “B”
Per>90 print grade “A”
Q23. A. How database management concepts are helpful in Government sector? 4
B. A Hospital is making database of patients and its staff. Doctor table
includes Docid, Dname, and Department. Give details of Patient Table
along with its schema.
Q24. Write the Mysql commands for the following queries :- 4
TRAIN
TrainID Station
0001 DELHI
0002 MUMBAI
COUNTER
Ticket Date Cost TrainN
ID o
T1 12/3/22 500 0001
T2 15/5/22 450 0002
T3 15/5/22 500 0001
(A) To find all the stations, date for ticket id as T1.
(B) To find the total ticket amount collected from each station.
(C) To displays all the tables created in the current database.
(D) To delete table counter along with the information in it.

*****************************************************************************

You might also like