Search Header Logo

cd114b_pps_quiz2_2024_2025_sem1

Authored by kunisetti subramanyam

Computers

University

Used 2+ times

cd114b_pps_quiz2_2024_2025_sem1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

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;

all of the mentioned

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following function declaration is illegal?

int 1bhk(int);

int 1bhk(int a);

int 2bhk(int*, int []);

all of the mentioned

3.

MULTIPLE CHOICE QUESTION

1 min • 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

Can we use a function as a parameter of another function? [Eg: void wow(int func())].

Yes

No

5.

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

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In c, what is a Function primarily used for?

Decision making

variable declarration

code organization and reusability

printing output

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

what is the result of statement printf("%d",sizeof(int *));

8

4

2

1

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?