computer science for MEN
48 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Why did programmers adopt the binary number system for computers?

  • Because it perfectly aligns with the on/off states of computer switches. (correct)
  • Because it is easier for humans to understand than other number systems.
  • Because it allows for more complex calculations than the decimal system.
  • Because it requires less energy to process than other number systems.

What is the decimal (denary) equivalent of the binary number 101010?

  • 10
  • 84
  • 21
  • 42 (correct)

What is the purpose of using two's complement representation for binary numbers?

  • To increase the storage capacity of computer memory.
  • To represent fractional values in binary.
  • To simplify the process of binary multiplication.
  • To easily represent and perform arithmetic operations with negative numbers. (correct)

Using an 8-bit two's complement representation, what is the decimal value of the binary number 11111110?

<p>-2 (C)</p> Signup and view all the answers

What is the one’s complement of the binary number 10110011?

<p><code>01001100</code> (A)</p> Signup and view all the answers

Which of the following memory units is the largest?

<p>Petabyte (C)</p> Signup and view all the answers

What is the key difference between the decimal-based memory system (kilobyte, megabyte, etc.) and the binary-based system (kibibyte, mebibyte, etc.) created by the IEC?

<p>The decimal-based system uses powers of 10, while the binary-based system uses powers of 2. (A)</p> Signup and view all the answers

Convert the denary number 53 to binary.

<p><code>110101</code> (A)</p> Signup and view all the answers

Which of the following is a potential drawback of implementing a large network?

<p>Increased susceptibility to widespread malware infections. (A)</p> Signup and view all the answers

Which of the following is primarily the responsibility of the organization that owns a private network?

<p>Purchasing the network equipment, software, and performing maintenance. (A)</p> Signup and view all the answers

What distinguishes a Wireless Local Area Network (WLAN) from a traditional LAN?

<p>WLANs offer wireless connectivity using radio or infrared signals. (B)</p> Signup and view all the answers

Which of these scenarios exemplifies a Wide Area Network (WAN)?

<p>A network of ATMs used by a national bank across multiple states. (D)</p> Signup and view all the answers

In a client-server networking model, what role does the server primarily fulfill?

<p>Dictates which users can access specific files and resources. (C)</p> Signup and view all the answers

Which network component is responsible for directing data traffic between different networks, often connecting a LAN to the internet?

<p>Router (D)</p> Signup and view all the answers

What is a primary difference between a public and a private network regarding accessibility?

<p>Private networks are typically LANs with restricted access, while public networks can be joined by anyone. (A)</p> Signup and view all the answers

What is the function of a Wireless Access Point (WAP) in a WLAN?

<p>To transmit data between the WLAN and the wired network structure. (D)</p> Signup and view all the answers

Which of the following is a typical size range for a Metropolitan Area Network (MAN)?

<p>1 km to 100 km (C)</p> Signup and view all the answers

What consideration should be made when deciding whether to use public communication networks versus dedicated lines for a WAN?

<p>Dedicated lines can be less expensive and more secure for WANs. (D)</p> Signup and view all the answers

Which memory designation is equivalent to $2^{40}$ bytes, representing a common measure for storage capacity?

<p>1 Tebibyte (B)</p> Signup and view all the answers

Within the hexadecimal system, what denary (base-10) value does the digit 'D' represent?

<p>13 (A)</p> Signup and view all the answers

If a system uses 5 hexadecimal digits to represent a number, what is the maximum denary value that can be represented?

<p>1048575 (C)</p> Signup and view all the answers

What is the primary advantage of using the Binary-Coded Decimal (BCD) system for representing denary numbers?

<p>It ensures that each denary digit is accurately represented, avoiding rounding errors in financial calculations. (B)</p> Signup and view all the answers

Why was the ASCII code system developed, and what is its primary function in computing?

<p>To standardize character encoding for consistent data interchange across different systems. (A)</p> Signup and view all the answers

If an image has a colour depth of 8 bits per pixel, what is the maximum number of different colours that can be represented?

<p>256 (B)</p> Signup and view all the answers

What is the key difference between 'bit depth' and 'colour depth' in digital imaging?

<p>'Bit depth' is the number of bits used to represent a single pixel, which influences the 'colour depth'. (C)</p> Signup and view all the answers

What is the main drawback of using high-resolution bit-map images?

<p>Increased file size which consumes more storage space. (A)</p> Signup and view all the answers

An uncompressed bit-map image is 1000 pixels wide and 500 pixels high, with a colour depth of 24 bits. Approximately, what is the file size of this image in megabytes?

