Day 10 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Quiz
•
Computers
•
University
•
Hard

malathia CSE
Used 11+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function can be used on the file to display a dialog for saving a file?
Filename = savefilename()
Filename = asksavefilename()
Mars
Fielname = asksaveasfilename()
No such option in python.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of applying the following method df.head(), to the dataframe df ?
Prints the first row of the dataframe
Prints the first 5 rows of the dataframe
Prints the first column of the dataframe
Prints the data frame out
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if no arguments are passed to the seek function?
file position is set to the start of file
file position is set to the end of file
file position remains unchanged
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions can be used to check if a file “logo” exists?
os.path.isFile(logo)
os.path.exists(logo)
os.path.isfile(logo)
os.isFile(logo)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the <readlines()> method returns?
str
a list of lines
list of single characters
list of integers
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements correctly explain the function of truncate() method?
truncates the file’s size
deletes the content of the file
truncates the file’s size and returns that content
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax of open() function?
file = open(file_name, [ access_mode],[buffering])
file object = open(file_name, [access_mode],[buffering])
file object = open(file_name)
None
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
PhotoShop Test Review

Quiz
•
9th Grade - University
20 questions
Computer Application in Education

Quiz
•
University
17 questions
PYTHON-QUIZ-2023

Quiz
•
University
18 questions
CIW IBA Lesson 5 Vocabulary

Quiz
•
8th Grade - Professio...
20 questions
QUIZ DASAR DASAR PEMROGRAMAN JAVA

Quiz
•
11th Grade - University
18 questions
Introduction to Database

Quiz
•
University
15 questions
6th Grade Media Quiz

Quiz
•
KG - University
20 questions
File Handling in C++

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University