Group-B Python Quiz

Group-B Python Quiz

University

7 Qs

quiz-placeholder

Similar activities

chapter 2 - American Values and Beliefs

chapter 2 - American Values and Beliefs

University

10 Qs

Module 23: America as a World Power

Module 23: America as a World Power

8th Grade - University

12 Qs

Buoyancy and Density Quiz

Buoyancy and Density Quiz

6th Grade - University

11 Qs

Habitat Quiz

Habitat Quiz

1st Grade - University

11 Qs

they need

they need

University

10 Qs

Unit 3 Vocabulary

Unit 3 Vocabulary

7th Grade - University

11 Qs

Mastery Monday _Franklin Autobio_Lit3

Mastery Monday _Franklin Autobio_Lit3

11th Grade - 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

AI

Enhance your content in a minute

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

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