0% found this document useful (0 votes)
21 views9 pages

IP June Month MCQ

Uploaded by

vampiresucks6666
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)
21 views9 pages

IP June Month MCQ

Uploaded by

vampiresucks6666
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/ 9

VELS VIDYASHRAM

INFORMATICS PRACTICES (065)


STD: XII
JUNE MONTH MCQ QUESTIONS

WEEK1
WORKSHEET 1

1. Which is a join condition contains an equality operator:


a) Equijoins
b) Cartesian
c) Both Equi Joins and Cartesian
d) Cross join

2. Equi joins is formed by equating


a) foreign key with primary key
b) Each row with all other rows
c) primary key with primary key
d) two tables

3. In an equi join, what is the condition for joining two tables?


a) Column names in both tables must be different
b) Column names in both tables must be the same
c) Tables should have different primary keys
d) Tables should have different number of rows

4. Which keyword is used to perform an equi join in SQL?


a) JOIN
b) MERGE
c) LINK
d) COMBINE

5. Which operator is used to specify the condition in an equi join?


a) =
b) LIKE
c) <>
d) IN
6. In an equi join, what is the commonality between the columns used for
joining?
a) They must have the same data type
b) They must have different data types
c) They must be primary keys
d) They must be auto-incrementing

7. What is the result of an equijoin query?


a) A new table with combined rows from both tables
b) A table with only rows from the first table
c) A table with only rows from the second table
d) A table with rows that satisfy the join condition

8. When should you use an equijoin in SQL?


a) When you want to combine all rows from both tables
b) When you want to combine rows based on a related
column between the tables
c) When you want to combine rows without any common
Columns
d) When you want to exclude rows that do not have a match

9. In SQL equi joins, which clause is used to specify the columns for joining?
a) GROUP BY
b) ORDER BY
c) HAVING
d) ON

10. Which of the following statements is true regarding equi joins in SQL?
a) Equijoins are also known as outer joins
b) Equijoins are used to combine rows based on a
specified condition
c) Equijoins always include all rows from both tables
d) Equijoins do not require a common column between the
tables
WEEK 2

WORKSHEET 2
1. A __________ is a collection of data values and operations that can be
applied to that data.
a) Data Structure
b) Data Frame
c) Table
d) Database

2. A data structure is a way of storing and ________data.


a) organizing
b) accessing
c) manipulate
d) all of the above

3. Which of the following command is used to install pandas?


a) pip install pandas
b) install pandas
c) pip pandas
d) pandas pd

4. PANDAS stands for _____________


a) Panel Data Analysis
b) Panel Data analyst
c) Panel Data
d) Panel Dashboard

5. Python pandas was developed by?


a) Guido van Rossum
b) Travis Oliphant
c) Brendan Eich
d) Wes McKinney
6. __________ is an important library used for analysing data.
a) Math
b) Random
c) Pandas
d) String

7. Which of the following are modules/libraries in Python?


a) NumPy
b) Pandas
c) Matplotlib
d) All of the above

8. Important data structure of pandas is/are ___________


a) Series
b) Data Frame
c) Both of the above
d) None of the above

9. _________ is used when data is in Tabular Format.

a) NumPy
b) Pandas
c) Matplotlib
d) All of the above

10. ____________is the most popular open-source python library used for
doing data analysis.

a) Pandas
b) Mysql
c) Dataframe
d) Series
WEEK 3
Worksheet-3
1. A _______________ is a one-dimensional array.

a) Data Frame
b) Series
c) Both of the above
d) None of the above

2. Pandas Series can have _________________ data types


a) float
b) integer
c) String
d) All of the above

3. Which of the following thing can be data in Pandas?


a) a python dict
b) an ndarray
c) a scalar value
d) All of the above

4. What will be correct syntax for pandas series?


a) pandas_Series( data, index, dtype, copy)
b) pandas.series( data, index, dtype)
c) pandas.Series( data, index, dtype, copy)
d) pandas_Series( data, index, dtype)

5. A Series by default have numeric data labels starting from ______________.


a) 3
b) 2
c) 1
d) 0

6.The data label associated with a particular value of Series is called its
______________
a) Data value
b) Index
c) Value
d) None of the above

7. Which of the following function/method help to create Series?

a) series( )
b) Series( )
c) createSeries( )
d) None of the above

8.When you print/display any series then the left most column is showing
_________ value.

a) Index
b) Data
c) Value
d) None of the above

9.Minimum number of argument we require to pass in pandas series ?

a) 0
b) 1
c) 2
d) 3

10.In series_______is mutable and ___________is immutable

a) size,data
b) data,size
WEEK 4
WORKSHEET 4

1.Write the output of the following :


import pandas as pd
series1 = pd.Series([10,20,30])
print(series1)

a)

0 10
1 20
2 30
dtype: int64

b)

10
20
30
dtype: int64

c)

0
1
2
dtype: int64

d) None of the above

2. What is a scalar value in the pandas series?


a) constant value
b) different value
c) decimal value
d) integer value

3. Python library numpy is added for creating numpy array and generating
___________

a) random number
b) array
c) python modules
d) columns

4. Which of the following statement will create an empty series named “S1”?
a) S1 = pd.Series(None)
b) S1 = pd.Series( )
c) Both of the above
d) None of the above

5. How many values will be there in array1, if the given code is not returning any
error?
series4 = pd.Series(array1, index = [“Jan”, “Feb”, “Mar”, “Apr”])
a) 1
b) 2
c) 3
d) 4

6. Dictionaries are optimized to retrieve values when --------is known?


a) key:value
b) key
c) value
d) index

7. Write the output of the following:

S1=pd.Series(14, 7, index = ['a', 'b', 'c'])

print(S1)

a)

a 14
b7
c7
dtype: int64

b)
a 14
b7
dtype: int64
c)Error
d)None of the above

8.Analyze the statements given below -

When we can create Series from Dictionary:


a) Keys of dictionary become index of the series.
b) Order of indexes created from Keys may not be in the same order as
typed in dictionary.
c) Both are correct
d) Both are wrong

9. Predict the output of the following code?


import pandas as pd
import numpy as np
a=np.array([100,500])
s=pd.Series(a)
print(s)
a)
0 100
1 500
b)
0 500
1 100
c) Error
d)No output

10.Identify the type of error for the following code


import pandas as pd
s=pd.Series(94,38,index=[1,2])
print(s[1])
a) Value Error
b) Syntax Error
c) Type Error
d) Index Error

You might also like