Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.
Data Representation & AbstractionEasy
Q1. Binary of decimal 5?
- A.110
- B.111
- C.101✓ Correct
- D.100
Explanation
101 is the correct answer to this question.
Report an error in this question
Data Representation & AbstractionEasy
Q2. What is abstraction in data?
- A.Making things increasingly complex
- B.Showing all implementation details
- C.Deleting all the stored data
- D.Hiding unnecessary, showing essential✓ Correct
Explanation
Hides unnecessary details.
Report an error in this question
Data Representation & AbstractionEasy
Q3. Bits in a byte?
- A.4
- B.16
- C.32
- D.8✓ Correct
Explanation
8 bits = 1 byte.
Report an error in this question
Data Representation & AbstractionEasy
Q4. Data type for name?
- A.String✓ Correct
- B.Boolean
- C.Float
- D.Integer
Explanation
String for text.
Report an error in this question
Data Representation & AbstractionEasy
Q5. What is an array?
- A.A specific type of loop construct
- B.A callable function definition
- C.A single variable only
- D.Same-type elements in contiguous memory✓ Correct
Explanation
Contiguous same-type elements.
Report an error in this question
Data Representation & AbstractionEasy
Q6. What does ASCII stand for?
- A.Automated Standard Code for Input Interfacing
- B.American Standard Code for Information Interchange✓ Correct
- C.American System for Computer Information Indexing
- D.Advanced System Code for Internet Integration
Explanation
American Standard Code for Information Interchange.
Report an error in this question
Data Representation & AbstractionEasy
Q7. Decimal of binary 1010?
- A.12
- B.10✓ Correct
- C.8
- D.14
Explanation
10 is the correct answer to this question.
Report an error in this question
Data Representation & AbstractionEasy
Q8. Which uses key-value pairs?
- A.Dictionary/Map✓ Correct
- B.Array structure
- C.Queue structure
- D.Stack structure
Explanation
Dictionaries store key-value pairs.
Report an error in this question
Data Representation & AbstractionEasy
Q9. What is Boolean?
- A.String text type
- B.Decimal number type
- C.Only true or false✓ Correct
- D.Float number type
Explanation
Two values: true/false.
Report an error in this question
Data Representation & AbstractionEasy
Q10. What is hexadecimal?
- A.Base-8 system
- B.Base-2 system
- C.Base-10 system
- D.Base-16 system✓ Correct
Explanation
Base-16 number system.
Report an error in this question
Data Representation & AbstractionMedium
Q11. Hex of 255?
- A.1F
- B.FE
- C.EF
- D.FF✓ Correct
Explanation
FF is the correct answer to this question.
Report an error in this question
Data Representation & AbstractionMedium
Q12. Two's complement is for?
- A.Floating point values
- B.Signed integers in binary✓ Correct
- C.Data compression formats
- D.Text character encoding
Explanation
Represents signed integers.
Report an error in this question
Data Representation & AbstractionMedium
Q13. 8-bit two's complement of -1?
- A.00000001
- B.10000001
- C.11111110
- D.11111111✓ Correct
Explanation
11111111 is the correct answer to this question.
Report an error in this question
Data Representation & AbstractionMedium
Q14. Data abstraction in OOP?
- A.Hide implementation, expose interface✓ Correct
- B.Write longer and more verbose code
- C.Expose all internal details fully
- D.Avoid using functions or methods
Explanation
Hides behind public interface.
Report an error in this question
Data Representation & AbstractionMedium
Q15. ADT vs data structure?
- A.Data structure is always better to use
- B.ADT: interface; structure: implementation✓ Correct
- C.ADT can never be implemented in code
- D.They are exactly the same thing
Explanation
ADT = what; structure = how.
Report an error in this question
Data Representation & AbstractionMedium
Q16. IEEE 754 representation?
- A.Character encoding standard
- B.Sign, exponent, and mantissa✓ Correct
- C.Only the mantissa component
- D.Simple integer format only
Explanation
Three components: sign, exponent, mantissa.
Report an error in this question
Data Representation & AbstractionMedium
Q17. Unicode vs ASCII?
- A.Unicode only supports English letters
- B.They are exactly the same standard
- C.ASCII has more characters than Unicode
- D.Unicode: all scripts; ASCII: 128 chars✓ Correct
Explanation
Unicode is universal; ASCII is limited.
Report an error in this question
Data Representation & AbstractionMedium
Q18. What is a struct?
- A.Composite grouping different types✓ Correct
- B.A single primitive variable only
- C.A file format for data storage
- D.A database table definition format
Explanation
Groups related fields.
Report an error in this question
Data Representation & AbstractionMedium
Q19. What is serialization?
- A.Encrypting sensitive data
- B.Deleting data permanently
- C.Converting to storable format✓ Correct
- D.Sorting data in an order
Explanation
Converts data for storage/transmission.
Report an error in this question
Data Representation & AbstractionMedium
Q20. Unsigned 8-bit range?
- A.1-256
- B.0-127
- C.-128 to 127
- D.0-255✓ Correct
Explanation
0-255 is the correct answer to this question.
Report an error in this question
Data Representation & AbstractionHard
Q21. Float problems vs integer?
- A.Rounding errors only
- B.Overflow errors only
- C.All of the above✓ Correct
- D.Underflow errors only
Explanation
All three can occur.
Report an error in this question
Data Representation & AbstractionHard
Q22. What is endianness?
- A.A sorting algorithm technique
- B.A programming paradigm style
- C.A data compression approach
- D.Byte order stored in memory✓ Correct
Explanation
Byte storage order.
Report an error in this question
Data Representation & AbstractionHard
Q23. IEEE 754 single exponent bits?
- A.32 bits
- B.23 bits
- C.8 bits✓ Correct
- D.1 bit
Explanation
1+8+23 = 32 bits.
Report an error in this question
Data Representation & AbstractionHard
Q24. What is a tagged union?
- A.An array with mixed types
- B.A union with a type tag field✓ Correct
- C.A regular union without tags
- D.A sorting data structure type
Explanation
Includes type discriminator.
Report an error in this question
Data Representation & AbstractionHard
Q25. What is information hiding?
- A.Encrypting all data in storage
- B.Deleting data after processing
- C.Hiding files on the filesystem
- D.Restricting access, exposing interfaces✓ Correct
Explanation
Exposes only necessary interfaces.
Report an error in this question
Data Representation & AbstractionHard
Q26. What is data alignment?
- A.Alphabetical sorting of records
- B.Formatting text in a document
- C.Aligning elements on the screen
- D.Placing at boundaries for CPU access✓ Correct
Explanation
Efficient CPU memory access.
Report an error in this question
Data Representation & AbstractionHard
Q27. What is Liskov Substitution Principle?
- A.Subtypes substitutable for supertypes✓ Correct
- B.Making all class members public
- C.An encryption standard for data
- D.Functions without any parameters
Explanation
Subtypes must be substitutable.
Report an error in this question
Data Representation & AbstractionHard
Q28. What is a phantom type?
- A.A null type with no useful value
- B.A runtime type for dynamic checks
- C.Type param with compile-time info only✓ Correct
- D.A type that does not exist at all
Explanation
Compile-time info without runtime presence.
Report an error in this question
Data Representation & AbstractionHard
Q29. IEEE 754 single max value?
- A.3.4e38✓ Correct
- B.2^64
- C.1.8e308
- D.2^31
Explanation
Approximately 3.4 x 10^38.
Report an error in this question
Data Representation & AbstractionHard
Q30. Structural vs nominal typing?
- A.They are exactly the same thing
- B.Nominal typing is not used in practice
- C.Structural is always better to use here
- D.Structural: shape match; nominal: name match✓ Correct
Explanation
Structure compatibility vs name compatibility.
Report an error in this question