Class-XII-IP-First Pre Board
Class-XII-IP-First Pre Board
Class-XII-IP-First Pre Board
PART A
1. Which of the following is not a transmission media in computer network? 1
i. Co-Axial Cable
ii. UTP-Cat 5
iii. STP- Cat 6
iv. Power Chord
4. Which of the following data types in SQL is to be enclosed in the single quotes (' ') or double 1
quotes (" ").
i. CHAR, VARCHAR
ii. INTEGER
iii. FLOAT
iv. None of the above
5. If the column “SALARY” of the table EMP contains the data (80000, NULL, 90000, 50000, 1
40000, NULL), what will be the output after the execution of the query?
SELECT COUNT(SALARY) FROM EMP;
i. 6
ii. 4
iii. 2
iv. 5
1
6. ______________ is presenting someone else's work or ideas as your own, with or without 1
their consent, by incorporating it into your work without full acknowledgement.
i. Hacking
ii. Copyright
iii. Phishing
iv. Plagiarism
7. Which function of SQL will produce the current date and time of the system as output? 1
i. DATE ()
ii. TIME()
iii. NOW()
iv. CURRENT_DATE_TIME()
9. Which of the following function is used to find the average of the given data in SQL? 1
i. AVERAGE()
ii. AVG()
iii. MEAN()
iv. AVRG()
10. Consider a series object vls, created using the following statement: 1
vls=pd.Series([11,23,31,61,87,93], index=[ 'a', 'b','c','d','e','f'])
Based on the series above choose the command to retrieve and print the last two element of
the series.
i. print(vls[-2:]
ii. print(vls[-2]))
iii. print(vls[0:-2])
iv. print(vls[-2:0])
2
15. A software available free of cost but proprietary in nature is called 1
i. Free Software
ii. Free and Open Software
iii. Freeware
iv. Adware
16. Which of the following is/are examples of cyber crime? 1
i. Extracting money from using a person’s net banking details.
ii. Posting/ viewing child pornographic material
iii. Taking online payment and not delivering the goods.
iv. All of the above.
Q 17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
i. Both A and R are true and R is the correct explanation for A
ii. Both A and R are true and R is not the correct explanation for A
iii. A is True but R is False
iv. A is false but R is True
17. Assertion (A): - FOSS (free and open-source software) allows the user to inspect the source 1
code and provides a high level of control of the software's functions compared to proprietary
software.
Reasoning (R):- The term ‘free’ indicate that the software will be available for all the user
without paying any fee at all the times.
18. Assertion (A): - The acronym CSV is a short form for Comma Separated Values, which 1
refers to a tabular data saved as plain text where data values are separated by commas. Data
can be imported to a Dataframe from csv file.
Reasoning (R):- If we have the data in a CSV file, we can import the data. But, Python’s
Pandas library must be imported to the program.
SECTION – B
19. What do you understand by digital footprints? Quote an example. 2
OR
Differentiate between MAN and WAN.
21. Explain the following SQL functions with the help of a suitable example. 2
UCASE (), SUBSTR ().
22. Write a python code to create a pandas series named “Marks” to store the marks of IP of the 2
students. The index will contain the name of the 5 students named (Asha, Pratima, Keshav,
Mohit, Hitesh) and marks are (50,90,34,78,35) respectively.
3
25. Given a dataframe namely data as shown below (fruit names are row labels). Write code 2
statement to
i. Find all rows with the label ‘Apple’. Extract all columns.
ii. List only rows with labels ‘Apple’ and ‘Pear’ using loc.
SECTION – C
26. Write outputs for SQL queries (i) to (iii) which are based on the given table EMPLOYEE: 3
TABLE: EMPLOYEE
EmpId FullName ManagerId DateOfJoining City
4
Help Preeti to get answers for the following questions. Give justification for your answers so
that Preeti can understand it clearly.
30. Consider the following table SCHOOLBUS given below. Write SQL queries for i to iii. 3
Table: SCHOOLBUS
Rtno Area_Covered Noofstudents Transporter Charges
1 Vasant Kunj 120 Shivam Travels 100000
2 Hauz Khas 80 Anand Travels 85000
3 Pitampura 55 Anand Travels 60000
4 Rohini 90 Anand Travels 100000
5 Yamuna Vihar 60 Bhalla Co. 55000
6 Krishna Nagar 80 Yadav Co. 80000
7 Vasundhra 110 Yadav Co. 100000
SECTION – D
31. Write suitable SQL query for the following (i) & (iii) and write the output of (iv) & (v): 5
i. Display the position of the first occurrence of the substring “ES” in the string
“Computer Sciences and Informatics Practices”
ii. Display the remainder of 700 divided by 90.
iii. Display the Year of the current date.
iv. SELECT ROUND(127.254,-1);
v. SELECT SUBSTR("This is The Pre-Board Examination of IP", 9, 13);
OR
Explain the following SQL functions using the suitable examples;
i. LTRIM()
ii. LCASE()
iii. MONTHNAME()
iv. INSTR()
v. POWER()
32. 5
5
Computers in each building are networked but buildings are not networked so far.
The company has now decided to connect buildings also.
i. Suggest a cable layout for these buildings.
ii. In each of the buildings, the management wants that each LAN segment gets a
dedicated bandwidth i.e bandwidth must not be shared. How can this be achieved?
iii. The company also wants to make available shared Internet access for each of the
buildings. How can this be achieved?
iv. Which type of transmission medium is appropriate for high speed link to connect a
new building which is 5 KM away from GV1?
6
35. 2+1+1=4
Hospitals Schools Hotels TouristPlaces
Delhi 120 105 98 107
Mumbai 101 59 53 126
Kolkata 83 128 123 115
Hydrabad 62 124 129 81
Guwahati 89 96 61 80
Jorhat 94 130 101 60
Imphal 63 83 83 97
Itanagar 84 70 99 117
Kohima 108 88 127 74
i. Write a program to create the above dataframe named df1
OR
Consider that the above dataframe is already created in your program named df.
Then predict the output of the following statements.
a) df.shape
b) df[1:4]
ii. Display top 2 rows of the dataframe of the columns Hospitals.
iii. Display last 4 rows of the dataframe of the columns TouristPlaces.
*****************************************