Professional Documents
Culture Documents
Practice Paper - 5
Practice Paper - 5
SECTION – A
2
a. mysql>SELECT LEFT(CNAME) FROM Customers WHERE CITIES =’MUMBAI’ OR CITIES =
‘BANGLORE';
b. mysql>SELECT LEFT(CNAME,3) FROM Customers WHERE CITIES =’MUMBAI’ OR CITIES =
‘BANGLORE';
c. mysql>SELECT LEFT(CNAME,4) FROM Customers WHERE CITIES =’MUMBAI’ OR CITIES =
‘BANGLORE';
d. mysql>SELECT LEFT(CNAME,4) FROM Customers WHERE CITIES =’MUMBAI’ OR CITIES =
‘BANGLORE';
13. which one of the following is not a malware?
a. Computer virus
b. Spam
c. Worm
d. Application software
14. Which of the following function returns only the day number from month of selected date?
a. DAY(date)
b. DAYNO(date)
c. DAY_NUMBER(date)
d. DATE(date)
15. Which of the following function will display the specified number of characters from a particular
position of the given string?
a. MID()
b. SUBSTR()
c. Both a and b
d. None of these
16. The default date format is
a. MM-DD-YYYY
b. YYYY-MM-DD
c. DD-MM-YYYY
d. None of these
Directions (Q.Nos. 17-18) Assertion and Reason based Questions.
17. Assertion(A) We cannot freely comment on anything.
Reason(R) Use of technology like Internet, E-mail, cellphones, social media to harass, threaten,
embarrass, or target a person is a cyber crime.
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.
3
c. A is true but R is false
d. A is false but R is true
18. Assertion(A) Histograms are used to describe distributions.
Reason (R) To specify the intervals in x-axis, the property used is “interval”.
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. Aman, a freelance website developer, has been assigned a task to design few web pages for
a book shop. Help Aman in deciding out of static web page and dynamic web page, what
kind of web pages should be designed by clearly differentiating between static and dynamic
web pages on atleast two points?
OR
Priyanka, a beginner in IT field has just started learning web technologies. Help her in
understanding the difference between website and web pages with the help of a suitable
general example of each.
20. Riya has given the following command to obtain highest salary
SELECT MAX(EMP_SALARY) FROM Employee
WHERE GROUP BY DOJ;
But she is not getting the desired output.
Help her by writing the correct command.
21. Aryan, a database administrator, has grouped records of a table with the help of GROUP BY
clause.
He needs to further groups of records generated through GROUP BY clause.
Suggest suitable clause for it and properly, explain its usage with the help of an example.
22. A Social Science teacher wants to use a Pandas series to teach about Indian Historical
Monuments and its States. The series should have the Monument names as values and state
names as indexes. Write the Python code to do so.
23. Explain IPR in brief.
OR
What are the e-Waste hazards?
4
24. Consider the following dataframe df1:
EName Sal Bonus
0 Kavita 50000 3000
1 Sudha 60000 4000
2 Garima 55000 5000
Write the output of the given command:
df1.loc[:0, ‘Sal’]
25. Consider the following Series in Python
data = pd.Series([5, 2, 3, 7], index=[‘a’, ‘b’, ‘c’, ‘d’])
write the Python statements to:
a. Display all odd values of the series.
b. Display the number of elements in the series.
SECTION – C