(Trial) Decode-A-thon (trial)

(Trial) Decode-A-thon (trial)

University

8 Qs

quiz-placeholder

Similar activities

Java

Java

University

10 Qs

control statements

control statements

University

10 Qs

Java Lesson 7

Java Lesson 7

5th Grade - University

10 Qs

Java set 1

Java set 1

University

10 Qs

Syntactic tests & Universal Dependencies

Syntactic tests & Universal Dependencies

University

10 Qs

C Prog.1

C Prog.1

University - Professional Development

13 Qs

Repaso de mecanismo de sincronización

Repaso de mecanismo de sincronización

University

6 Qs

Si Session 2/8/23

Si Session 2/8/23

University

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