Python - List, Tuples

Python - List, Tuples

University

25 Qs

quiz-placeholder

Similar activities

ITIPT01 Quiz No 1

ITIPT01 Quiz No 1

University

20 Qs

Python Pandas Quiz

Python Pandas Quiz

University

26 Qs

แบบทดสอบกลางภาค

แบบทดสอบกลางภาค

10th Grade - University

20 Qs

1st Year quiz

1st Year quiz

University

20 Qs

15 Days of Code

15 Days of Code

11th Grade - University

22 Qs

1212 Midterm Review

1212 Midterm Review

University

20 Qs

GirlsWhoML Workshop 0

GirlsWhoML Workshop 0

University

20 Qs

PTS PROGDAS

PTS PROGDAS

1st Grade - University

20 Qs

Python - List, Tuples

Python - List, Tuples

Assessment

Quiz

Computers

University

Medium

Created by

Dr.C.P. CSE

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?