Search Header Logo

Python Test

Authored by Piyush Kundu

Computers

Professional Development

Used 3+ times

Python Test
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

80 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which of the following, data is stored permanently ?

Variable

File

Both of the above

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

NumPy stands for :

Numbering Python

Number In Python

Numerical Python

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function returns the current position of file pointer?

get()

tell()

seek()

cur()

Answer explanation

The correct function to return the current position of the file pointer is tell(). It provides the current offset in the file.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does readlines() method return?

Dictionary

String

Tuple

List

Answer explanation

The readlines() method returns a List of lines read from a file. Therefore, the correct answer is List.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will read entire content of file (file object ‘f’) ?

f.reads( )

f.read( )

f.read(all)

f.read( * )

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which software development phase quality of software is documented?

Testing

Delivery

Idea

Development

Answer explanation

In the software development phase, the quality of software is documented during the Testing phase, where various tests are conducted to ensure the software meets the required quality standards.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python is written in __________.

Java

C

PHP

All of the above

Answer explanation

Python is written in C, making the correct choice 'C'.

Access all questions and much more by creating a free account

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?