Quiz on Functions#1

Quiz on Functions#1

University

15 Qs

quiz-placeholder

Similar activities

Linux: Users and Groups

Linux: Users and Groups

9th Grade - University

14 Qs

Quizz Internet

Quizz Internet

KG - Professional Development

12 Qs

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

University - Professional Development

20 Qs

HEAP TREE

HEAP TREE

University

11 Qs

Introduction to Mobile Commerce

Introduction to Mobile Commerce

University

10 Qs

UX Design

UX Design

University

10 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Memory-Mobo-Hard/Software

Memory-Mobo-Hard/Software

University

18 Qs

Quiz on Functions#1

Quiz on Functions#1

Assessment

Quiz

Computers

University

Medium

Created by

Merin M

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a library function but can be a user defined function?
cos()
sqrt()
pow()
add()

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

We use fucntions to reuse block of code. How many times, can you call a function?
only one time
2 times
Maximum of 10 times
Any number of times

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a correct format for declaration of function?
return-type function-name(argument type);
return-type function-name(argument type){}
return-type (argument type)function-name;
argument type function-name(return-type);

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many values can a C Function return at a time?
Only one value
maximum 2 values
maximum 3 values
maximum 8 values

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is one of the advantages of using Functions in the program?
returning
re-usability
recording
recovery

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following library function can be used to evaluate a*a*a?
cube(a)
power(a,3)
Mul(a,3)
pow(a,3)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of this C code?

void foo();

void main()

{

void f();

f();

}

void foo()

{

printf("2 ");

}

void f()

{

printf("1 ");

foo();

}

Compile Time Error
1 2
2 1
Infinite Loop

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?