Computing Revision Notes

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/69

flashcard set

Earn XP

Description and Tags

A comprehensive set of flashcards covering key computing concepts and Python programming skills.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

70 Terms

1
New cards

What are the core data types in Python?

int (whole numbers), float (decimals), str (text)

2
New cards

What function would you use to convert a string to an integer?

int()

3
New cards

How does a while loop work?

It repeats as long as a condition is true.

4
New cards

What is a for loop used for in Python?

It is used when you know exactly how many times you want to repeat something.

5
New cards

What is the output of the following code: for counter in range(10): print(counter)?

It outputs numbers from 0 to 9.

6
New cards

Why use lists in Python?

Lists store multiple values in a single structure, making code shorter and more manageable.

7
New cards

What syntax is used to create a list in Python?

Syntax: highscore = [125, 63, 35, 12]

8
New cards

How do you access the first item in a list called 'highscore'?

highscore[0], remembering that indexing starts at 0.

9
New cards

What method would you use to add an item to the end of a list?

.append() method.

10
New cards

What is a procedure in programming?

A set of instructions that performs a task.

11
New cards

What is a key reason to use procedures in Python?

To re-use code and avoid repeating it.

12
New cards

How do you define a procedure in Python?

Syntax: def procedure_name(): # your code here (must be indented)

13
New cards

What is the difference between a procedure and a function?

A function sends back a result, while a procedure does not.

14
New cards

What is the output of the following function call: printDouble(10) if defined as def printDouble(amount): print('Double', amount, 'is', amount * 2)?

Double 10 is 20.

15
New cards

What is the purpose of using parameters in procedures?

To provide extra information needed for the procedure's task.

16
New cards

What does the return statement do in a function?

It sends back a result to the caller.

17
New cards

What structure is used to organize data in databases?

Tables that store data in rows and columns.

18
New cards

What is a primary key in a database?

A unique identifier for each record.

19
New cards

What types of checks can be used for data validation in a database?

Range check, length check, presence check, type check, format check.

20
New cards

What is the purpose of a foreign key in a relational database?

To link tables with a common field.

21
New cards

What is a parameterized query?

A query where users can enter values at runtime.

22
New cards

What is meant by sorting data in a database context?

Arranging data in ascending or descending order based on specified fields.

23
New cards

What is an input form on websites used for?

To collect data from users.

24
New cards

What is DNS short for and what is its function?

Domain Name Server; it translates web addresses into IP addresses.

25
New cards

What does HTTP stand for?

HyperText Transfer Protocol.

26
New cards

Define packet switching. What does it do?

It directs data packets via the fastest route, which may not necessarily be the shortest.

27
New cards

What is the definition of bandwidth?

The amount of data that can be transmitted at a time.

28
New cards

What is a WAN?

Wide Area Network; covers large geographical areas.

29
New cards

What are the advantages of a client-server network?

Centralized data management, enhanced security, and easier updates.

30
New cards

How is a peer-to-peer network different from a client-server network?

It has no central server; each computer stores its own data.

31
New cards

What is cloud computing?

Storing data and applications on remote servers accessed via the internet.

32
New cards

Define encryption in computing. Why is it used?

Changing data so it can't be understood without a decryption key, to protect sensitive information.

33
New cards

What is a byte in terms of bits?

1 Byte = 8 Bits.

34
New cards

How does vector graphics work compared to bitmap graphics?

Vector graphics are based on geometric shapes, while bitmap graphics are made of pixels.

35
New cards

What is the main disadvantage of bitmap graphics?

Resizing causes pixelation and loss of quality.

36
New cards

What is a key characteristic of vector graphics?

They are scalable without losing quality.

37
New cards

What is DPI and why is it important?

Dots per inch; it measures the resolution of an image.

38
New cards

How does one create layers in graphic design?

By stacking elements in a design software for better organization and control.

39
New cards

What role do fonts play in graphic design?

Fonts help set the tone and style of a graphic.

40
New cards

Define RGB color model.

It represents colors using red, green, and blue light combinations.

41
New cards

What is the significance of white space in design?

Enhances readability and draws attention to key elements.

42
New cards

What is the term for negative space in design?

White space.

43
New cards

What does saturation refer to in image editing?

The intensity of color in an image.

44
New cards

What is the main advantage of using Adobe Color?

To help pick complementary color schemes.

45
New cards

What is a common bitmap file format?

.bmp, .jpg, .png, .gif

46
New cards

What does 'calculated field' mean in a database?

A field computed using data from other fields.

47
New cards

What does CSS stand for and how is it used?

Cascading Style Sheets; used for styling web pages.

48
New cards

Why is user experience (UX) important in websites?

A good UX ensures users find the site easy to navigate and visually appealing.

49
New cards

What is the purpose of input validation in web forms?

To ensure the data submitted is correct and secure.

50
New cards

What would you use a router for in networking?

To direct data efficiently among devices.

51
New cards

What is the difference between asynchronous and synchronous communication?

Asynchronous occurs with delays; synchronous happens in real-time.

52
New cards

What are two advantages of using a star topology in networks?

Fastest response time, and if one cable fails, only that device is affected.

53
New cards

What is the primary benefit of using a database?

Efficient data management and retrieval.

54
New cards

Define the term 'file sharing' in the context of networks.

The practice of distributing or providing access to digital media.

55
New cards

What is the purpose of security protocols in data transmission?

To protect data from unauthorized access during transmission.

56
New cards

What role does a switch play in a network?

It connects devices and reduces network traffic.

57
New cards

What does a primary key ensure in a database table?

Uniqueness for each record in the table.

58
New cards

What is a GUI?

Graphical User Interface; allows users to interact with electronic devices using graphical icons.

59
New cards

What is network latency?

The delay before a transfer of data begins following an instruction.

60
New cards

How are codes used in data encryption?

They transform plaintext into ciphertext to secure information.

61
New cards

Define 'data integrity' in database management.

Accuracy and consistency of stored data.

62
New cards

What is an example of a cloud storage service?

Google Drive, Dropbox.

63
New cards

What is a digital footprint?

The trail of data you leave behind when using the internet.

64
New cards

What does SSL stand for and its significance?

Secure Socket Layer; provides a secure channel for communication.

65
New cards

What keyword is used to define a function in Python?

def.

66
New cards

Mention one disadvantage of using a LAN.

It can be more complex to set up compared to standalone connections.

67
New cards

What does a firewall do?

It protects networks from unauthorized access and threats.

68
New cards

What is the purpose of using comments in code?

To explain and clarify sections of the code for better understanding.

69
New cards

Why is it important to keep software updated?

To protect against security vulnerabilities and improve performance.

70
New cards

What is the ideal use of a method like 'search' in databases?

To find specific records based on criteria.