Search Header Logo

mentor hr quiz

Authored by ANAND S

Computers

University

Used 2+ times

mentor hr quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'sizeof' operator in C return?

Memory address

Size of a variable or data type

ASCII value

ASCII value

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C programming, what is the purpose of the 'volatile' keyword?

Indicate that a variable is constant

Declare a variable as global

Specify that a variable may be changed at any time

Define a macro

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

5

6

4

Compiler Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is dynamic memory allocated in C?

malloc()

calloc()

realloc()

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file is needed to use the rand() function in C?

<math.h>

<stdlib.h>

<stdio.h>

<time.h>

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the #define directive in C?

Declare a constant variable

Define a function

Include a header file

Create a macro

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the enum keyword in C?

Declare a constant variable

Define a structure

Define an exponential number

Define a set of named integer constants

Answer explanation

The enum keyword in C is used to define an enumeration type, which consists of a set of named integer constants.

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?