Python Coding

Python Coding

University

33 Qs

quiz-placeholder

Similar activities

CSS QUIZ DAW EWAN

CSS QUIZ DAW EWAN

University

31 Qs

GAME OF CODES

GAME OF CODES

University

30 Qs

python

python

University

30 Qs

PYTHON

PYTHON

University

30 Qs

HCI 323 - FINAL EXAM

HCI 323 - FINAL EXAM

University

33 Qs

PROG3 - Chapter 2

PROG3 - Chapter 2

University

28 Qs

Computer Pretest1(Python Grade7_t1)

Computer Pretest1(Python Grade7_t1)

3rd Grade - University

30 Qs

PL101 MIDTERM Long Quiz

PL101 MIDTERM Long Quiz

University

35 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

name of the function

function body

def key word

parameters

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