cd114b_pps_quiz2_2024_2025_sem1

cd114b_pps_quiz2_2024_2025_sem1

University

12 Qs

quiz-placeholder

Similar activities

MIND ZONE 2.2 [LEVEL 2]

MIND ZONE 2.2 [LEVEL 2]

University

10 Qs

Pointer dan Fungsi

Pointer dan Fungsi

University

14 Qs

Week 9 - Functions and Pointers

Week 9 - Functions and Pointers

University

14 Qs

Quiz3_DataStruct

Quiz3_DataStruct

University

10 Qs

C++ Chapter 6

C++ Chapter 6

University

10 Qs

Java Operators

Java Operators

University

14 Qs

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

Apuntadores C++

Apuntadores C++

University

11 Qs

cd114b_pps_quiz2_2024_2025_sem1

cd114b_pps_quiz2_2024_2025_sem1

Assessment

Quiz

Computers

University

Medium

Created by

kunisetti subramanyam

Used 2+ times

FREE Resource

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

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?