<p>1.43 MB (A)</p> Signup and view all the answers

In what scenario are vector graphics generally more suitable than bit-map images?

<p>Designing logos that need to be scaled without losing quality. (B)</p> Signup and view all the answers

What is the primary reason vector graphics typically result in smaller file sizes compared to bit-map images?

<p>Vector graphics only store geometric shapes and instructions rather than individual pixel data. (B)</p> Signup and view all the answers

Which file format is generally used for vector graphics?

<p>.svg (B)</p> Signup and view all the answers

In digital audio, what does the 'sampling rate' refer to?

<p>The number of sound samples taken per second. (A)</p> Signup and view all the answers

When converting analogue sound to digital, why are approximate values stored instead of precise amplitude measurements?

<p>Because the amplitude of sound cannot be measured perfectly, so each sample value is an estimate. (B)</p> Signup and view all the answers

What part of a sound wave is most closely related to the 'loudness' of the sound.

<p>Amplitude (A)</p> Signup and view all the answers

Which of the following statements accurately describes the relationship between sampling resolution and file size in audio files?

<p>Higher sampling resolution leads to larger file sizes and improved audio quality. (D)</p> Signup and view all the answers

What is the defining characteristic of lossless file compression?

<p>It allows for the complete recovery of the original file upon decompression. (B)</p> Signup and view all the answers

How does lossy file compression reduce file size?

<p>By using an algorithm to remove data deemed non-essential, resulting in some loss of detail. (B)</p> Signup and view all the answers

Which of the following is NOT a characteristic of the MP3 audio format?

<p>It is a lossless format, allowing perfect reconstruction of the original audio. (D)</p> Signup and view all the answers

What is a key advantage of the MPEG-4 (MP4) file format compared to MPEG-3 (MP3)?

<p>MP4 allows for the storage of multimedia files, including video, images, and animation, in addition to audio. (D)</p> Signup and view all the answers

What happens to the original file after JPEG compression is applied to a photographic image?

<p>The original file can no longer be reconstructed due to the lossy compression method. (D)</p> Signup and view all the answers

What type of data does Run-Length Encoding (RLE) compress?

<p>It compresses strings of repeating identical data. (A)</p> Signup and view all the answers

What was the primary purpose of ARPAnet in the early 1970s?

<p>To connect a number of large computers in the Department of Defense. (B)</p> Signup and view all the answers

What is a key distinction between a Local Area Network (LAN) and a Wide Area Network (WAN)?

<p>LANs are typically confined to a limited area, such as a building, while WANs cover larger geographical areas. (C)</p> Signup and view all the answers

How does the internet differ from a traditional Wide Area Network (WAN)?

<p>The Internet is a vast number of decentralized networks with a common access point, while WANs often have a more controlled structure. (D)</p> Signup and view all the answers

What is the typical geographical scope of a Metropolitan Area Network (MAN)?

<p>A MAN covers the area of a city. (B)</p> Signup and view all the answers

Which of the following is NOT a typical benefit of networking?

<p>Increased difficulty in backing up data and files. (A)</p> Signup and view all the answers

In a networked environment, what capabilities does a network manager typically have?

<p>All of the above. (D)</p> Signup and view all the answers

What is the relationship between frame rate and video quality?

<p>Higher frame rates generally improve the quality of the video. (A)</p> Signup and view all the answers

Which of these would be considered a use of lossy compression?

<p>Compressing a music collection. (B)</p> Signup and view all the answers

Flashcards

Binary Number System

Base-2 number system using only 0s and 1s.

Bit

A single digit in the binary system (0 or 1).

Binary to Denary Conversion

Converting a binary number into its equivalent base-10 value.

One's Complement

Method for representing signed numbers where each bit is inverted (1s become 0s and vice versa).

Signup and view all the flashcards

Two's Complement

