Quiz on Data File Formats
FREE Online Courses: Click for Success, Learn for Free - Start Now!
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 15
1. Question
Which of the following is not a valid file accessing mode?
CorrectIncorrect -
Question 2 of 15
2. Question
Which of the following function is used to read n bytes of information from text file?
CorrectIncorrect -
Question 3 of 15
3. Question
Which of the following is the mode to read the file in binary mode?
CorrectIncorrect -
Question 4 of 15
4. Question
- Which of the following is not a function provided by Pandas to read data from different files?
CorrectIncorrect -
Question 5 of 15
5. Question
Given a data frame ‘df’, what does the below code return?
df[1:4]
CorrectIncorrect -
Question 6 of 15
6. Question
Which of the following is the correct code to read all the rows with column ‘clmn’?
CorrectIncorrect -
Question 7 of 15
7. Question
Which of the following creates an object to read the csv file?
CorrectIncorrect -
Question 8 of 15
8. Question
What is the output of the below code?
with open(r’data.txt’,’r’) as f:
print(type(f.readlines()))
CorrectIncorrect -
Question 9 of 15
9. Question
Which of the following functions can be used to read excel files using Pandas?
CorrectIncorrect -
Question 10 of 15
10. Question
What is the correct syntax to read a particular sheet ‘Sheet1’ from the excel file ex?
CorrectIncorrect -
Question 11 of 15
11. Question
What does the below statement return?
print(pd.ExcelFile(r’file.xlsx’))
CorrectIncorrect -
Question 12 of 15
12. Question
Which of the following does the JSON file resemble?
CorrectIncorrect -
Question 13 of 15
13. Question
Which of the following is the correct syntax to read a JSON file using the json module?
CorrectIncorrect -
Question 14 of 15
14. Question
What does the below code do?
excel=xlrd.open_workbook(‘file.xlsx’)
data=excel.sheet_by_index(0)
CorrectIncorrect -
Question 15 of 15
15. Question
What will the output of the below code be if the file has the below data?
with open(r’data.txt’,’r’) as f:
print(f.readline())
Hello
Hi
End
CorrectIncorrect