ex 1 Flashcards

Exam

1
Q

The invention of this product replaced vacuum tubes and made computers much smaller and faster. However, it was eventually replaced by another invention. Guess the name of this product.

A

Transistor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

This invention helped make computers much smaller and faster. What is it called?

A

Integrated Circuit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

This person created a machine called ‘The Analytical Engine.’ His ideas were some of the first that led to the creation of computers. Guess the name of this person. He is the father of computers.

A

Charles Babbage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

This person created what is now known as the first computer program. The program was made to help the Analytical Engine calculate numbers. Guess the name of this person.

A

Ada Lovelace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Steve Jobs and Steve Wozniak built their first computer using a wooden box. Their company has grown and is still around today. The name of the company is:

A

Apple

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The first generation of computers used vacuum tubes. Why were they replaced by the transistor?

A

Vacuum tubes consumed a lot of energy and generated excessive heat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

An operating system is responsible for:

A

Memory management

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Example of application software is:

A

to allow users to communicate with the computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Data science is:

A

The study and analysis of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The five main components of computers are:

A

ram, CPU, Input, output, & hard drive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The input of the linker is _______ while the input to compiler are ________

A

Object code, high level language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Electronic Numerical Integrator And Computer (ENIAC)

A

Was the first electronic computer used vacuum tubes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Charles Babbage invented:

A

The first mechanical computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

ALTAIR, 1975 is an:

A

Electronic computer used integrated circuit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

First Generation of computing has:

A

Magnetic drum and assembly language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Second Generation of computing has:

A

Transistors and high level language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Fourth Generation of computing has:

A

Integrated circuits and operating systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Examples of non-Volatile memories are:

A

DVD, ROM, CD, flash memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The speed of following devices from highest to lowest:

A

Registers, Cache, RAM, DVD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

The following 7 steps when you open a computer and run your first source program.

A

1)power on

2)Basic Input/Output System (BIOS) Initialization: The BIOS, stored in a ROM chip on the motherboard, initializes essential

3)Boot Loader: The BIOS loads the boot loader from the hard drive. The boot loader is a small program responsible for loading the operating system kernel into memory.

4) Kernel Initialization

5) User Space Initialization

6) User Interaction: the user interacts with the computer through the GUI or command-line interface

7) Running the First Source Code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The high level language is an object code
True

False
A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Responds to user requests and schedule tasks is type of application software
True

False
A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Moor’s law is the idea that the number of transistors on integrated circuits can be doubled every two years.

True
 	False
A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

y value for this pseudocode= 80
set a= 20, b=1, c=3, x=2
y=a(x*x) + bx +c
Print y

True

False
A

false

86=20(22)+12+3
y =86

25
Q

A representation of an algorithm

26
Q

What is the output of the following code:
v1= [2,4,6], v2 = [2,3,4],
a=[v1[i]*v2[i]
for i in range(len (v1))]?
print(a)

A

[4, 12, 24]

27
Q

What is the output of the following code:
v = [2,4,6], a=[{x: x**2}
for x in v]?
print(a)

A

[{2: 4}, {4: 16}, {6: 36}]

28
Q

What is the output of the following code:
v = [12,7,1], a=[v[i] % 4
for i in range(len(v))]?
print(a)

29
Q

What does print(“abcdefg”[1:4]) output?

30
Q

Does the code print(“abcdef”[-3]) generate the letter d?

31
Q

What is the output of the following code:
a=[5, 23,50,20,95],
for i in range(len(a)):
if(a[i] %5 == 0):
print(a[i], end=” “)?

A

5,50,20,95

32
Q

Does the following code generate [ 1 0, 1 1, 2 0, 2 1]?
for i in range(1,3):
for j in range(2):
print (i, j,end=’, ‘)

33
Q

Can the equation 1abc=100 be written in Python?

34
Q

Does the following code have syntax errors? for
i in range(1,3)
for j in range(2)
print (i, j,end=’, ‘)

35
Q

If a = (23, “abc”, 4.56, (2,3), ‘def’), is a[0]= 23 true?

36
Q

Was the analytical engine the world’s first electronic digital computer?

37
Q

Was the first electronic programmable computer, ENIAC, completed just after World War II?

38
Q

Is computer science the study of how to write computer programs?

39
Q

What revolution enabled us to implement algorithms that automated repetitive mental tasks?

40
Q

