
Best MCQs on Programming Languages

Quiz
•
Computers
•
Professional Development
•
Hard
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
Similar Resources on Wayground
28 questions
Java Fundamentals

Quiz
•
Professional Development
25 questions
Quiz Básico de Java

Quiz
•
7th Grade - Professio...
30 questions
Blind Coding Round 1

Quiz
•
Professional Development
33 questions
Lenguajes de Programación

Quiz
•
Professional Development
25 questions
QUIZ

Quiz
•
Professional Development
35 questions
Python

Quiz
•
Professional Development
25 questions
Java Basics

Quiz
•
Professional Development
25 questions
Principles of coding

Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade