(Trial) Decode-A-thon (trial)

(Trial) Decode-A-thon (trial)

University

8 Qs

quiz-placeholder

Similar activities

Primeiro Quizz

Primeiro Quizz

University

7 Qs

Java Lesson 11

Java Lesson 11

5th Grade - University

10 Qs

JSP

JSP

University

10 Qs

Ch12 - Assurance and Related Services

Ch12 - Assurance and Related Services

University

10 Qs

C Quiz

C Quiz

University

10 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

12 Qs

Quiz 2025

Quiz 2025

University

10 Qs

NFL bro

NFL bro

6th Grade - Professional Development

10 Qs

(Trial) Decode-A-thon (trial)

(Trial) Decode-A-thon (trial)

Assessment

Quiz

Other

University

Hard

Created by

Yatharth Patankar

Used 2+ times

FREE Resource

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);

8.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Which of the following is the correct way to create an object of a class MyClass in C++?

MyClass obj;

MyClass obj();

MyClass::obj;

obj = new MyClass();