
Practice Worksheet- Informatics Practices

Quiz
•
Computers
•
12th Grade
•
Hard
JEEN JO
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assuming the given series, named stud, which command will be used to print 5 as output? Amit 90 Ramesh 100 Mahesh 50 john NaN Abdul 89 Name: Student, dtype: int64
stud.index
stud. length
stud. values
stud.size
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be produced by the following python code? (Assuming that all necessary libraries and modules are imported) series1 = pd.Series(np.array([31,28,31,30]), index = ["Jan", "Feb", "Mar"]) print(series1)
Error: Length of passed values is 4, index implies 3
No output
Jan 31 Feb 28 Mar 31
Jan 31 Feb 28 Mar 31 Apr NaN
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to return both the first column and the second column in a pandas DataFrame df? (considering default labels for rows and columns)
df.loc [ : ,0,1]
df[[0,1]]
df.loc[[0-1]]
df.loc[[0,1]]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To rename the row indices 'Emp1' to 'Manisha', 'Emp2' to 'Shreya', 'Emp3' to 'Roshan' and 'Emp4' to 'Rakesh' in a data frame EmpD, Which of the following statement (a) to (d) will be used?
EmpDF=EmpDF.rename({'Emp1':'Manisha', 'Emp2': 'Shreya', 'Emp3': 'Roshan', 'Emp4': 'Rakesh'}, axis = 'index')
EmpDF=EmpDF.rename({'Emp1':'Manisha', 'Emp2': 'Shreya', 'Emp3': 'Roshan', 4': 'Emp 'Emp4': 'Rakesh'}, axis = 'rows')
EmpDF=EmpDF.rename(['Emp1':'Manisha', 'Emp2': 'Shreya', 'Emp3': 'Roshan', 'Emp': 'Rakesh'], axis = 'index')
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct statement to read from a CSV file in a DataFrame is:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following command is used to display values of all the records having price>3?
print(df[df['price']>3])
print(df['price']>3)
print(df.price>3])
print(df('price')>3)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can be used to specify the data while creating a DataFrame?
Series
List of Dictionaries
Structured ndarray
All of these
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Progamming - Java Syntax

Quiz
•
11th - 12th Grade
20 questions
Python Recap

Quiz
•
7th Grade - University
17 questions
ქვ(not)იზი

Quiz
•
12th Grade
20 questions
DataFrames in pandas Set1

Quiz
•
12th Grade
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
16 questions
Test on dataframe python

Quiz
•
11th - 12th Grade
15 questions
Python study group: Week 3

Quiz
•
12th Grade
15 questions
BTEC unit 2 databases - key terms

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University