Imp Questions For Preboard

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

UNIT-1 (DATA HANDLING USING PANDAS-I)

1.What is data structure ? how many data structures available in python ?


2.What is the difference between series and dataframe ?Explain with example.
3. Create a Series (11,12,13,14,15) with following data structure
(i) An array (ii) scalar value-50 (iii) A Dictionary (iv) with mutable index-a,b,c,d,e
Q.4 Consider a series ( 100,150,200,250) and perform Mathematical operation
on given series:-
(i) To multiply by series (ii) find square of all values
Q.5 What will be the output of the following code:-
Import pandas as pd
Import numpy as np
data=np.array([‘a1’,’b1’,’c1’,’d1’,’e1’])
data1= np.array([10,20,30,40,50])
s=pd.series(data)
s1=pd.series(data1)
print(s) print(s[ :3]) print(s[1:3])
print(s[3: ]) print(s1*2) print(s1**2)

Q.6write a program to add two series s1 and s2.

Q.7 Explain head() and tail () function with example.

Q.8 Write python statements for the following

A B C
0 1 2 3
1 5 6 7

a) create a data frame using List of Dictionaries.


b)To change values of column “C”. New values are (4, 9)
c) To change all the values of column “B” to 0
d) To add a new row with value (7, 8, 9)
e) To delete a column B.
f) Write the output of the statement : DF.size( )
Q9 . Write a program to create data frame from a single n d array.
Q10 Write the output of the following :
Import numpy as num
import pandas as pd
arr=num.array([31,47,121])
S1 = pd.Series(arr)
print(S1[0])

Q11. Write the output of the following :


Import numpy as num
import pandas as pd
arr=num.array([1,7,21])
S1 = pd.Series(arr, index = (77,777))
print(S1)
Q12. Fill in the blank of given code, if the output is 71.
import pandas as pd
S1 = pd.Series([10, 20, 30, 40, 71,50])
print(S1[ __________ ])
Q13. Write the output of the following code :
import pandas as pd
S1 = pd.Series([2, 5, 7, 10])
print(S1 + 2)
print(S1 * 2)
print(S1 ** 2)
print(S1 - 2)
print(S1 > 2)
Q14. Write the output of the following code :
import pandas as pd
S1 = pd.Series([2, 5, 7, 10])
S2 = pd.Series([1, 3, 5, 7])
print(S1 + S2)
Q15. Write a statement to display first 7 rows from dataframe “DF”.

Q16. Write a statement to display last 7 rows from dataframe “DF”.

Q. 17What are the attributes of DataFrame.

Q.18 use of loc and iloc in dataframe

Q.20Write a Python code to create a DataFrame with appropriate column


headings from the list given below:
[[111,'Gaurav',90],[112,'Raj',91],[113,'Sam' ,76],[114,'Yuv',89]]
Q.21Write the statement to display index and column of above DataFrame.
Q.22 Draw a line chart ,bar chart for the given values and save the chart.
X=[1,2,3,4,5]
Y=[10,20,30,40,50]
UNIT-2 (DATABASE QUERY USING SQL)
1. SQL FUNCTIONS AND TYPES:-STRING,NUMERIC , DATE AND TIME
2. AGGREGATE FUNCTIONS-min(),max(),count(),sum(),avg()
3. DIFFRENCE BETWEEN GROUP BY AND ORDER BY
4. DISTINCT AND ALL KEYWORD
5. What is the purpose of Group by clause ? Explain with the help of
suitable Example.
6. PRACTICE OF ALL SQL QUERIES WITH SQL COMMANDS

UNIT-3 (COMPUTER NETWORK)


7. What is network? What are the various types of networks? Explain with
diagram
8. What is topology ? Which topology is best and why ? Explain with
diagram.
9. What is modem ? what are the types of MODEM ?Explain it.
10.Write any 2 advantages and 2 disadvantages of STAR topology?
11.Why switch is called Intelligent hub ?Explain with proper reason.
12.What is the difference between Repeater and router ? Explain with
diagram.
13.Write any 2 difference between bridge and Gateway ?

14.Write any 2 difference between Active Hub and Passive Hub ?


15.Write any 2 difference between IP Address and MAC address.
16.Explain client server relation with diagram.
17.Short notes on:
(i) Website (ii) webpage and types (iii)cookies (iv) web browswer

UNIT-4 (social Impacts)

1. What is digital footprint and types


2. What is the difference between Email and chat?
3. EWASTE management and benefits
4. IPR(Intellectual Property Rights)
5. Short notes on :- Copyright,patent,trademark,license
6. Plagiarism
7. phishing
8. Open source software,free software
9. India’s IT Act 2000
10.Name of any two health issues when extra use of Technology.
11.What is cyber Stalking and cyber trolling. Write down the medium/ways
of trolling.
12.What is the use of firewall.
FULL FORMS
1.URL 2.VOIP 3.HTTP 4.FTP 5.TCP
6.IP 7.WWW 8..IRC 9.ICQ 10 IMAP
**********************ALL THE BEST*************************

You might also like