Python and SQL Quiz

Python and SQL Quiz

12th Grade

25 Qs

quiz-placeholder

Similar activities

Accountancy

Accountancy

12th Grade

20 Qs

Median Salary Quiz

Median Salary Quiz

3rd Grade - University

20 Qs

Aphmau Quiz❤

Aphmau Quiz❤

KG - University

24 Qs

Season 2 #Spaic Python Weekly Quiz

Season 2 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

VIVO S1

VIVO S1

1st - 12th Grade

20 Qs

Giant Pandas

Giant Pandas

KG - University

20 Qs

Income and Income Tax

Income and Income Tax

10th - 12th Grade

20 Qs

Payroll

Payroll

9th - 12th Grade

23 Qs

Python and SQL Quiz

Python and SQL Quiz

Assessment

Quiz

Other

12th Grade

Hard

Created by

Snehal Jadhav

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? python CopyEdit import pandas as pd A = pd.Series(data=[35,45,55,40]) print(A == data)

True

False

[35,45,55,40]

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? python CopyEdit s = pd.Series([1,2,3,4,5], index=['akram','brijesh','charu','deepika','era']) print(s['charu'])

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which clause is used to group result of an SQL query?

Order by

Group in

Groups by

Group by

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct code to print the shape of a Series S1. python CopyEdit S1 = pd.Series([5,6,7,8,10], index=['v','w','x','y','z'])

print(S1.shape())

print(S1.shape)

print(S1.values)

print(S1.size())

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which import statement is invalid in Python?

import pandas as CLASS12

import pandas as 1pd

import pandas as pd1

import pandas as pd

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Command to install pandas library using pip:

install pip pandas

install pandas

pip pandas

pip install pandas

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Purpose of the WHERE clause in SQL is to:

Create a table

Filter rows based on condition

Specify columns to display

Sort result

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?