Python Coding

Quiz
•
Computers
•
University
•
Hard

Thilini Badathuruge
Used 3+ times
FREE Resource
33 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable?
A container(memory location) where you store a value
Data type
A type of memory
A graphical method
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the word (command) used to display numbers and text on the screen?
input
output
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in Python?
A loop structure
A block of code that performs a specific task
A data structure
A library in Python
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in Python?
func
define
def
function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using functions in Python?
To repeat a block of code multiple times
To organize code into reusable blocks
To perform arithmetic operations
To import libraries
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid way to call a function in Python?
functionName()
function_name()
function name()
module.function_name()
7.
REORDER QUESTION
1 min • 1 pt
What are the main steps of functions
parameters
calling the function
function body
def key word
name of the function
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Python Quiz

Quiz
•
University
38 questions
SoEnFinal

Quiz
•
University
30 questions
Python MCQ for II Sem

Quiz
•
University
30 questions
PYTHON

Quiz
•
University
32 questions
Midterms DevNet

Quiz
•
University
30 questions
BASIC PYTHON

Quiz
•
University
30 questions
Code debugging - Round 1

Quiz
•
University
30 questions
Software Engineering Quiz

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade