Python - List, Tuples

Python - List, Tuples

University

•

25 Qs

quiz-placeholder

Similar activities

YAY! Fridate with ComSSA (Network 101)

YAY! Fridate with ComSSA (Network 101)

University

•

20 Qs

Bridge course with C

Bridge course with C

University

•

20 Qs

MOTD 2 DSE-C

MOTD 2 DSE-C

University

•

20 Qs

SUMMATIVE TEST (GRADE 8 - COMPUTER)

SUMMATIVE TEST (GRADE 8 - COMPUTER)

University

•

20 Qs

Quiz CSA (Final)

Quiz CSA (Final)

University

•

20 Qs

C++ Assesment 1

C++ Assesment 1

University

•

20 Qs

Text me!

Text me!

University

•

20 Qs

Control Structures  C#

Control Structures C#

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