Python Coding

Python Coding

University

33 Qs

quiz-placeholder

Similar activities

python39-02

python39-02

University

30 Qs

Software Requirement And Design DFP40182

Software Requirement And Design DFP40182

University

36 Qs

Flow Control in Python

Flow Control in Python

University

33 Qs

ntp2

ntp2

University

30 Qs

python

python

University

30 Qs

CS8592 - OOAD - Unit 1 - Quiz II

CS8592 - OOAD - Unit 1 - Quiz II

University

30 Qs

Bridge Course - Screening Test

Bridge Course - Screening Test

10th Grade - Professional Development

30 Qs

Computer Pretest1(Python Grade7_t1)

Computer Pretest1(Python Grade7_t1)

3rd Grade - University

30 Qs

Python Coding

Python Coding

Assessment

Quiz

Computers

University

Hard

Created by

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?

Print

input

output

print

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

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?