Python - List, Tuples

Python - List, Tuples

University

•

25 Qs

quiz-placeholder

Similar activities

BFS - (Virtual) Quiz 2

BFS - (Virtual) Quiz 2

University

•

20 Qs

Season 5 #Spaic Machine learning Weekly Quiz

Season 5 #Spaic Machine learning Weekly Quiz

KG - Professional Development

•

20 Qs

Java Control and Loop -2

Java Control and Loop -2

University

•

20 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

•

20 Qs

CN_Minor2

CN_Minor2

University

•

20 Qs

LINKEDLIST- DSA -2-3

LINKEDLIST- DSA -2-3

University

•

20 Qs

Midterm InfoTech2

Midterm InfoTech2

University

•

20 Qs

Database Relationships Quiz

Database Relationships Quiz

12th Grade - University

•

20 Qs

Python - List, Tuples

Python - List, Tuples

Assessment

Quiz

•

Computers

•

University

•

Practice Problem

•

Medium

Created by

Dr.C.P. CSE

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following declarations is incorrect in python language?

  1. xyzp = 5,000,000

  1. x y z p = 5000 6000 7000 8000

  1. x,y,z,p = 5000, 6000, 7000, 8000

  1. x_y_z_p = 5,000,000

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

  1. 1st_variable

  1. first-variable

  1. first_variable

  1. first variable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements will raise an error in Python?

  1. print('Hello, World!')

  1. if x == 10:

  1. for i in range(5):

  1. print(5/0)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will correctly define a function in Python?

  1. def myFunction():

  1. function myFunction[]:

  1. myFunction() = def:

  1. myFunction: def()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: print(type([]))?

  1. list

  1. array

  1. dict

  1. set

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a built-in data type in Python?

  1. List

  1. Tuple

  1. Dictionary

  1. Character

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: print('Hello' + ' World')?

  1. Hello World

  1. HelloWorld

  1. Hello + World

  1. Error

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?

Discover more resources for Computers