Advanced Data Type and Decision Control Statements

Advanced Data Type and Decision Control Statements

University

42 Qs

quiz-placeholder

Similar activities

Secure Scripting: Exam 1 Review: Modules 1 - 4

Secure Scripting: Exam 1 Review: Modules 1 - 4

University

38 Qs

SEC BA-QUIZ-2

SEC BA-QUIZ-2

University

40 Qs

Technical Quiz

Technical Quiz

University

40 Qs

Unit 1: Python Basics

Unit 1: Python Basics

University

46 Qs

Quiz1810

Quiz1810

University

45 Qs

Repaso Python

Repaso Python

11th Grade - University

40 Qs

2025190602

2025190602

University

40 Qs

Introduction to Python Programming (BPCLK205B)

Introduction to Python Programming (BPCLK205B)

University

40 Qs

Advanced Data Type and Decision Control Statements

Advanced Data Type and Decision Control Statements

Assessment

Quiz

Computers

University

Hard

Created by

Chaitrali Kardile

Used 16+ times

FREE Resource

42 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a tuple in Python?
A mutable list
An immutable list
A set
A dictionary

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is mutable?
Tuple
String
List
Integer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which syntax creates a set?
{1,2,3}
[1,2,3]
(1,2,3)
{1:2, 3:4}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type allows duplicate values?
Set
Dictionary
List
Tuple

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an empty dictionary?
{}
[]
()
dict()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does an 'if' statement do?
Loops over a sequence
Defines a function
Executes a block if a condition is true
Declares a variable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used in conditional statements?
elseif
elif
else
altif

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?