12 CS Revision 1

12 CS Revision 1

11th Grade

25 Qs

quiz-placeholder

Similar activities

Loops, Lists, Traversals test

Loops, Lists, Traversals test

11th Grade

20 Qs

Algorithms

Algorithms

10th - 11th Grade

20 Qs

Elements of Design

Elements of Design

9th - 12th Grade

20 Qs

Python Lists

Python Lists

11th Grade

20 Qs

Unit 5 Quiz - Loops & Lists (code.org)

Unit 5 Quiz - Loops & Lists (code.org)

10th - 12th Grade

20 Qs

AP CSP Unit 6

AP CSP Unit 6

10th - 12th Grade

20 Qs

HTML tags

HTML tags

9th - 12th Grade

20 Qs

Advanced Excel

Advanced Excel

KG - University

20 Qs

12 CS Revision 1

12 CS Revision 1

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Anjali Luthra

Used 1+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default return value for a function that does not return a value explicitly?

None

int

double

null

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following items are present in the function header?

Function name only

Both function name and parameter list

parameter list only

Return value

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following keywords marks the begining of the function block?

Func

define

def

function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Is The Output Of The Following Code Snippet?


def func(message, num = 1):

print(message * num)


func('Welcome')

func('Viewers', 3)

Welcome

Viewers

Welcome

ViewersViewersViewers

Welcome

Viewers,Viewers,Viewers

Welcome

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is a variable defined outside all the function referred to as?

A static variable

A global variable

A local variable

An automatic variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is a variable defined inside all the function referred to as?

A static variable

A global variable

A local variable

An automatic variable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the given argument types can be skipped from a function call?

Positional arguments

keyword arguments

named arguments

default arguments

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?