Important Questions

CSC330 · Exam intelligence

Multimedia Computing important questions

From 2 past TU papers: which questions keep coming back, how much they carry, and what is most likely to show up next. Every question links to a model answer.

Most likely in the next examStatistical

Ranked by how often a topic is asked, its marks weight, and whether it is due after skipping the 2081 paper. No guarantees; study the whole syllabus.

1asked 3xavg 7 marks · Digital Image Representation
Answer

Discuss the different types of color models and compare between them with applications.[10]

A color model is a mathematical framework used to describe and represent colors in a standardized way. Different color models are used depending on the application, whether it is display, printing, image processing, or scientific analysi...

2asked 2xavg 8 marks · Abstractions Levels
Answer

Explain the abstraction levels of programming use in multimedia system with diagram.[10]

Abstraction Levels of Programming in Multimedia Systems

Introduction

Abstraction levels in programming define different approaches with a varying degree of detail for representing, accessing, and manipulating data in a multimedia system. A multimedia application may access each level depending on its requirements. These levels range from direct hardware access at the lowest level to high-level object-oriented environments at the highest level.


Diagram: Abstraction Levels in Multimedia Programming

+--------------------------------------------------+
|        Object-Oriented Environment               |  <-- Highest Level
+--------------------------------------------------+
|        Higher Programming Languages (HLL)        |
|     (Media as Types / Media as Files)            |
+--------------------------------------------------+
|              Toolkits                            |
+--------------------------------------------------+
|           System Software                        |
|   (Data as Time Capsules / Data as Streams)      |
+--------------------------------------------------+
|              Libraries                           |
+--------------------------------------------------+
|            Device Drivers                        |
+--------------------------------------------------+
|              Hardware / Device                   |  <-- Lowest Level
+--------------------------------------------------+
         ^
         |
  Multimedia Application can access any level

Detailed Explanation of Each Level

1. Hardware / Device Level

  • A device is not part of the operating system but is directly accessible to every component and application.
  • This is the lowest level where physical audio/video hardware (sound cards, cameras, microphones) resides.
  • Direct hardware access is rarely used by application programmers due to complexity.

2. Device Drivers

  • Device drivers are simply the implementation of device access and scheduling.
  • They act as a bridge between the hardware and the software layers above.
  • They handle low-level communication with hardware devices and expose a simplified interface to upper layers.

3. Libraries

  • A library is the simplest abstraction level and includes the necessary functions for controlling the corresponding hardware with specific device access operations.
  • The processing of continuous media (audio and video) is based on a function or set of functions embedded into libraries.
  • Libraries are provided together with the corresponding hardware (e.g., audio/video hardware cards come with their own libraries).
  • Libraries differ in their degree of abstraction.
  • Libraries are very useful at the operating system level; however, there is no universal agreement over which functions are best, leading to a variety of interfaces and different libraries.

4. System Software

System software directly interacts with computer hardware and provides efficient management. At this level, two important abstractions are used:

a) Data as Time Capsules

  • Each Logical Data Unit (LDU) carries its time capsule along with:
    • Data type
    • Actual value
    • Valid life span
  • This concept is especially useful for video, where each frame has a valid span of 40 ms.
  • Presentation rate can be changed for VCR functions (fast forward, slow forward, rewind) by:
    • Changing the presentation life span of an LDU
    • Skipping or repeating LDUs

b) Data as Streams

  • A stream denotes the continuous flow of audio and video text.
  • The stream is established between source(s) and sink(s), equivalent to a connection setup in a networked environment.
  • Operations on a stream include: play, fast forward, rewind, and stop.
  • In Microsoft Windows, the Media Control Interface (MCI) provides the interface for processing multimedia data, allowing access to continuous media streams and their corresponding devices.

5. Toolkits

  • Toolkits provide a simpler approach than direct system software interface for controlling audio and video data processing.
  • Toolkits are used to:
    • Abstract from the actual physical layer
    • Allow a uniform interface for communication with all different devices of continuous media
    • Introduce the client-server paradigm
    • Hide process structures
  • Toolkits represent interfaces at the system software level and can be embedded into programming languages or object-oriented environments.

6. Higher Programming Languages (HLL)

  • In HLL, the processing of continuous data is influenced by a group of similarly constructed functions.
  • These calls are mostly hardware and driver-independent.
  • Their integration in HLLs leads to:
    • Better abstraction
    • Better programming style
    • Increased productivity

Two important concepts at this level are:

