Professional Documents
Culture Documents
What is a robot?
A robot is a machine, often programmable by a computer, capable of carrying out
complex actions automatically. It can be guided by an external control device or have
embedded control.
What is a database?
A database is a structured collection of data or information that is organized for
efficient storage, retrieval, modification, and deletion. It can be quickly searched and
processed by a computer.
What is an algorithm?
An algorithm is a set of instructions designed to perform a specific task.
What is the learning strategy called when a basic introduction to almost all
courses of Computer Science is given?
Answer: Breadth First Learning
What will be covered in the course related to Search Engine Usage Techniques?
Answer: Searching techniques and effective internet search using popular search
engines
What will be studied in the course related to Networking and the Internet?
Answer: How different computers communicate over the internet
What topics will be covered in the course related to Content Filtering, Spam,
International laws?
Answer: Content filtering, dealing with spam, and international laws related to data
and privacy
What should be considered when formulating a query for better search results?
Answer: Consider using the right terminology or specific terms related to the search
topic.
Does Google differentiate between capital letters and small letters in searches?
Answer: No, Google does not distinguish between capital letters and small letters
(case-insensitive).
How can you check the weather for a specific location using Google?
Answer: By adding the location with the word "Weather" in the query.
What query would you use to convert kilometers per hour to miles per hour?
Answer: Type "Kph in Mph" in the search box.
What can you do to find information about the Pakistan Cricket team on Google?
Answer: Enter "Pakistan Cricket team" as the query.
How can you search for a specific query on a particular social media platform
using Google?
Answer: By adding the "@" symbol followed by the name of the social media
platform.
What should you put in front of a number to search for a specific price on
Google?
Answer: "pkr" (for Pakistani rupees).
How can you search for pages using a specific hashtag on social media?
Answer: By using the "#" symbol followed by the hashtag you want to search for.
How can you exclude certain words from your search query on Google?
Answer: By using the minus ("-") symbol followed by the word you want to exclude.
Which Boolean operator can be used to find pages that contain both specified
words?
Answer: "And"
How can you search for pages within the price range of PKR 25,000 to PKR
35,000?
Answer: By using the range operator (two dots) between the price values.
How can you search for pages about the Virtual University within the YouTube
website?
Answer: By using the "site:" operator followed by "youtube.com" and the desired
query.
How can you search for the information about the YouTube website itself?
Answer: By using the "info:" operator followed by "youtube.com".
How can you find the stock market trend for a specific company like Apple?
Answer: By using the "stocks:" operator followed by the company's stock symbol
(e.g., "stocks:aapl").
Where can you perform an image search or find similar images to a queried
image?
Answer: You can use the dedicated web link "https://images.google.com/" for image
searches.
What interesting option is available on Google that allows you to perform funny
tricks with the screen?
Answer: The "Tilt" option allows you to perform various tricks with the Google
screen.
What operator can you use to search for the trend of a company's stock market?
Answer: The "stocks:" operator.
How can you perform interesting tricks with the Google screen?
Answer: By searching for "Tilt" and selecting the appropriate link like
"https://elgoog.im/tilt/".
How can you search for web pages with the phrase "iPhone vs. android" in the
title?
Answer: By using the "Intitle:" operator followed by the phrase (e.g., "Intitle:“iPhone
vs. android”").
How can you find web pages with either "iPhone" or "android" in the title?
Answer: By using the "allintitle:" operator followed by the terms (e.g.,
"allintitle:iphone vs. android").
How can you find web pages with the term "2018" and the phrase "virtual
university" in the URL?
Answer: By using the "inurl:" operator followed by the terms (e.g., "inurl:2018
“virtual university”").
How can you search for the phrase "virtual university admissions 2018" in the
body of the document?
Answer: By using the "intext:" operator followed by the phrase (e.g., "intext:“virtual
university admissions 2018”").
How can you search for pages that contain any of the terms "virtual university,"
"admissions," or "2018" in the body?
Answer: By using the "allintext:" operator followed by the terms (e.g.,
"allintext:virtual university admissions 2018").
What does the "Proximity Search" operator do?
Answer: It searches for two words that appear within a certain margin of words from
each other.
How can you search for the words "education" and "virtual university" with a
maximum margin of three words between them?
Answer: By using the "AROUND" operator (e.g., "education AROUND(3) "virtual
university"").
How can you find the number of pages of the website "youtube.com" that are
not secured?
Answer: By using the "site:" and "-inurl:" operators (e.g., "site:youtube.com –
inurl:https").
What operator can be used to search for terms in the title of web pages?
Answer: The "Intitle" operator.
How can you search for the phrase "iPhone vs. android" in the title of web pages?
Answer: By using the "Intitle:" operator followed by the phrase.
What can Google show us based on our search queries, history, and location?
Answer: Advertisements targeted to our interests and demographics.
What risk might we face if law enforcement agencies see sensitive search terms
repeatedly?
Answer: They might inquire about our activities or even visit our location.
What danger can searching for "free music" pose to our computer?
Answer: It can lead to downloading viruses or malware that can harm our computer.
What are some potential risks of searching for medical symptoms online?
Answer: It can lead to inaccurate self-diagnosis or unnecessary anxiety.
Why are streams of bits difficult for the human mind to comprehend?
Streams of bits can be long and complex, making them difficult for humans to
interpret and understand.
What notation takes advantage of the fact that bit patterns within a machine
tend to have lengths in multiples of four?
Hexadecimal notation.
What is the strategy used to divide the bit pattern in the example?
Dividing it into four-bit patterns.
What is the term used to describe the collection of circuits capable of storing a
single bit?
Machine's main memory.
How many bits are typically stored in a manageable unit called cells?
8 bits.
How are the most significant bits and least significant bits represented in byte
organization?
Most significant bits are represented on the left side, while the least significant bits
are represented on the right side.
What is the term used to describe a computer's main memory that allows access
to cells in any order?
Random access memory (RAM).
What are the advantages of mass storage systems over main memory?
Less volatility, large storage capacities, low cost, and the ability to remove the storage
medium for archival purposes.
What is the term used to describe adjacent tracks that form zones?
Zoned-bit recording.
What is the advantage of magnetic systems over optical systems in terms of data
retrieval?
Magnetic systems have faster data retrieval because all sectors are individually
accessible, unlike optical systems with only one track.
How does Blu-ray (BD) technology differ from CDs and DVDs?
BDs use a blue-violet spectrum of light instead of red and can focus its laser beam
with very fine precision. They provide five times the capacity of DVDs.
What is Unicode?
Unicode is the internationalization of codes adopted by hardware and software
manufacturers. It uses unique patterns of 21 bits and is compliant with ASCII.
Unicode supports thousands of character sets, including Chinese, Hebrew, and
Japanese.
What is UTF-8?
UTF-8 is a character encoding scheme that uses 24 to 32 bits, providing a large
number of unique symbols. It allows for the expansion of 16,777,216 symbols (2^24)
and is commonly used for encoding files with long symbols. Such files are referred to
as text files.
What is the issue with storing numeric values as Unicode?
Storing numeric values as Unicode is inefficient because it requires more bits to
represent numbers.
What is a pixel?
A pixel is a picture element, a collection of dots that make up an image.
How does excess four notation compare to binary and two's complement
representations?
Figure 38 provides a comparison between the bit patterns represented in binary,
excess four, and two's complement notations.
What is the purpose of floating-point notation?
Floating-point notation is used to store values with a fractional part, requiring the
storage of the binary representation pattern and the position of the radix point.
Who developed the most commonly used standards for encoding and
compressing audio and video?
The Motion Picture Experts Group (MPEG) under the leadership of ISO.
How are transmission speeds for audio and video compression systems measured?
They are measured in bits per second (bps), such as Kbps, Mbps, and Gbps.
What are the three parts of a CPU?
The arithmetic/logic unit, the control unit, and the register unit.
What are the five steps involved in adding two values stored in main memory?
Transfer data from main memory to registers within the CPU.
Add the values.
Place the result in a register.
Store the result in a memory cell.
Who developed the most commonly used standards for encoding and
compressing audio and video?
The Motion Picture Experts Group (MPEG).
What properties of the human ear does MP3 take advantage of?
Temporal masking and frequency masking.
How much video can video cameras record within 128MB of storage using
MPEG techniques?
Up to an hour's worth of video.
How are transmission speeds for audio and video compression systems measured?
They are measured in bits per second (bps), such as Kbps, Mbps, and Gbps.
What are the terms commonly used to describe the transfer of data between the
CPU and main memory?
A request to fill a general-purpose register with the contents of a memory cell is
called a LOAD instruction, and a request to transfer the contents of a register to a
memory cell is called a STORE instruction.
What does the CPU do when it analyzes an instruction in the instruction register?
It determines the action to be taken based on the instruction's content.
What does the CPU do during the decoding step of the machine cycle?
It interprets the contents of the instruction register to determine the specific operation
to be performed.
What happens when the arithmetic/logic unit completes the requested addition?
The result is stored in a specific register, as requested by the control unit.
How can the AND operation be used to mask off certain bits in an image?
By performing an AND operation between the image and a mask with 0s in the
positions of the bits to be masked off.
How can the AND operation be used to determine if a specific bit in a bit map is
set?
By performing an AND operation between the bit map and a mask with a 1 in the
position of the bit to be checked.
How can the XOR operation be used to invert all the bits of an RGB bitmap
image?
By performing an XOR operation between the image and a mask of all 1s.
What is the result of performing an XOR operation between any byte and a
mask of all 1s?
It produces the complement of the byte, flipping all the bits.
What happens when a register's contents are shifted one bit to the right?
The rightmost bit falls off the edge, creating a hole at the leftmost end.
How can left logical shifts be used for multiplying two's complement
representations by two?
Shifting binary digits to the left corresponds to multiplication by two.
What must be taken into account when performing shifts in certain notational
systems?
Preserving the sign bit.
What are shifts that always fill the hole at the sign bit position with its original
value called?
Arithmetic shifts.
What are the distinguishing features among the various shift operations?
How the extra bit and the hole are handled during the shift process.
What are some arithmetic operations that small CPUs may support?
Some small CPUs may be designed to support only addition or both addition and
subtraction to perform all arithmetic operations.
What standards have been developed to address the issue of multiple devices?
Standards like USB and FireWire have been developed to enable a single controller to
handle a variety of devices, promoting compatibility and reducing the need for
multiple controllers.
What are some examples of devices that can communicate with a USB controller?
Devices such as mice, printers, scanners, mass storage devices, digital cameras, and
smartphones can communicate with a USB controller.
What standards have been developed to address the issue of multiple devices?
Standards like USB and FireWire have been developed to enable a single controller to
handle a variety of devices, promoting compatibility and reducing the need for
multiple controllers.
What are some examples of devices that can communicate with a USB controller?
Devices such as mice, printers, scanners, mass storage devices, digital cameras, and
smartphones can communicate with a USB controller.
What was the initial state of computers in the 1940s and 1950s?
The computers of the 1940s and 1950s were large, inflexible, and inefficient machines
that occupied entire rooms.
How were real-time processing and interactive systems implemented in the past?
Implementing real-time processing and interactive systems was relatively easier when
serving only one user, but as computers became more expensive, they had to serve
multiple users at remote terminals.
What is multitasking?
Multitasking refers to a user executing several tasks simultaneously, which is
facilitated by multiprogramming and is commonly used in both single-user and multi-
user systems today.
How were users able to communicate with the computer in multiuser, time-
sharing systems?
Users could communicate directly with the computer from outside the computer room
through numerous workstations.
What is the distinction between the user interface and the internal parts of an
operating system?
The user interface acts as an intermediary between the computer's user and the
internal parts of the operating system. It establishes functionality but is separate from
the core of the operating system.
How does the boot loader copy the operating system into main memory?
Modern boot loaders can copy the operating system into main memory from various
locations, such as special flash memory or over a network.
Why aren't desktop computers provided with enough ROM to hold the entire
operating system?
Devoting large blocks of main memory to nonvolatile storage is not efficient with
today's technology. Additionally, frequent updates to operating systems and device
drivers make mass storage a more common choice for traditional computer systems.
How does the operating system coordinate the execution of software?
The coordination of software execution is handled by the scheduler and dispatcher
within the operating system's kernel.
Why is it important to save and restore a process's state during a process switch?
Saving and restoring a process's state allow it to be stopped and later restarted. It
ensures that the process can continue execution from where it was interrupted,
maintaining the environment and accumulated information prior to the interruption.
What are the potential issues when multiple processes demand the same resource
simultaneously?
The issues arise when multiple processes require the same resource at the same time,
causing conflicts and potential delays in their execution.
How does the operating system control access to shared resources like a printer?
The operating system keeps track of the availability of the resource, such as using a
flag or semaphore. Processes request access to the resource, and the operating system
decides whether to grant or deny the request based on the availability.
What is the problem with using a simple flag system for resource allocation?
A simple flag system may encounter issues when multiple processes request the
resource simultaneously, leading to incorrect allocation and conflicts.
What is a semaphore and how does it solve the flag system's problem?
A semaphore is an advanced flag that ensures testing and setting of the flag is
completed without interruption. It provides mutual exclusion and allows only one
process at a time to enter a critical region.
What are the conditions that must be satisfied for deadlock to occur?
The conditions for deadlock are:
Competition for non-sharable resources.
Partial resource requests, where a process may request additional resources after
receiving some.
Once allocated, a resource cannot be forcibly retrieved.
How can the second condition for deadlock be attacked in a deadlock avoidance
scheme?
One approach is to require each process to request all its resources at once,
eliminating partial requests.
How can the first condition for deadlock be attacked in a deadlock avoidance
scheme?
One approach is to convert non-sharable resources into sharable resources. For
example, by using spooling, where data to be printed is stored in mass storage instead
of directly connecting to the printer, multiple processes can execute normally,
creating the illusion of multiple printers.
How does the operating system use account information during the login
procedure?
The operating system uses the account information to control access to the system
during each login procedure.
What privileges does the administrator have within the operating system?
The administrator has the privilege to alter settings, modify critical software packages,
adjust user privileges, and perform maintenance activities.
What is the next step for an intruder or malicious user after gaining access to a
computer system?
The next step is usually to explore the system for valuable information or
opportunities to insert destructive software.
How can an intruder with a general user's account bypass the privileges granted
to that user?
They may try to trick the memory manager or file manager into granting access to
restricted areas or denied files.
What security feature in CPUs helps restrict a process to its allocated memory
area?
Special-purpose registers in the CPU store the upper and lower limits of a process's
memory area, and the CPU compares each memory reference to these registers to
ensure it stays within the designated limits.
What problem arises if a process can modify the memory limit registers?
The process could gain unauthorized access to memory cells outside its designated
area.
How do CPUs for multiprogramming systems address this problem?
CPUs operate in either privileged mode or non-privileged mode. Privileged
instructions, which include changing memory limit registers and privilege mode, can
only be executed in privileged mode. Attempting to execute a privileged instruction in
non-privileged mode triggers an interrupt, transferring control to the operating system.