Python Quiz

Python Quiz

1st Grade

20 Qs

quiz-placeholder

Similar activities

ÔN TẬP TIN HỌC 5 KÌ 2

ÔN TẬP TIN HỌC 5 KÌ 2

1st - 5th Grade

20 Qs

ASK T3 : 1.1 Pembangunan Aturcara

ASK T3 : 1.1 Pembangunan Aturcara

1st - 12th Grade

20 Qs

Kuis Algoritma

Kuis Algoritma

1st - 10th Grade

20 Qs

Sistem Nombor Perduaan

Sistem Nombor Perduaan

1st Grade

17 Qs

การจัดสเปคคอมพิวเตอร์

การจัดสเปคคอมพิวเตอร์

1st - 3rd Grade

20 Qs

Google Sheets ReViEw

Google Sheets ReViEw

KG - University

18 Qs

Microcontrolere Noțiuni generale. Structura internă

Microcontrolere Noțiuni generale. Structura internă

KG - 12th Grade

16 Qs

ArrayList Class

ArrayList Class

KG - 5th Grade

15 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

1st Grade

Medium

Created by

Adham Elmuntser

Used 1+ times

FREE Resource

AI

Enhance your content

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 method is used to add an element to the end of a list in Python?

add()

append()

insert()

extend()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: fruits = ['apple', 'banana', 'cherry']; print(fruits[3])?

apple

IndexError

None

cherry

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python module provides a basic implementation of arrays?

numpy

collections

array

sys

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the second element of a single-dimensional array defined as arr.array('i', [1, 2, 3, 4, 5])?

arr[2]

arr[1]

arr[0]

arr[-1]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: import numpy as np; multi_dim_array = np.array([[1, 2, 3], [4, 5, 6]]); print(multi_dim_array[1, 2])?

1

2

5

6

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you represent a record in Python?

list

tuple

set

dictionary

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data structures in Python is unordered and does not allow duplicate values?

list

tuple

set

dictionary

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?