mentor hr quiz

mentor hr quiz

University

10 Qs

quiz-placeholder

Similar activities

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

DFC10042 - Activity C1_DDT1E

DFC10042 - Activity C1_DDT1E

University

10 Qs

C-Programming

C-Programming

University

15 Qs

Java Quiz#2(Non-static Variables)

Java Quiz#2(Non-static Variables)

University

10 Qs

Understanding Source Code and Functions

Understanding Source Code and Functions

University

10 Qs

OOps test quiz

OOps test quiz

University

10 Qs

PreTest DFC20113 - Programming Fundamentals

PreTest DFC20113 - Programming Fundamentals

University

15 Qs

Java

Java

9th Grade - University

11 Qs

mentor hr quiz

mentor hr quiz

Assessment

Quiz

Computers

University

Hard

Created by

ANAND S

Used 2+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?