a) Media as Types

  • Data types for video and audio are defined (similar to how character is a type for text).
  • A program can address media through functions and sometimes directly through operators.
  • Operations include: copy, compare, delete, create, read from file, or store.
  • The smallest unit can be the LDU.

b) Media as Files

  • Continuous media is treated as files rather than data types.
  • Media streams are read and written as file-based continuous data.
  • Continuous data are often played from functions based on sources of non-persistent data (e.g., microphone and camera).

7. Object-Oriented Environment (Highest Level)

  • An object-oriented environment provides the most flexibility for programmers.
  • Multimedia data (audio, video, images) are encapsulated as objects with methods and properties.
  • This level supports reusability, modularity, and extensibility in multimedia application development.

Summary Table

LevelAbstractionExample
HardwareLowestSound card, Camera
Device DriversLowAudio driver
LibrariesMedium-LowHardware-specific API
System SoftwareMediumMCI, Streams, LDU
ToolkitsMedium-HighMultimedia toolkits
HLLHighMedia as Types/Files
Object-OrientedHighestOOP multimedia frameworks

Conclusion

The abstraction levels of programming in multimedia systems provide a structured hierarchy from raw hardware access to high-level object-oriented programming. A multimedia application may access each level depending on the requirement, but higher levels offer greater flexibility, portability, and ease of programming, while lower levels offer more direct control over hardware resources.

3asked 2xavg 8 marks · JPEG and MPEG
Answer

Differentiate between JPEG and MPEG. [5]

JPEG (Joint Photographic Experts Group) and MPEG (Moving Picture Experts Group) are both hybrid coding standards used in multimedia systems, combining entropy and source coding techniques. However, they differ significantly in their purp...

4asked 2xavg 8 marks · Source, Entropy and Hybrid Coding
Answer

Compare between lossless compression with lossy compression. [5]

Lossless Compression is a data compression technique in which the original data can be perfectly reconstructed from the compressed data without any loss of information. Lossy Compression is a data compression technique in which some amou...

5asked 2xavg 5 marks · Speech Generation
Answer

How can you generate the speech in multimedia system? Explain. [5]

Speech Generation in Multimedia Systems

Introduction

Speech generation (also called speech synthesis) is the process by which a computer system produces human-like spoken output from text or other input data. It is a key component of multimedia systems, as speech is a time-dependent (continuous) medium that is perceived through hearing.


Components of a Speech Synthesis System

Speech synthesis uses time-dependent sound concatenation. The major components are:

Text --> Transcription --> Sound Script --> Synthesis --> Speech
         (letter-to-phone rules)  (Sound Transfer Dictionary of Expectations)

1. Text Input

  • The process begins with raw text as input.
  • This text needs to be converted into a form that can be spoken.

2. Transcription (Letter-to-Phone Rules)

  • The text is transcribed using letter-to-phone rules.
  • These rules map written characters/words to their corresponding phonetic representations.
  • For example, the word "phone" is mapped to the sounds /f/, /o/, /n/.

3. Sound Transfer / Dictionary of Expectations

  • A dictionary of expectations is used to handle ambiguous or irregular pronunciations.
  • It stores pre-defined phonetic mappings for known words.
  • This step resolves ambiguities that simple letter-to-phone rules cannot handle.

4. Sound Script

  • A sound script is generated, which is a structured phonetic description of what needs to be spoken.
  • It includes information about phonemes, stress, intonation, and timing.

5. Synthesis

  • The sound script is passed to the synthesis engine.
  • The synthesis engine combines phonetic units (phonemes or syllables) to produce continuous speech.
  • This is done using time-dependent sound concatenation, where pre-recorded or mathematically modeled sound units are joined together.

6. Speech Output

  • The final output is audible speech, which is played through a speaker (a presentation/output medium).

AspectDetail
Medium typeTime-dependent (continuous) medium
PerceptionHeard through speakers (output presentation medium)
Frequency rangeWithin the range of human hearing
StorageStored digitally on hard disk, CD-ROM, etc.
TransmissionTransmitted over coaxial cable, fiber optics, or free air

Summary

Speech generation in a multimedia system involves converting text into phonetic representations using letter-to-phone rules and a dictionary of expectations, forming a sound script, and then synthesizing it into audible speech through concatenation of sound units. Since speech is a continuous/time-dependent medium, its correct rendering requires careful synchronization and digital representation, which are core characteristics of any multimedia system.

Most repeated questions

