OOP2023_B9A1Quiz_January24

OOP2023_B9A1Quiz_January24

University

5 Qs

quiz-placeholder

Similar activities

PHP

PHP

University

10 Qs

Programming in C

Programming in C

University

10 Qs

Array and String

Array and String

University

10 Qs

Test in C Language

Test in C Language

University

10 Qs

Computer Programming (Lab)

Computer Programming (Lab)

University

10 Qs

Moringa JavaScript Arrays

Moringa JavaScript Arrays

5th Grade - Professional Development

10 Qs

POINTERS

POINTERS

University

10 Qs

C++ Functions

C++ Functions

University

10 Qs

OOP2023_B9A1Quiz_January24

OOP2023_B9A1Quiz_January24

Assessment

Quiz

Computers

University

Hard

Created by

MR ARORA

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Predict the output of the given code.

address of main

compiler error

runtime error

some random value

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C, parameters are always

passed by value

passed by reference

passed by value result

Non-pointer variables are passed by value and pointers are passed by reference

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Predict the output of the given code.

7

12

1

0

4.

MULTIPLE CHOICE QUESTION

45 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 and union

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

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

In order to exchange the values of two variables a and b:

Call swap (a, b)

swap(a, b) cannot be used as it does not return any value

Call swap (&a, &b)

swap(a, b) cannot be used as the parameters passed by value