OOP2023_B9A1Quiz_January24

OOP2023_B9A1Quiz_January24

University

5 Qs

quiz-placeholder

Similar activities

Methods

Methods

University

10 Qs

Java

Java

University

9 Qs

Arrays in C (II yr 02.07.2020)

Arrays in C (II yr 02.07.2020)

University

10 Qs

Section I - Trivia Game 02

Section I - Trivia Game 02

University

10 Qs

Chapter 6: System Architecture

Chapter 6: System Architecture

University

10 Qs

Computer Science Quiz

Computer Science Quiz

University

8 Qs

LAMBDA Functions

LAMBDA Functions

10th Grade - Professional Development

7 Qs

Functions Pt. 2 + Separate Compilation

Functions Pt. 2 + Separate Compilation

9th Grade - 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