Advanced Data Type and Decision Control Statements

Advanced Data Type and Decision Control Statements

University

42 Qs

quiz-placeholder

Similar activities

Python El Grand Revision!

Python El Grand Revision!

University

47 Qs

Python Quiz

Python Quiz

University

40 Qs

Secure Scripting: Exam 1 Review: Modules 1 - 4

Secure Scripting: Exam 1 Review: Modules 1 - 4

University

38 Qs

IPT101-Prelim Exam Part 1

IPT101-Prelim Exam Part 1

University

40 Qs

FINAL IM

FINAL IM

University

43 Qs

AIM Review

AIM Review

University

40 Qs

Unit 1: Python Basics

Unit 1: Python Basics

University

46 Qs

Python Finals Quiz

Python Finals Quiz

University

37 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?