Search Header Logo

(Trial) Decode-A-thon (trial)

Authored by Yatharth Patankar

Other

University

Used 2+ times

(Trial) Decode-A-thon (trial)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Media Image

What is the output of the following code?

10

15

30

Compilation error

2.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Which of the following is the correct syntax to declare a pointer to an integer in C?

int* ptr;

int ptr*;

int ptr;

int &ptr;

3.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Media Image

What will be the output of the following code?

10 20

20 10

compilation error

Undefined behavior

4.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

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

stdlib.h

stdio.h

string.h

math.h

5.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Media Image

What does the following code snippet print?

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Media Image

What is the output of the following code?

10

15

50

compilation error

7.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Which of the following is the correct way to define a function in C++ that returns an integer and takes two integer parameters?

int function(int a, int b);

int function(a, b);

function(int a, int b);

function(a, b);

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?