W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
63 questions for “Enums”
Found in 1 field. Select a question to see its full answer.
Matching topics
Java
Enums
15
C#
Enums
& Flags
10
C++
Enums
& Enum Classes
10
TypeScript
Enums
10
PHP
PHP 8 Features (Attributes,
Enums
, Match, Nullsafe Operator)
7
Information Technology
63 questions in 5 technologies
#
Question
Technology
Topic
Level
1
What is 'reverse mapping' in numeric
enums
, and why don't string
enums
support it?
TypeScript › Enums
TypeScript
Enums
Intermediate
2
How does the
EnumS
et and EnumMap provide more efficient alternatives to HashSet<Enum> and HashMap<Enum, V> specifically for enum keys?
Java › Enums
Java
Enums
Intermediate
3
How does TypeScript's structural type checking treat two DIFFERENT numeric
enums
that happen to have the same underlying values?
TypeScript › Enums
TypeScript
Enums
Advanced
4
How does Java implement
enums
under the hood at the bytecode level (extending java.lang.Enum), and what makes them inherently thread-safe and serialization-safe as singletons?
Java › Enums
Java
Enums
Advanced
5
What are
enums
introduced in PHP 8.1, and how do backed
enums
differ from pure
enums
in terms of the values they can represent?
PHP › PHP 8 Features (Attributes, Enums, Match, Nullsafe Operator)
PHP
PHP 8 Features (Attributes,
Enums
, Match, Nullsafe Operator)
Intermediate
6
How do you safely validate that an enum value received from external input (like deserialized JSON or a database) is actually a DEFINED member, given that
enums
don't enforce this by default?
C# › Enums & Flags
C#
Enums
& Flags
Advanced
7
How do
enums
interact with generic constraints, and why has it historically been awkward to write generic, reusable flag-manipulation code?
C# › Enums & Flags
C#
Enums
& Flags
Advanced
8
How can PHP 8's readonly properties,
enums
, and first class callable syntax be combined together to build more robust, immutable, and expressive domain models compared to earlier PHP versions?
PHP › PHP 8 Features (Attributes, Enums, Match, Nullsafe Operator)
PHP
PHP 8 Features (Attributes,
Enums
, Match, Nullsafe Operator)
Advanced
9
How do
enums
, introduced in PHP 8.1, provide a more type safe alternative to using class constants for representing a fixed set of related values?
PHP › Constants & Superglobals
PHP
Constants & Superglobals
Advanced
10
What are PHP 8's
enums
, and how do they provide a more type safe alternative to using plain class constants for representing a fixed set of related values?
PHP › Type Declarations & Strict Types
PHP
Type Declarations & Strict Types
Advanced
Show all 63 questions in Information Technology