Font size
Worksheetschapter (1+2) by "<\Human>"
Total questions: 133
Worksheet time: 1hrs 7mins
is the systematic study of the structure and behavior of computational system.
Computer program
Computer science
an algorithm
Arithmetic and Logical Unit (ALU)
is a sequence of steps required to implement a solution using giving resources.
Register File
(ISA)
Computer Program
An algorithm
Components of Computer Science
Control Register, Instruction decoder
Arithmetic / Logic, Data Transfer , Branch & Jump
(ALU), Register File
Theory, Tools, Techniques
The primary component responsible for these computations is called
Register File
A processor
RAM
Cache
A processor has two main functions
Data path
Register File
Control unit
Data Transfer
"Data path" consists of two main components :
Control Register
(ALU)
Instruction decoder
Register File
"Control unit" consists of two main components :
(ALU)
Control Register
Instruction decoder
Register File
It has the ability to perform different mathematical operations on numbers, Comparing the magnitude of numbers :
ISA
processor
Arithmetic and Logical Unit (ALU)
RAM
is the small memory component used to hold the data temporarily for the ALU:
RAM
Register File
BIOS
Cache
The complete list of instructions that a processor can understand and execute is called
Computer program
ISA
an algorithm
Arithmetic and Logical Unit (ALU)
ISA defines the types of instructions supported by the processor which typically classified into three type :
تذكر : لوجيتك ححول قفزا
Control Register, Instruction decoder. Data path
Arithmetic / Logic, Data Transfer , Branch & Jump
(ALU), Register File
Theory, Tools, Techniques
An ISA that implements basic operations is called a Reduced Instruction Set Computer
ROM
DRAM
RISC
SRAM
An ISA that implement complex operations is called a Complex Instruction Set Computer
ALU
SRAM
processor
CISC
stores the data as long as power is available.
SSD
Volatile memory
RAM
Non-volatile
memory keeps its data even when the power is turned off
ROM
Volatile memory
ssd
Non-volatile memory
RAM can be read and written on, and is usually volatile
صح
خطأ
An important property of software programs regularly exploited in computer systems is called
Instructions-per-speed
A disk cache
the Principle of locality
Cache
ROM is volatile Memory
صح
خطأ
are most widely used as online/ active storage for desktop computers.
memory
ssd
hdd
A disk cache
consists of multiple platters, read-write heads
cpu
hdd
ssd
Magnetic Tape
It still used for archival purposes.
cpu
hdd
ssd
Magnetic Tape
has longer shelf life then hard disks.
ram
Magnetic Tape
ssd
Cache
provide high data rates, fast , have no moving parts
hdd
ram
ssd
CPU
also called: Processor bus ,Front side bus ,Back side bus
Address Bus
Data Bus
Control Bus
address space
is based on non-volatile flash memory, which stores data using transistors.
hdd
Dram
Solid State Drive
Magnetic Tape
is a key component of computer science
computer programming
Instruction Set Computer
computer architecture
computer scientist
How much memory can be connected to a processor depends on the bit-size of the processor, Also known as its :
Memory Hierarchy
Principle of locality
Address Bus
Address Space
Used to specify the address of a device or memory location to communicate with. typically a 32 bit system would have 32 line for addresses.
Data Bus
Address Bus
Control Bus
Address Space
Used to transfer data between the address specified by the address bus and the Processor
Data Bus
Address Bus
Control Bus
Address Space
Used to control the timing ,events ,and transaction
Data Bus
Address Bus
Control Bus
Address Space
If a larger number of devices is connected to the control bus , performance will suffer
false
true
the speed at which the data is passed from one component to another in a computer system
The bus speed
Instructions-per-speed
Clock speed
Disk caching
Higher clock speed mean is that the processor think faster.
true
false
a higher bus speed means that a processor talks faster
true
false
dictates the rate at which data can enter and leaves the processor chips
The bus speed
Instructions-per-speed
Clock speed
Disk caching
is the number of instructions a processor can process in one second
The bus speed
Instructions-per-speed
Clock speed
Disk caching
Cache is a high-speed access area that can be a reserved section of main memory
true
false
Disk caching is used to access commonly accessed data
true
false
A disk cache is :
A sequence of very precise instructions that a computer executes for an intended purpose
a mechanism for improving the time it takes to read from or write to a hard disk.
consisting of a connector or set of wires, that provides transportation for data.
is the systematic study of the structure and behavior of computational system.
Computer Program is
a sequence of steps required to implement a solution using giving resources.
none of the above
A plan for understanding a computer system
a sequence of very precise instructions that a computer executes for an intended purpose
Intels X86 architecture is an example of ........................... architecture
RISC
CISC
64-bit
ARM
The standard method of measuring a processors performance is through program called
Processor performance standard
flowgorithm
Benchmarks
flowchart
............... Is used to transfer data between devices
Data Bus
Address Bus
Control Bus
Address Space
The two processors, Exynos by Samsung and snapdragon by Qualcomm are examples of
X64 ISA
X86 ISA
ARM ISA
All of above
Function are able to receive values of variables to work on , called ..............
Argument
Functions
Parameters
Call
We move further away from the processor , the memory in the level below become .....
Fast and smaller
Slow and larger
Slow and smaller
Fast and larger
In flowgorithm, it is used to create variables and arrays
Declare
Output
Input
Main
The implemented instructions in hardware varies from one processor to another even when both processors implement the same ISA.
true
false
Programmer to be able to observe the value of all valuable at every step to program called
Watching variable
Debugging
Tracking
Conditioning
Which of the following loops performance a pre-iteration of the loop condition
while
For
do- while
For and while
In a processor which component determines what instruction mean and what needs to be done for the instruction
(ALU)
Control Register
Instruction decoder
Register File
Available will be used to store text like data , the most appropriate type of variable
( available) in flowgorithm is a ....................
Integr
Boolean
Real
String
When comparing two processors , which of the following is considered a better metric than others :
هنا اختلف العلماء بين اجابتين ولكن وضعت الخيار الصحيح حسب الكتاب
Benchmarks
Instruction per second
Clock speed
Bus speed
Which block is used to print a message to the console window ?
Input
Output
declare
None of above
Which of the following keyboard keys make you save a flowgorithm file ؟
Control + O
F12
Control + S
Control + Z
Set of the value passed to function
Argument
Functions
Parameters
Call
Access time is the time taken to position the head on a specific track ?
True
False
The CPU understands instructions written in a binary machine language
True
False
The three components of computer science are theory , tools and Techniques
True
False
All elements of an array are of the same data type
True
False
is a system within a computer or device, consisting of a connector or set of wires, that provides transportation for data
Data Bus
Address Bus
Control Bus
Address Space
-----------design and analyze algorithms to solve computationally intensive problems .
Computer program
Computer scientists
an algorithm
Computer science
Computer scientists Use :
computer toy
ahmed algammdi
algorithm
mathematics
The success depends on things
Theory Mathematics
Understanding the Tool
Mastering the implementation Techniques
all
.........computation, algorithms and data structures
Theory
Tools
Techniques
none of above
..........Computer elements and architecture
Theory
Tools
Techniques
none of above
......Programming methodology and languages
Theory
Tools
Techniques
none of above
Ability to perform different mathematical operation
(ALU)
Control Register
Instruction decoder
Register File
part of very small memory component Which receives instructions AND keep track instructions that need executed : ص19
Control Register
Instruction decoder
Control Unit
Register File
Some processors used for complex applications are still 8-bits or 16-bits.
True
False
most high-performance processors used in scientific applications are 128-bit architectures.
True
False
its The bit size and it a processor determines the magnitude of integers that it can process
True
False
ADD, SUB, XOR. Its a
Arithmetic / Logic Instructions
Data Transfer Instructions
Branch & Jump Instructions
instruction set
registers & vise versa.
E.g.: MOV, LOAD
Arithmetic / Logic Instructions
Data Transfer Instructions
Branch & Jump Instructions
instruction set
instructions & jumping to instructions at various other locations
Arithmetic / Logic Instructions
Data Transfer Instructions
Branch & Jump Instructions
instruction set
results in higher performance but requires more expensive hardware
RISC
CISC
new data can be stored on it flash memory and Cd card
Non-volatile memory
Volatile memory
Main memory ex for
hdd
ram
Solid State Drive
Magnetic Tape
It stores input data, intermediate results, programs, and other information Temporarily
rom
ram
dram
Main memory
The processor gets all the instructions from it.
and stores all its data in it.
rom
ram
Dram
Sram
There are some programs and instructions which the computer needs whenever it turns on.
rom
ram
Dram
BIOS
most program tend to reuse data and ins they have used recently
(ins = instructions) معلومة
Memory Hierarchy
Principle of locality
Address Bus
loop
There are two kind of locality in softwere
Memory Hierarchy
Principle of locality
Temporal locality
Spatial locality
pertain item that whose address are near one another and tend to be referenced closely together in time
Memory Hierarchy
Principle of locality
Temporal locality
Spatial locality
pertains to recently accessed item are likely to be accessed in the near future
Memory Hierarchy
Principle of locality
Temporal locality
Spatial locality
Any hardware that is physically placed closer to the processor is faster.
true
false
Which is not directly addressable by the processor but is accesse through an input/output device interface AND It refers to a kind of non-volatile long
term memory.
RAM
storage unit
MAIN MEMORY
cache hit
is safe place for store thing it is first level of memory
Cach
Cache hit
Cache miss
Cache disk
Cache is type of memory it place so close to processor
Processor finds request data item in cache it called
cache hit
cache miss
Processor don’t found request or data called
cache hit
cache miss
example for storage unit
all
hdd
ssd
Magnetic Tape
Hard disk have two important parameter which determine access speed
seek time
Rotational delay
Ram
rom
time take to position the head on specific track
seek time
Rotational delay
Ram
rom
the time required to move a requested sector under the head
seek time
Rotational delay
Ram
rom
most embedded computer employed in simpler device suc h as -TV- microwaves - use :
RISC ISA ARM
CISC ISA x 86
Hard disk slower then RAM
false
true
Core I7 runing at 3 GHZ faster then core I7 run at 2.8 GHZ
true
false
flow charts
express a sequence of step to perform a certain task
It software package
Tool control the speed at which computer program runs
nothing...
Flowgorithm :
Lets new programming build flowcharts that can be executed step by step showing
user how value of variable change with each step currently
Free software package to create flowchart
Free software packet to execute and debug flowchart
All
Flowgorithm can change language from press
Control + O
F12
Control + S
Control + Z
computers need the ability to store or remember values. This is done using
variables
number
declare
Integer
----------------in computer programs are containers that can store different kinds of numbers or text
variables
number
declare
Integer
Types of variables
Real
Integer
String
All
------------------- value are write in double quotes (“----”) Number store as string cannot used for collations
Real
Integer
String
All
Stores only 1 bit of inf with one or two possible option
Real
Integer
String
Boolean
Simple mathematic operation
(+)---addition
(-) ----subtraction
(*)----multiplication
(/)----- Division
10 Mod 3 (يعني باقي القسمة اقسم العدد وشوف كم باقي)
2
1
3
10
Task Repetition is an essential element of computer program the structure used to define repetition in computer program is called
if
Loop
sum
for
sequences of blocks, is put inside a loop and is run repeatedly and is called :
Loop
body of the loop
if
sum
Each execution of the code inside a loop
Loop
body of the loop
Iteration
loops are mainly three different types:
For loop
While loop
Do-while loop
all
----------usually used when it is know beforehand how many time the body of the loop is to be executed
For loop
While loop
Do-while loop
if
------------.Usually use when it is not known beforehand how manytime the body of the loop is to be executed
For loop
While loop
Do-while loop
if
Different between do-while , while
Do-while is pre test loop
While loop post test
Do-while post test loop test after execution
While begins by checking the condtion to determine whether to execute thevery iteration then execute the body of loop
Pre_test loop
Post test loop
Do while begin by executing the first iteration and only after ward cechs the status of the condtion
Pre_test loop
Post test loop
Each element of an array can be accessed by the name given to the array and a number indicating its location in the array
Index
array
list
value
read statement value from the keyboard and stores the result in a variable
Input
output
declare
if
calculates an expression and then stores the result in a variable
Declare
Assignment
Input
Main
diamond chip mean
loop
output
declare
if
hexagon
For loop
While loop
Declare
if
evaluates a Boolean expression and if true executes statement . it rechecks the expression and loop until it is false
For loop
While loop
Do-while loop
if
Allow program to both reuse code and simplify logic data is passed into function using parameters
Function
While loop
Do-while loop
if
transfer control to function inf is passed into the function using “argument”
Argument
Functions
Parameters
Call
don’t affect how your program run used for documentation about program for other programmer
Comments
call
breakpoint
nothing
refer to process of removing any error in computer program
Comments
call
breakpoint
Debugging program
temporarily halts execution of program is useful both debugging program for demonstration
Breakpoint
comment
function
comments
. “condition check – execute – condition check – execute – ... – condition check –exit
For loop
while loop
do while loop
if
“Execute – condition check – executive – ... – condition check – exit”
For loop
while loop
do while loop
if
When the decision of performing a certain number of step depend on truth or falsehood of logical or mathematical statement the appropriate block to use in flowchart is
Declare block
Output block
Input block
If block
Break point is a block that
a- Can be added to a flowchart to pause the execution of flowchart every time the
breakpoint is reached
Stands output message to console window
None of above
Number of type variable
1
2
3
4
The keyboard symbol used to represent the mathematics multiplication operation is
(+)---addition
(-) ----subtraction
(*)----multiplication
(/)----- Division