Topics asked at least twice, most-asked first.

asked 3xavg 7 marks · 2081, 2080
Answer

Discuss the different types of color models and compare between them with applications.[10]

A color model is a mathematical framework used to describe and represent colors in a standardized way. Different color models are used depending on the application, whether it is display, printing, image processing, or scientific analysi...

asked 2xavg 8 marks · 2081, 2080
Answer

Explain the abstraction levels of programming use in multimedia system with diagram.[10]

Abstraction Levels of Programming in Multimedia Systems

Introduction

Abstraction levels in programming define different approaches with a varying degree of detail for representing, accessing, and manipulating data in a multimedia system. A multimedia application may access each level depending on its requirements. These levels range from direct hardware access at the lowest level to high-level object-oriented environments at the highest level.


Diagram: Abstraction Levels in Multimedia Programming

+--------------------------------------------------+
|        Object-Oriented Environment               |  <-- Highest Level
+--------------------------------------------------+
|        Higher Programming Languages (HLL)        |
|     (Media as Types / Media as Files)            |
+--------------------------------------------------+
|              Toolkits                            |
+--------------------------------------------------+
|           System Software                        |
|   (Data as Time Capsules / Data as Streams)      |
+--------------------------------------------------+
|              Libraries                           |
+--------------------------------------------------+
|            Device Drivers                        |
+--------------------------------------------------+
|              Hardware / Device                   |  <-- Lowest Level
+--------------------------------------------------+
         ^
         |
  Multimedia Application can access any level

Detailed Explanation of Each Level

1. Hardware / Device Level

  • A device is not part of the operating system but is directly accessible to every component and application.
  • This is the lowest level where physical audio/video hardware (sound cards, cameras, microphones) resides.
  • Direct hardware access is rarely used by application programmers due to complexity.

2. Device Drivers

  • Device drivers are simply the implementation of device access and scheduling.
  • They act as a bridge between the hardware and the software layers above.
  • They handle low-level communication with hardware devices and expose a simplified interface to upper layers.

3. Libraries

  • A library is the simplest abstraction level and includes the necessary functions for controlling the corresponding hardware with specific device access operations.
  • The processing of continuous media (audio and video) is based on a function or set of functions embedded into libraries.
  • Libraries are provided together with the corresponding hardware (e.g., audio/video hardware cards come with their own libraries).
  • Libraries differ in their degree of abstraction.
  • Libraries are very useful at the operating system level; however, there is no universal agreement over which functions are best, leading to a variety of interfaces and different libraries.

4. System Software

System software directly interacts with computer hardware and provides efficient management. At this level, two important abstractions are used:

a) Data as Time Capsules

  • Each Logical Data Unit (LDU) carries its time capsule along with:
    • Data type
    • Actual value
    • Valid life span
  • This concept is especially useful for video, where each frame has a valid span of 40 ms.
  • Presentation rate can be changed for VCR functions (fast forward, slow forward, rewind) by:
    • Changing the presentation life span of an LDU
    • Skipping or repeating LDUs

b) Data as Streams

  • A stream denotes the continuous flow of audio and video text.
  • The stream is established between source(s) and sink(s), equivalent to a connection setup in a networked environment.
  • Operations on a stream include: play, fast forward, rewind, and stop.
  • In Microsoft Windows, the Media Control Interface (MCI) provides the interface for processing multimedia data, allowing access to continuous media streams and their corresponding devices.

5. Toolkits

  • Toolkits provide a simpler approach than direct system software interface for controlling audio and video data processing.
  • Toolkits are used to:
    • Abstract from the actual physical layer
    • Allow a uniform interface for communication with all different devices of continuous media
    • Introduce the client-server paradigm
    • Hide process structures
  • Toolkits represent interfaces at the system software level and can be embedded into programming languages or object-oriented environments.

6. Higher Programming Languages (HLL)

  • In HLL, the processing of continuous data is influenced by a group of similarly constructed functions.
  • These calls are mostly hardware and driver-independent.
  • Their integration in HLLs leads to:
    • Better abstraction
    • Better programming style
    • Increased productivity

Two important concepts at this level are:

a) Media as Types

  • Data types for video and audio are defined (similar to how character is a type for text).
  • A program can address media through functions and sometimes directly through operators.
  • Operations include: copy, compare, delete, create, read from file, or store.
  • The smallest unit can be the LDU.

b) Media as Files

  • Continuous media is treated as files rather than data types.
  • Media streams are read and written as file-based continuous data.
  • Continuous data are often played from functions based on sources of non-persistent data (e.g., microphone and camera).

7. Object-Oriented Environment (Highest Level)

  • An object-oriented environment provides the most flexibility for programmers.
  • Multimedia data (audio, video, images) are encapsulated as objects with methods and properties.
  • This level supports reusability, modularity, and extensibility in multimedia application development.

Summary Table

LevelAbstractionExample
HardwareLowestSound card, Camera
Device DriversLowAudio driver
LibrariesMedium-LowHardware-specific API
System SoftwareMediumMCI, Streams, LDU
ToolkitsMedium-HighMultimedia toolkits
HLLHighMedia as Types/Files
Object-OrientedHighestOOP multimedia frameworks

Conclusion

The abstraction levels of programming in multimedia systems provide a structured hierarchy from raw hardware access to high-level object-oriented programming. A multimedia application may access each level depending on the requirement, but higher levels offer greater flexibility, portability, and ease of programming, while lower levels offer more direct control over hardware resources.

asked 2xavg 8 marks · 2081, 2080
Answer

Differentiate between JPEG and MPEG. [5]

JPEG (Joint Photographic Experts Group) and MPEG (Moving Picture Experts Group) are both hybrid coding standards used in multimedia systems, combining entropy and source coding techniques. However, they differ significantly in their purp...

asked 2xavg 8 marks · 2081, 2080
Answer

Compare between lossless compression with lossy compression. [5]

Lossless Compression is a data compression technique in which the original data can be perfectly reconstructed from the compressed data without any loss of information. Lossy Compression is a data compression technique in which some amou...

asked 2xavg 5 marks · 2081, 2080
Answer

How can you generate the speech in multimedia system? Explain. [5]

Speech Generation in Multimedia Systems

Introduction

Speech generation (also called speech synthesis) is the process by which a computer system produces human-like spoken output from text or other input data. It is a key component of multimedia systems, as speech is a time-dependent (continuous) medium that is perceived through hearing.


Components of a Speech Synthesis System

Speech synthesis uses time-dependent sound concatenation. The major components are:

Text --> Transcription --> Sound Script --> Synthesis --> Speech
         (letter-to-phone rules)  (Sound Transfer Dictionary of Expectations)

1. Text Input

  • The process begins with raw text as input.
  • This text needs to be converted into a form that can be spoken.

2. Transcription (Letter-to-Phone Rules)

  • The text is transcribed using letter-to-phone rules.
  • These rules map written characters/words to their corresponding phonetic representations.
  • For example, the word "phone" is mapped to the sounds /f/, /o/, /n/.

3. Sound Transfer / Dictionary of Expectations

  • A dictionary of expectations is used to handle ambiguous or irregular pronunciations.
  • It stores pre-defined phonetic mappings for known words.
  • This step resolves ambiguities that simple letter-to-phone rules cannot handle.

4. Sound Script

  • A sound script is generated, which is a structured phonetic description of what needs to be spoken.
  • It includes information about phonemes, stress, intonation, and timing.

5. Synthesis

  • The sound script is passed to the synthesis engine.
  • The synthesis engine combines phonetic units (phonemes or syllables) to produce continuous speech.
  • This is done using time-dependent sound concatenation, where pre-recorded or mathematically modeled sound units are joined together.

6. Speech Output

  • The final output is audible speech, which is played through a speaker (a presentation/output medium).

AspectDetail
Medium typeTime-dependent (continuous) medium
PerceptionHeard through speakers (output presentation medium)
Frequency rangeWithin the range of human hearing
StorageStored digitally on hard disk, CD-ROM, etc.
TransmissionTransmitted over coaxial cable, fiber optics, or free air

Summary

Speech generation in a multimedia system involves converting text into phonetic representations using letter-to-phone rules and a dictionary of expectations, forming a sound script, and then synthesizing it into audible speech through concatenation of sound units. Since speech is a continuous/time-dependent medium, its correct rendering requires careful synchronization and digital representation, which are core characteristics of any multimedia system.

asked 2xavg 5 marks · 2081, 2080
Answer

Explain the image and graphics format with example. [5]

Image format is defined by how image data is captured, stored, and represented digitally. It can be of two types: The image format is specified by two main parameters: - Spatial Resolution: specified as pixels (e.g., 320 x 240 pixels) - ...

Study every one of these with model answers, flashcards, and MCQs.

Open CSC330 study modes