12 CS Revision 1

12 CS Revision 1

11th Grade

25 Qs

quiz-placeholder

Similar activities

AP CSP Unit 5 Ch 1 Quiz

AP CSP Unit 5 Ch 1 Quiz

9th - 12th Grade

21 Qs

Recuperacion final parte 1

Recuperacion final parte 1

8th Grade - University

20 Qs

Practice Quiz( List)

Practice Quiz( List)

11th - 12th Grade

22 Qs

Python list, if

Python list, if

6th - 12th Grade

20 Qs

List Manipulations

List Manipulations

11th Grade

20 Qs

Higher SDD Revision

Higher SDD Revision

11th - 12th Grade

20 Qs

Computer Science

Computer Science

9th - 12th Grade

20 Qs

CodeHS JavaScript

CodeHS JavaScript

8th - 12th Grade

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