CPR_Quiz_Chapter4_function

CPR_Quiz_Chapter4_function

Professional Development

15 Qs

quiz-placeholder

Similar activities

Soal PPPK Pedagogik 4

Soal PPPK Pedagogik 4

Professional Development

15 Qs

AC C1 - Introduction to Accounting and Conceptual Framework

AC C1 - Introduction to Accounting and Conceptual Framework

Professional Development

20 Qs

Trg@home 1

Trg@home 1

Professional Development

10 Qs

Pre and Post Test

Pre and Post Test

Professional Development

10 Qs

Anatomia capilar

Anatomia capilar

Professional Development

15 Qs

Microsoft 365

Microsoft 365

Professional Development

11 Qs

Pre Test Financial Planning for Mental Health

Pre Test Financial Planning for Mental Health

Professional Development

10 Qs

SOAL PRETEST PPG 18

SOAL PRETEST PPG 18

Professional Development

20 Qs

CPR_Quiz_Chapter4_function

CPR_Quiz_Chapter4_function

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Medium

Created by

Sheetal Pawar

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output of the following C code?

#include <stdio.h>

void m()

{

printf("hi");

}

void main()

{

m();

}

hi

Run time error

Nothing

Varies

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

the value obtained in the function is given back to main by using ________ keyword.

return

static

new

volatile

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which function definition will run correctly?

int sum(int a, int b)

return (a + b);

int sum(int a, int b)

{return (a + b);}

int sum(a, b)

return (a + b);

none of the mentioned

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

void can be used

as a data-type of a function that returns nothing to its calling environment

inside the brackets of a function that does not need any argument

in an expression

both (a) & (b)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Any C program

must contain at least one function

need not contain any function

needs input data

none of the above

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The following program


main ()

{ int a = 4;

change { a };

printf ("%d", a);

}

change (a)

int a;

{

printf("%d", ++a);

}

55

.45

54

44

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following function calculates the square of 'x' in C?

sqr(x)

pow(2, x)

pow(x, 2)

power(2, x)

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Professional Development