Hardware and software components, Binary and ASCII, Python, Peer2Peer networks, Client Server Flashcards

(86 cards)

1
Q

What are the two main categories of computer components?

A

Hardware and software

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

What is hardware?

A

Physical components of a computer system

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

What is software?

A

Programs and operating systems that run on a computer

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

True or False: Binary is a base-10 numbering system.

A

False

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

What is the base of the binary numbering system?

A

Base-2

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

What does ASCII stand for?

A

American Standard Code for Information Interchange

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

How many unique characters can be represented by standard ASCII?

A

128 characters

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

What is the binary representation of the letter ‘A’ in ASCII?

A

01000001

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

Fill in the blank: Python is a __________ programming language.

A

high-level

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

True or False: Python is primarily used for web development.

A

False

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

What is a key feature of Python?

A

Readability and simplicity

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

What type of network architecture does Peer-to-Peer (P2P) refer to?

A

Decentralized network architecture

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

In a Client-Server model, what role does the server play?

A

Provides resources and services to clients

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

What is an example of a Client-Server application?

A

Web browsers and web servers

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

What is the main difference between Client-Server and Peer-to-Peer networks?

A

Client-Server has centralized resources, while P2P has distributed resources.

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

Fill in the blank: In Python, a variable is created by __________.

A

assignment

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

What is the purpose of a compiler?

A

Translates source code into machine code

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

What is a common use case for binary data?

A

Storing images and audio files

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

True or False: ASCII can represent characters in multiple languages.

A

False

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

What is the smallest unit of data in a computer?

A

Bit

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

What does a Python list allow you to do?

A

Store multiple items in a single variable

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

What is the primary function of an operating system?

A

Manage computer hardware and software resources

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

True or False: A server can also act as a client.

A

True

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

What is an example of a hardware component?

A

CPU, RAM, Hard Drive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What does the term 'open-source' mean in software?
Software whose source code is available for modification and redistribution
26
In Python, how do you create a function?
Using the 'def' keyword
27
What is the purpose of a network protocol?
Rules for data communication over a network
28
What is the binary representation of the number 5?
101
29
Fill in the blank: The main advantage of a Client-Server architecture is __________.
centralized management
30
What is the result of 2 + 2 in Python?
4
31
True or False: Python supports object-oriented programming.
True
32
What does the 'import' statement do in Python?
Includes modules in a Python script
33
What is a network switch?
A device that connects devices on a network and uses MAC addresses to forward data
34
What is the maximum value of a 1-byte binary number?
255
35
What does 'IP' stand for in networking?
Internet Protocol
36
Fill in the blank: P2P networks are often used for __________ sharing.
file
37
What is the purpose of a router?
Connects different networks and forwards data packets
38
What is the Python keyword for creating a loop?
for
39
True or False: ASCII includes control characters.
True
40
What does the term 'bandwidth' refer to?
The maximum rate of data transfer across a network
41
What is a disadvantage of P2P networks?
Less control over data security
42
What is the main role of a database in a Client-Server architecture?
Store and retrieve data for clients
43
What is the syntax for printing text in Python?
print('text')
44
Fill in the blank: A __________ is a specialized program that runs in the background to manage network resources.
daemon
45
What is the hexadecimal equivalent of the binary number 1111?
F
46
True or False: A client requests services from a server.
True
47
What does the acronym 'URL' stand for?
Uniform Resource Locator
48
Fill in the blank: In Python, a __________ is used to handle errors during program execution.
try-except block
49
What is the purpose of a firewall?
To protect a network from unauthorized access
50
What does the term 'latency' refer to in networking?
The delay before data transfer begins
51
What is the binary representation of the decimal number 10?
1010
52
What is a key advantage of Python?
Cross-platform compatibility
53
True or False: A network can exist without a server.
True
54
What is a common use of ASCII in computing?
Text representation
55
What is the purpose of a network interface card (NIC)?
To connect a computer to a network
56
Fill in the blank: In Python, a __________ is a data type that can hold multiple values.
dictionary
57
What is the difference between TCP and UDP?
TCP is connection-oriented; UDP is connectionless.
58
What is a common protocol used for web traffic?
HTTP
59
True or False: Python is a compiled language.
False
60
What does the term 'throughput' refer to in networking?
The amount of data successfully transmitted over a network in a given time
61
Fill in the blank: A __________ in Python is a reusable piece of code that performs a specific task.
function
62
What is the purpose of a DNS server?
Translate domain names into IP addresses
63
What is the binary value for the decimal number 2?
10
64
True or False: P2P networks are always illegal.
False
65
What is the main function of the Central Processing Unit (CPU)?
Execute instructions and process data
66
What is the command to install a package in Python using pip?
pip install package_name
67
Fill in the blank: The __________ is the primary storage device for a computer.
hard drive
68
What does the acronym 'LAN' stand for?
Local Area Network
69
What is the purpose of a load balancer?
Distribute network traffic across multiple servers
70
What is the binary representation of the letter 'Z' in ASCII?
01011010
71
True or False: Every Python script must have a main function.
False
72
What is a common method for securing data in a network?
Encryption
73
Fill in the blank: In Python, a __________ is a collection of related data.
module
74
What is the role of a proxy server?
Act as an intermediary for requests from clients seeking resources from other servers
75
What is the maximum number of unique values in a 4-bit binary number?
16
76
True or False: Python uses indentation to define code blocks.
True
77
What does 'SSH' stand for?
Secure Shell
78
What is the binary representation of the decimal number 15?
1111
79
Fill in the blank: A __________ is a program that helps manage files on a computer.
file manager
80
What is a common tool for version control in software development?
Git
81
What is the purpose of a backup system?
To protect data by creating copies for recovery
82
What is the role of an application server?
Host applications and provide business logic to client applications
83
What is the binary representation of the decimal number 1?
1
84
True or False: A byte consists of 8 bits.
True
85
What is the purpose of an API?
Allow different software applications to communicate with each other
86
Fill in the blank: The __________ is the main interface between the user and the computer.
operating system