Quiz6: Functions in C

Quiz6: Functions in C

University

10 Qs

quiz-placeholder

Similar activities

chapter 3 - Network & Security Overview

chapter 3 - Network & Security Overview

University

13 Qs

Seatwork HASH (Data Structure)

Seatwork HASH (Data Structure)

University

10 Qs

Information Technology

Information Technology

University

10 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

6 - Test Management

6 - Test Management

University

10 Qs

Teste python- Unesp-Jaboticabal

Teste python- Unesp-Jaboticabal

University

10 Qs

Chapter 5-1: Review Questions & Exercises

Chapter 5-1: Review Questions & Exercises

University

10 Qs

Computer Network

Computer Network

University

10 Qs

Quiz6: Functions in C

Quiz6: Functions in C

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Xin Yang

Used 35+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about return type of functions in C?

Functions can return any type

Functions can return any type except array and functions

Functions can return any type except array, functions, function pointer

Functions can only return integer, double and character

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The _______________ method of passing arguments to a function copies the actual value of an argument into the formal parameter of the function.

call by value

call by reference

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C, what is the meaning of following function prototype with void parameter list:


void fun(void)

{

/* .... */

}

Function can be called with any number of parameters of any types

Function can only be called without any parameter

Function can be called with one integer parameter.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a complete correct function?

int funct();

void funct(int){ printf( \Hello");

int funct(int x){ x = x +1; return x; }

void funct(x){ printf( "Hello\n");}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of the function with prototype: "int func(char x, float v, double t);"?

char

int

float

double

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A ____________ tells the compiler about a function's name, return type, and parameters.

function declaration

function definition

function calling

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

While creating a C function, you give a definition of what the function has to do. To use a function, you will have to ___________ to perform the defined task.

call the function

declare the function

define the function

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?