Which keyword is used to define a function in Python?
Python MCQ for II Sem

Quiz
•
Computers
•
University
•
Medium
VedaSri Tutorials
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
del
init
def
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What symbol is used to indicate a comment in Python?
//
#
/*
--
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is a mutable data type in Python?
tuple
list
string
frozenset
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What function is used to read input from the user in Python?
get()
scan()
read()
input()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the expression 3 * 'Hello' in Python?
HelloHelloHello
None
3Hello
Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which built-in function can be used to get the length of a list in Python?
length()
size()
count()
len()
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a 'flowchart'?
A type of algorithm
A graphical representation of a process
A programming language
A database management system
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
Basic C Programming

Quiz
•
University
25 questions
python_quiz

Quiz
•
University
25 questions
Introduction to Java

Quiz
•
University
25 questions
PYTHON PROGRAMMING STRING Q6

Quiz
•
University
25 questions
Python Programming Basics 1

Quiz
•
University
30 questions
Python Mock

Quiz
•
University
30 questions
BRAIN STRUCK

Quiz
•
University
31 questions
N5 High Priority

Quiz
•
12th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade