2yt Ip 7
2yt Ip 7
SECTION A
1. Rohit forgot his laptop in his car and when he came back, he found his laptop was missing. This
act is:
(a) cybercrime (b) phishing (c) theft (d) plagiarism
2. The rights of the owner of information to decide, how much information is to be
shared/exchanged/distributed, are collectively known as:
(a) Intelligent Portable Rights (b) Intellectual Property Rights
(c) Interactive Property Rights (d) Instance Portability Rights
3. Which of the following statement(s) is/are incorrect?
(a) A column of a DataFrame can be deleted.
(b) A column of a DataFrame can be deleted, if it carries no data.
(c) A column of a DataFrame can be deleted, if it carries NaN values.
(d) Columns of DataFrame cannot be deleted.
4. Electronic discovery technique used to determine and reveal technical criminal evidence is
called:
(a) cyber investigation (b) cyber evidence (c) cyber forensics (d) cyber intrude
5. The HAVING clause acts like a WHERE clause, but it identifies columns that meet a criterion,
rather than rows.
(a) Truc (b) False (c) Depend on query (d) Depend on column
6. A series is created with 5 integers as
import pandas as pd
Nseries=pd. Series([22,44,55,33,66])
print(Nseries.nbytes)
Find the output of the above code.
(a) 15 (b) 10 (c) 20 (d) 25
7. The term phishing is synonymous to the term:
(a) spoofing (b) spooling (c) stalking (d) None of these
8. While creating a DataFrame Sunil wanted to specify the datatype, ____ property will help to do
so.
(a) datatype (b) type (c) dtype (d) dt
9. What does the web server need to send back information to the user?
(a) Home address (b) Domain name (c) IP address (d) Both (b) and (c)
10. select ___________(calorie) from food where type = " Not-Protein";
Requirement: To get the average calories of non-protein type foods. Select the appropriate
function to complete the above query.
(a) Mean (b) Min (c) AVG (d) Sum
11. ___________ device may operate at different network speeds depending on the protocol
standard they support.
(a) Router (b) Ethernet card (c) RJ45 Connector (d) None of these
12. Help Ritesh to write the command to display the name of the youngest student.
(a) SELECT Name, MIN(DOB) FROM Student;
(b) SELECT Name, MAX(DOB) FROM Student;
(c) SELECT Name, MIN(DOB) FROM Student GROUP BY Name;
(d) SELECT Name, MAXIMUM(DOB) FROM Student;
13. Which of the following statements is incorrect in the context of a worm?
(a) It represents a category of malware (b) It creates infections in a computer
(c) It is self-replicating (d) It cannot travel on its own
14. In MySQL which function is used to find the round off value of the specified floating-point
number?
(a) FLOAT (b) TRUNCATE() (c) ROUND (d) DECIMAL
15. Which of the following operators compare two conditions at a time to determine whether a row
can be selected for the output?
(a) Comparison operators (b) Logical operators (c) Arithmetic operators (d) Between operator
16. Which of the following commands is not a data manipulation command?
(a) SELECT (b) INSERT (c) UPDATE (d) ALTER
Directions (Q.Nos. 17-18) Assertion and Reason based Questions.
17. Assertion (A) Web Browser is application software that allows us to view and explore
information on the web.
Reason (R) Web browser can show text, audio, video, animation and more. It is the
responsibility of a web browser to interpret text and commands contained in the web page.
(a) Both A and Rare true and R is the correct explanation of A
(b) Both A and R are true but R is not the correct explanation of A
(c) A & is true but R is false.
(d) A is false but R is true
18. Assertion (A) Some time we want to combine the two DataFrame using the merge() function.
Reason (R) Merging operation can be performed only with common values of column not with
specific column.
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A
(c) A is true but R is false
(d) A is false but R is true.
SECTION B
19. Identify the following devices:
(i) An intelligent device that connects several nodes to form a network and redirects the
received information only to intended node(s).
(ii) A device that regenerates (amplifies) the received signal and re-transmits it to its
destinations.
Or
What is a modem?
20. Prachi has given the following command to obtain the highest marks:
SELECT MAX(Marks) FROM Student WHERE GROUP BY Class;
But she is not getting the desired result. Help her by writing the correct command.
21. Write a query to display the Sum, Average, Highest and Lowest marks of the students grouped
subject and sub-grouped by class.
22. The Python code written below has syntactical errors. Rewrite the correct code and underline the
corrections made.
import pandas as Pd
data = {Name ["Alice", "Bob", "Charlie”], Age [25, 30, 22])
df pd.DataFrame(Data)
df[‘Country’] = [‘USA’, ‘Canada’, ‘UK’]
print(df)
23. For avoiding the plagiarism, what guidelines should we follow?
24. Given a DataFrame graded
import pandas as pd
gradedf=pd.DataFrame({‘Name’: [‘Rashmi’, ‘Anil’, ‘Sunil’, ‘Becker’], ‘Grade’:[‘A’, ‘B’, ‘C’,
‘D’]})
print (gradedf.iloc[0: 2])
Find the output.
25. Complete the given Python code: to rename the column Age to Years in the DataFrame df and
display the updated DataFrame.
import _____ as pd
df = pd.DataFrame ({‘Name’: [‘John’, ‘Alice’, ‘Bob’], ‘Age’: [25, 30, 22]})
df.________(columns = {‘Age’: ________})
print(df)
SECTION C
(i) Write a command to update the salary of the employee to 40000, whose S.No is 3.
(ii) Write a query to add a column Date of Joining to the table MASTER.
(iii) Write a query to display Age and Department of those employees whose salary is greater
than 120000.
(iv) Write a query to display Name whose Salary is more than 15000 and Department is
Computer.
32. Given the following code, where a series is created storing population of some cities:
import pandas as pd
popseries=pd.Series([34567,890,450,678,9001)
(a) What will be the output of following commands?
(i) print(popseries.tail(3).head (2)
(ii) print (popseries/2)
(b) Write the Python statement to display the elements of dataset with value above 500.
(c) Write Python statement for the required output (5,)
Or (Option for part (c) only)
Write Python statement to assign index to the series as 11, 12, 13, 14, 15.
SECTION E
33. Write SQL queries for the questions from (i) to (v) on the basis of table Class.
Table: Class
No Name Stipend Subject AvgMarks Grade
01 Vikas 1200 Medical 67 B
02 Boby 1400 Humanities 78.4 B
03 Tarun 1000 Medical 64.8 C
04 Varun 1600 Non-Medical 84 A
05 Atul 1800 Non-medical 92 A
(i) Select all the non-medical stream students from the table Class.
(ii) Arrange the records of Class name wise.
(iii) List the records whose grade is B or C.
(iv) Insert the new row with the following data. (06, Jack', 2800, 'Humanities', 98, 'A')
(v) Identify the attribute to be best suitable for primary key.
Or
Name 5 major string functions with their purpose.
34. Granuda consultants are setting up a secured network for their office campus at Faridabad for
their day-to-day office and web-based activities. They are planning to have connectivity between
3 buildings and the head office situated in Kolkata. Answer the questions (i) to (v) after going
through the building positions in the campus and other details, which are given below.
Distance between various buildings
Building RAVI to Building JAMUNA – 120 m
Building RAVI to Building GANGA – 50 m
Building GANGA to Building JAMUNA – 65 m
Faridabad Campus to Head Office – 1450 km
Number of computers
Building RAVI – 25
Building JAMUNA – 150
Building GANGA – 51
Head Office – 10
(i) Suggest the most suitable place (i.c. Building) to house the server of this organisation. A give a
reason to justify your suggested location.
(ii) Suggest a cable layout of connections between the building inside the campus.
(iii) Suggest the placement of the following devices with justification
(a) Switch
(b) Repeater
(iv) Consultancy is planning to connect its office in Faridabad which is more than 10 km from
head office. Which type of network will be formed?
(v) State the use of HUB?
35. Write the Python code to display the following bar graph,:
OR
Write the code to plot below given chart.