Day 10 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Day 10 - ONLINE TEST - PL03 PYTHON PROGRAMMING

University

20 Qs

quiz-placeholder

Similar activities

Fintech

Fintech

University

20 Qs

Firewall and Network Security

Firewall and Network Security

University

15 Qs

PBO Inheritance Episode 2

PBO Inheritance Episode 2

University

18 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

REMEDIAL PAS DDG GANJIL

REMEDIAL PAS DDG GANJIL

University

20 Qs

2.4 - 2.6

2.4 - 2.6

University

15 Qs

DBC CHAPTER 3 - REVISION

DBC CHAPTER 3 - REVISION

University

15 Qs

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

Day 10 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Day 10 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

malathia CSE

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?