Data Representation & Abstraction MCQs

Topic-wise practice questions for Problem Solving & Analytical Skills. Test your knowledge, check solutions on demand, and pace your preparation.

Zero-leak answer engine • Rate-limited explanations
Practice in Timed Mode
Q1medium
In web design, colors are often represented in Hexadecimal format (e.g., #FF0000). What does the FF represent in decimal, and what color does this code represent?
Q2hard
(Code Output / Bitwise) In many languages, performing a bitwise Left Shift (<<) by 1 position on an integer has the mathematical effect of:
Q3hard
(Code Output) Look at this type conversion scenario:

char letter = 'A'
int value = (int) letter
print(value)
Assuming ASCII encoding, what is printed?
Q4easy
What is the difference between an Abstract Data Type (ADT) and a Data Structure?
Q5hard
A developer is creating an email client. Email protocols (like SMTP) were originally designed to only handle 7-bit ASCII text. However, users need to attach images and PDFs (binary data). Which abstraction technique solves this representation problem?
Q6hard
(Debugging / Error Analysis) A game uses a standard 32-bit signed integer to track a player's money. A hacker discovers a glitch that gives them 3 billion coins. Suddenly, their coin balance reads as a massive negative number (e.g., -1,294,967,296). What phenomenon caused this?
Q7medium
How is the decimal number -5 represented in an 8-bit binary system using Two's Complement?
Q8medium
A developer wants to store the number of human beings on Earth (approx 8.1 billion) in a database. They choose a standard 32-bit unsigned integer data type. What will happen?
Q9easy
Lossless compression (like a ZIP file) works by:
Q10medium
You are building a global messaging app. Users will send text in English, Arabic, Japanese, and use emojis. Which data representation standard MUST you choose for text encoding?