Which language characterizes the first software generation?

A

machine language

41
Q

what is computer science?

A

Computer Science is the study of computer systems including
the hardware and software.

Computer science include programming, designing computer
systems, dealing with human computer interaction (HCI),data
base, Networking, Front and back end for websites, computer
animation, robotics, etc.

42
Q

Data Science

A

Data Science is the study and analysis of
data. In order to analyze the data, we
need to extract it from the database.

43
Q

Algorithm

A

set of steps that defines how a task is performed

44
Q

Program

A

A representation of an algorithm

45
Q

Programming

A

The process of developing a program

46
Q

Software

A

Equipment; the physical elements of the system

47
Q

Programming language

A

set of instructions written by a
programmer to deliver instructions to the computer to
perform a task

48
Q

Static RAM

A

Made up of flip flops
Small in size
Much Expensive
Consume less power
Low storage capacity
Fast
Data sustain with time

49
Q

Dynamic RAM

A

Made up of Capacitors
larger in size
Less expensive
Low storage capacity
slow
Data losses with time, need
refreshing circuit

50
Q

Supercomputers

A

The fastest and most powerful computers, capable of processing vast amounts of data in real
time.

Used for highly complex calculations, simulations, and data-intensive tasks.

 Extremely high processing power.
 Capable of parallel processing.
 Expensive and large in size.
 Require specialized cooling systems.
Applications:
 Climate modeling and weather forecasting.
 Scientific research (e.g., simulations of nuclear reactions).
 Cryptanalysis.
 Space exploration.

51
Q

Mainframe Computers

A

Large, powerful computers designed for handling vast amounts of data and supporting multiple
users simultaneously.
Used for enterprise-level applications requiring reliability and scalability.

 High reliability and uptime.
 Support for thousands of users.
 Extensive storage capacity.
 Centralized processing.
Applications:
 Banking and financial transactions.
 Inventory management for large retailers.
 Airline reservation systems.
 Government data centers.

52
Q

Microcomputers (Personal Computers - PCs)

A

Computers designed for individual use, including desktops, laptops, tablets, and smartphones
Used for general-purpose tasks like word processing, internet browsing, gaming, and
multimedia.

 Compact and affordable.
 User-friendly interfaces.
 Wide range of configurations.

 Office work.
 Education and e-learning.
 Gaming and entertainment.
 Personal productivity.

53
Q

Workstations

A

High-performance computers designed for technical or scientific tasks.

Provide specialized processing power for demanding applications.

 Powerful processors and graphics capabilities.
 Typically used by professionals.
 Expensive compared to standard PCs.
Applications:
 Computer-aided design (CAD).
 3D rendering and animation.
 Scientific modeling.
 Software development.

54
Q

Servers

A

Computers designed to manage and provide resources to other devices (clients) in a network.
Handle requests, store data, and manage network operations.
 High reliability and uptime.
 Ability to manage multiple connections simultaneously.
 Scalable configurations.
Applications:
 Web hosting.
 Database management.
 Cloud computing.
 Email and file sharing services

55
Q

Embedded Systems

A

Specialized computers integrated into devices to perform dedicated tasks.
Control or monitor specific functions of the host device.
Characteristics:
 Low power consumption.
 Real-time operation.
 Limited user interface.
Applications:
 Automotive systems (e.g., ABS, navigation).
 Consumer electronics (e.g., washing machines, smart TVs).
 Medical devices (e.g., pacemakers, diagnostic tools)

56
Q

Hybrid Computers

A

Process both continuous and discrete data.
Analog components for measuring.
 Digital components for computation.
 Highly specialized for niche applications.
Applications:
 Medical applications (e.g., ECG machines).
 Industrial process control.
 Weather prediction

57
Q

Cloud computers

A

Cloud Computing is a model of computing that provides on-demand access to shared
computing resources (like servers, storage, applications, and services) over the internet.
Cloud: A metaphor for the internet, emphasizing the delivery of computing services
remotely

58
Q

In merge sorting algorithm, the first part is to merge the individual items into one list

true or false

59
Q

If a list has the following items [ 56, 6, 87, 10], then the list after the pseudo code is [ 87, 56, 10,6]

Set n as the length of list

Set i=0

while i < n-1

     set  j=0

      while j <  n-i

               if list[j] < list[j+1]

                      swap(list[j], list[j+1]

               increment j by 1

     increment i by 1 true or false