Group-B Python Quiz

Group-B Python Quiz

University

7 Qs

quiz-placeholder

Similar activities

X ray production

X ray production

University

9 Qs

Difference between classical mechanics and quantum mechanics

Difference between classical mechanics and quantum mechanics

University

10 Qs

Koha Quiz

Koha Quiz

University

10 Qs

Unit 1 Multiple Choice Practice

Unit 1 Multiple Choice Practice

12th Grade - University

10 Qs

Copy of Seventh Grade Comprehension Quiz

Copy of Seventh Grade Comprehension Quiz

7th Grade - University

10 Qs

CLA-3

CLA-3

University

8 Qs

1 English 1 Quiz- 1

1 English 1 Quiz- 1

11th Grade - University

9 Qs

Data Science Essentials Quiz

Data Science Essentials Quiz

University

10 Qs

Group-B Python Quiz

Group-B Python Quiz

Assessment

Quiz

others

University

Hard

Created by

Ronak Doshi

Used 11+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Which of the following is not a valid data type in Python?
int
float
char
str

2.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

What does the len() function in Python return?
The length of a string
The number of elements in a list or tuple
The number of keys in a dictionary
All of the mentioned

3.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

What does the append() method do when used with lists in Python?
Adds an element to the end of the list
Removes the last element of the list
Sorts the elements of the list
Reverses the order of elements in the list

4.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Which of the following is the correct way to import the math module in Python?
import math
include math
use math
require math

5.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

What does the pop() method do when used with lists in Python?
Removes the first element of the list
Removes the last element of the list
Removes the element at the specified index
Adds an element to the end of the list

6.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Which of the following function convert a string to a float in python?
long(x [,base] )
float(x)
str(x)

7.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

What data type is the object below ? L = [1, 23, ‘hello’, 1]
List
Dictionary
Tuple
Array