Lesson 27 – Concept of arguments

Lesson 27 – Concept of arguments

5th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

JavasCript

JavasCript

1st Grade - University

10 Qs

AI for Youth – Machine and Minds

AI for Youth – Machine and Minds

8th Grade

10 Qs

ES6 and babel on automation test

ES6 and babel on automation test

KG - 5th Grade

10 Qs

Lesson 13 - Introduction to function

Lesson 13 - Introduction to function

5th - 8th Grade

10 Qs

MS-Excel Level 3 (Final)

MS-Excel Level 3 (Final)

8th Grade - University

11 Qs

python-loops

python-loops

6th - 8th Grade

11 Qs

Python quiz

Python quiz

KG - Professional Development

10 Qs

Java Strings

Java Strings

1st Grade - Professional Development

10 Qs

Lesson 27 – Concept of arguments

Lesson 27 – Concept of arguments

Assessment

Quiz

Professional Development, Education

5th - 8th Grade

Medium

Created by

NotchUp .co

Used 29+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following enclose the input parameters or arguments of a function?

rackets

parenthesis

curly braces

quotation marks

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

int

float

string

none

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following function definition does not return any value?

a function that prints integers from 1 to 100.

a function that returns a random integer from 1 to 100

a function that checks

whether the current second is an integer from 1 to 100.

a function that converts an uppercase letter to lowercase.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following statements correctly represent the function body in the given code snippet?

return “number”

print(number)

print(“number”)

return number

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

which statement is correct about the given program ?

HelloHelloHelloHelloHello

HelloHelloHelloHello

invalid call

infinite loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of following code ?

welcomeviewers

welcomeviewersviewersviewers

welcomeviewers,viewers,viewers

welcome

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following function declaration is correct?

def f(a = 1, b):

def f(a = 1, b, c = 2):

def f(a = 1, b = 1, c = 2):

def f(a = 1, b = 1, c = 2, d):

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?