Best MCQs on Programming Languages

Best MCQs on Programming Languages

Professional Development

30 Qs

quiz-placeholder

Similar activities

Quiz for IT position

Quiz for IT position

Professional Development

25 Qs

PST - Day 6 | Post Day Quiz

PST - Day 6 | Post Day Quiz

Professional Development

25 Qs

Quiz on Datatypes_Header file_C Pgm Structure

Quiz on Datatypes_Header file_C Pgm Structure

Professional Development

25 Qs

Quiz - I

Quiz - I

University - Professional Development

25 Qs

Fortress IQ: The ISMS Quest

Fortress IQ: The ISMS Quest

Professional Development

25 Qs

IT Quiz

IT Quiz

Professional Development

25 Qs

SDdbC#_Final Quiz

SDdbC#_Final Quiz

Professional Development

25 Qs

Computer Networks

Computer Networks

Professional Development

25 Qs

Best MCQs on Programming Languages

Best MCQs on Programming Languages

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Just Shorts

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to access members of a structure through a pointer?

. (dot)

-> (arrow)

* (asterisk)

& (ampersand)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++, what is the diamond problem related to?

Templates

Multiple Inheritance

Exception Handling

Pointers

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which smart pointer maintains shared ownership in C++?

unique_ptr

shared_ptr

weak_ptr

auto_ptr

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between malloc and new in C++?

malloc calls constructors, new does not

new calls constructors, malloc does not

Both call constructors

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes RAII in C++?

Memory allocation after runtime

Resource management using constructors/destructors

Run-time access of interface inheritance

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is immutable in Python?

List

Dictionary

Tuple

Set

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the is operator check?

Value equality

Identity (same memory location)

Data type

None of the above

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?