Method for representing signed numbers, derived by inverting bits (like one's complement) and adding 1.

Signup and view all the flashcards

Kilobyte (KB)

A unit of computer memory approximately equal to 1000 bytes.

Signup and view all the flashcards

Megabyte (MB)

A unit of computer memory approximately equal to 1,000,000 bytes.

Signup and view all the flashcards

Gigabyte (GB)

A unit of computer memory approximately equal to 1,000,000,000 bytes.

Signup and view all the flashcards

Networking Drawbacks

Initial costs for cabling and servers can be high. Managing large networks can be complex. Failures can impact the whole network. Malware can spread easily.

Signup and view all the flashcards

Network infrastructure

LAN cards, routers, servers, WIFI router, cabling, and software.

Signup and view all the flashcards

Private Network

A network owned by a single organization with restricted access.

Signup and view all the flashcards

Public Network

A network open to anyone, often owned by a company that allows public use.

Signup and view all the flashcards

Local Area Network (LAN)

A network contained within a small geographic area, like a building.

Signup and view all the flashcards

Wireless LAN (WLAN)

A LAN that uses wireless communication instead of cables.

Signup and view all the flashcards

Wide Area Network (WAN)

A network that covers a large geographical area, connecting multiple LANs.

Signup and view all the flashcards

Wireless Access Point (WAP)

A device that allows wireless devices to connect to a wired network.

Signup and view all the flashcards

Client-Server Model

A networking model where clients request services from dedicated servers.

Signup and view all the flashcards

Dedicated Server

A central computer that provides resources or services to clients in a network.

Signup and view all the flashcards

Kibibyte (KiB)

Represents 1024 bytes (2^10 bytes).

Signup and view all the flashcards

Mebibyte (MiB)

Represents 1,048,576 bytes (2^20 bytes).

Signup and view all the flashcards

Gibibyte (GiB)

Represents 1,073,741,824 bytes (2^30 bytes).

Signup and view all the flashcards

Tebibyte (TiB)

Represents 1,099,511,627,776 bytes (2^40 bytes).

Signup and view all the flashcards

Pebibyte (PiB)

Represents 1,125,899,906,842,624 bytes (2^50 bytes).

Signup and view all the flashcards

Hexadecimal

A base-16 number system, using 0-9 and A-F.

Signup and view all the flashcards

Hexadecimal to Binary Relation

4 bits represent one hexadecimal digit.

Signup and view all the flashcards

Binary-Coded Decimal (BCD)

Uses a 4-bit code to represent each decimal digit.

Signup and view all the flashcards

ASCII

A standard for character encoding using 7-bit codes.

Signup and view all the flashcards

Bit-map Images

Images stored as a grid of pixels.

Signup and view all the flashcards

Color Depth

Number of bits used to represent a pixel's color.

Signup and view all the flashcards

Vector Graphics

Images using geometric shapes defined by points, lines, and curves.

Signup and view all the flashcards

Vector vs Bitmap

Geometric Shapes vs Colored Pixels

Signup and view all the flashcards

Sampling Rate

The number of samples taken per second when digitizing sound.

Signup and view all the flashcards

Sampling Resolution

The number of bits used for each sound sample.

Signup and view all the flashcards

Frame Rate

The number of frames recorded per second in a video.

Signup and view all the flashcards

Lossless File Compression

Reduces file size while allowing the original file to be perfectly recovered.

Signup and view all the flashcards

Lossy File Compression

Reduces file size by permanently removing some data; original file cannot be fully recovered.

Signup and view all the flashcards

MP3 (MPEG-3)

A lossy audio compression format that reduces file size by removing frequencies outside human hearing range.

Signup and view all the flashcards

MP4 (MPEG-4)

A multimedia container format that can store audio, video, images, and animation.

Signup and view all the flashcards

JPEG

A lossy image compression format commonly used for photographs; reduces file size but loses some image quality.

Signup and view all the flashcards

Run-Length Encoding (RLE)

A lossless compression technique that reduces the size of repeating sequences of data.

Signup and view all the flashcards

ARPAnet

An early packet-switching network which is considered an early form of the internet.

Signup and view all the flashcards

Metropolitan Area Network (MAN)

A network larger than a LAN but smaller than a WAN, typically covering a city.

Signup and view all the flashcards

Benefit of Networking: Shared Resources

Sharing hardware resources like printers reduces costs.

Signup and view all the flashcards

Benefit of Networking: Cheaper Software Licenses

Centralized licenses are cheaper than individual licenses.

Signup and view all the flashcards

Benefit of Networking: Easy File Sharing

Users can easily exchange files and data which improves collaboration

Signup and view all the flashcards

Benefit of Networking: Centralized Backup

Data backed up centrally ensures reliable data from one source.

Signup and view all the flashcards

Study Notes

Data Representation

Number Systems

  • Humans use base 10 (denary) number system with digits 0-9.
  • Programmers use base 2 (binary) number system with values 0 and 1 because computers use switches with on/off positions.
  • Binary is the building block of all computer systems.
  • Each binary digit is called a bit.

Binary Number System

  • Binary uses 1s and 0s with corresponding weights: 128, 64, 32, 16, 8, 4, 2, 1, equivalent to powers of 2 from 2^7 to 2^0.
  • To convert binary to denary, add the column values where a 1 appears.

Binary Addition and Subtraction

  • One's complement involves inverting each digit in a binary number (1s become 0s and vice versa).
  • Two's complement involves inverting each digit and adding 1 to the rightmost bit.
  • Two's complement simplifies binary addition and subtraction.
  • When using negative numbers with an 8-bit representation, the weightings are -128, 64, 32, 16, 8, 4, 2, 1, with anything above 127 being a negative number, easily created through the two's complement.

Computer Memory

  • Memory is measured in bytes.
  • Kilobyte (KB) is 1,000 bytes.
  • Megabyte (MB) is 1,000,000 bytes.
  • Gigabyte (GB) is 1,000,000,000 bytes.
  • Terabyte (TB) is 1,000,000,000,000 bytes.
  • Petabyte (PB) is 1,000,000,000,000,000 bytes.
  • This system is based on powers of 10 which some devices use due to simplicity.
  • Actual memory is measured by powers of 2.
  • Kibibyte (KiB) is 2^10 bytes (1,024).
  • Mebibyte (MiB) is 2^20 bytes (1,048,576).
  • Gibibyte (GiB) is 2^30 bytes (1,073,741,824).
  • Tebibyte (TiB) is 2^40 bytes (1,099,511,627,776).
  • Pebibyte (PiB) is 2^50 bytes (1,125,899,906,842,624).
  • The IEC created this system based on the binary system.
  • The base 2 system is more accurate and ideal for usage with internal memories.

Hexadecimal Number System

  • Hexadecimal (hex) is base 16.
  • Weightings are 1048576 (16^5), 65536 (16^4), 4096 (16^3), 256 (16^2), 16 (16^1), 1 (16^0).
  • Uses digits 0-9 and letters A-F (A=10, B=11, C=12, D=13, E=14, F=15).
  • Each hexadecimal digit represents 4 binary digits (16 = 2^4).

Binary-Coded Decimal (BCD) System

  • Uses a 4-bit code to represent each denary digit.
  • 0000 = 0, 0001 = 1, 0010 = 2, 0011 = 3, 0100 = 4, 0101 = 5, 0110 = 6, 0111 = 7, 1000 = 8, 1001 = 9.
  • 4-bit codes can be stored as a half-byte or two 4-bit codes can form one byte.

ASCII Codes and Unicode

  • ASCII (American Standard Code for Information Interchange) was established in 1963 and updated in 1986 and is for use in communication and computer systems.
  • Standard ASCII consists of 7-bit codes (0-127 denary or 0-7F hexadecimal).
  • Represents letters, numbers, and standard keyboard characters, plus 32 control codes.

Multimedia

Bit-Map Images

  • Bit-map images consist of pixels in a 2D matrix.
  • At least 8 bits (1 byte) per pixel are needed for a colored image (256 possible colors).
  • True color requires 3 bytes per pixel (24 bits), resulting in over a million colors.
  • The number of bits used to represent a pixel is called the color depth.
  • Bit depth determines the color depth of a pixel; increasing bit depth increases the number of possible colors.
  • Scaling images impacts density of pixels.
  • Increasing image resolution increases the sharpness of an image
  • Higher resolution images result in larger file sizes.
  • File size = (width * height * bit depth) in bits, divide by 8 for bytes.

Vector Graphics

  • Vector graphics use 2D points to describe lines, curves, and geometric shapes.
  • Vector graphics are ideal for logos.

Comparison Between Vector Graphics and Bit-Map Images

  • Vector graphics are made of geometric shapes while bit-map images are made of pixels with different colors..
  • Modification of vectors require changing the properties of the geometric shapes while bit-maps are altered by modifying pixels to alter the image
  • Vector graphics do not require large file sizes while Bit-map images are generally very large
  • Vector graphics lack realism due to limited shapes while bit-map images are very realistic due to number of pixels.
  • Vector graphic file formats usually are extension .svg,.cgm,.odg while bit-map file formats are usually .jpeg,.bmp,.png.. Images that need to be resized should ideally be done through vectors while realistic imaging should be completed by bit-maps.

Sound Files

  • Sound requires a medium to travel through oscillations in particles.
  • Human ears detect these changes in air pressure as sound.
  • Sound waves are converted from analogue to digital using an ADC (analogue to digital converter.
  • The computer filters out quiet noises of frequencies outside hearing range.
  • Sound waves are sampled at a given time rate.
  • Approximate amplitude values are stored.
  • Sampling resolution is the number of bits stored per sound sample.
  • Sampling rate is the number of sound samples taken per second.
  • The higher the rate or sampling resolution, the higher the quality of sound.

Video

  • Videos are made of individual picture frames.
  • More frames per second mean better video quality.
  • Frame rate refers to the number of frames recorded per second.

File Compression

Lossless File Compression

  • Allows the original file to be fully recovered without any data loss.
  • Important for files where data loss is unacceptable.
  • The original data is not degraded.

Lossy File Compression

  • Uses an algorithm to remove unnecessary data.
  • Results in some loss of detail.
  • Original file is usually impossible to reconstruct.

File Compression Applications

MPEG-3 (MP3)

  • Uses audio compression to reduce file sizes by roughly 90%.
  • Uses perceptual music shaping to remove frequencies outside human range and softer sounds masked by louder ones.
  • Employs a lossy format.
  • Quality depends on the bit rate (bits per second used when creating the file).

MPEG-4 (MP4)

  • Stores multimedia files (music, videos, photos, animations).
  • Can be streamed over the internet without significant quality loss.

Photographic (Bit-Map) Images

  • Compression reduces both file size and image quality.
  • JPEG uses lossy file compression, reducing raw bit-map image size by a factor of 5 to 15.

Vector Graphics

  • Scalable Vector Graphics (.svg) are XML text files, allowing them to be compressed.

RLE (Run-Length Encoding)

  • Can compress many file formats.
  • It is a lossless compression that reduces the size of strings of identical data.

General Methods of Compressing Files

  • There are general methods of compression that are not specialized

Networking

Networking Devices

  • ARPAnet (Advanced Research Projects Agency Network) was an early packet-switching WAN (1970s).
  • Expanded from the Department of Defense to universities, leading to the internet.
  • LANs (Local Area Networks) began appearing as personal devices became more common.
  • LANs confined to one building or small area while WANs usually consist of multiple LANs
  • MANs (Metropolitan Area Networks) are more common than WANs and include multiple LAN's usually restricted to the size of a city
  • WANs can be used by international corporations connecting MANs or LANs across the world

Benefits of Networking

  • Sharing of devices (e.g., printers) reduces costs.
  • Software licenses are cheaper for networks than stand-alone computers.
  • Users can share files and data.
  • Access to reliable data from a central source.
  • Centralized data and file backups.
  • User communication via email and instant messaging.
  • Network managers can oversee the network, apply access rights, and restrict network access.

Drawbacks of Networking

  • Cabling and servers are expensive initial outlay.
  • Managing large networks is complex.
  • File server breakdowns affect the whole network.
  • Malware can affect entire networks.
  • Networks can be characterized as Private or Public

Networked Computers

  • LAN cards
  • Routers
  • Switches
  • Wireless Routers
  • Cabling
  • Software
  • Operation and Management of the Network
  • Operation of firewalls
  • Security Applications Utilities
  • Services
  • DSL
  • Satellite Communication Channels
  • Wireless Protocols
  • IP Addressing

Private Networks

  • Private networks are owned by organizations and usually LANs that have restricted access, the organization is responsible for buying.

Public Networks

  • Public networks are publicly owned and let others use them.

WANs and LANs

  • LANs are in one building or area.
  • LANs consist of computers and devices connected to hubs or switches.
  • One hub or switch connects to a router and/or modem.

Wireless LAN

  • Wireless LAN's dont use wired connections and connect through infared or wireless methods.
  • Devices use WAPs (wireless access points) to access networks from further away.
  • WAPs transmit data between the WLAN and wired network structure.
  • Users access WLANs through wireless LAN adapters.

Wide Area Networks (WANs)

  • WANs connect computers or networks over long distances.
  • Multiple LANs can form a WAN through modems.
  • WANs use (ATMs) networks as common examples.
  • WANs use public communication networks, dedicated or leased lines.
  • A typical WAN consists of end systems and intermediate systems.

Network Size Guide

  • WAN: 100 km to over 1000 km.
  • MAN: 1km to 100km
  • LAN 10m to 1000m

Client-Server Networking Models

  • Client-server model uses dedicated servers and specific client workstations.
  • Client computers connect to server computers.
  • Users can access files stored on dedicated servers.
  • The server dictates which users can access which files.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Mental Health Prediction Project
10 questions
Membaca dan Menulis Algoritma
10 questions

Membaca dan Menulis Algoritma

AppreciativeOcarina975 avatar
AppreciativeOcarina975
Chapter 11: Menu Interaction
24 questions
Use Quizgecko on...
Browser
Browser