Week 13

Week 13

6th - 8th Grade

5 Qs

quiz-placeholder

Similar activities

Understanding Python Methods

Understanding Python Methods

7th Grade

10 Qs

Computing Y7 Level 7

Computing Y7 Level 7

7th Grade

10 Qs

เตรียมสอบกลางภาค 2/64

เตรียมสอบกลางภาค 2/64

8th Grade

10 Qs

Python L2- Quiz 2

Python L2- Quiz 2

5th - 12th Grade

7 Qs

Python - Printing, Variables and Syntax

Python - Printing, Variables and Syntax

8th Grade

10 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

Gr-9 AI Project Cycle

Gr-9 AI Project Cycle

8th - 10th Grade

10 Qs

Python Class first Quiz

Python Class first Quiz

8th Grade

10 Qs

Week 13

Week 13

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Teacher Ullah

Used 12+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q1:What is the correct syntax for defining a procedure in Python?

PROCEDURE identifier(parameters):

SUB identifier(parameters):

FUNCTION identifier(parameters):

def identifier(parameters):

Answer explanation

The correct syntax for defining a procedure in Python is 'def identifier(parameters):'.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q2:What keyword is used to declare a function in Python?

function

return

call

def

Answer explanation

Explanation: The def keyword is used to define a function in Python. Functions can manipulate data and return a value.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Q3:What are the parameters with in this procedure?

first name and second name

first and surname

first and second name

myname, first and surname

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q4:In the code below, which of the following is a parameter?

def greet(name):

print("Hello, " + name + "!")

A. greet

B. name

C. "Hello"

D. print

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q5:In Python, passing a list as a parameter and appending to it inside the function is always more efficient than returning a new list.

True

False