INFO 102 Homework Answers

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

1/81

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

82 Terms

1
New cards

I have a dataset where I don't yet know the targets for the items in the dataset. Which type of machine learning is most appropriate?

Unsupervised learning

2
New cards
3
New cards

True or false: A neural network is an example of an unsupervised learning algorithm.

False

4
New cards

What task is ChatGPT likely the worst at?

Calculating the result of multiplying multiple fractions.

5
New cards

GPT's large language model depends on which type of ML approach?

Neural network

6
New cards

Which of the following best describes the architecture and purpose of a large language model (LLM)?

A neural network trained on vast corpora of text to predict and generate sequences of words based on probabilistic patterns

7
New cards

In supervised learning, what do we call the data set used to build the model?

Training model

8
New cards

Which of these is not a challenge faced by machine learning approaches?

It can be difficult to develop the explicit rules that will be implemented in the ML model.

9
New cards

For this problem, find the items, the features, and the targets.

A machine learning algorithm that finds the bird that created a bird song.

Item -> Audio recording

Target -> Type of bird

Feature -> Sound frequencies

10
New cards

The base of GPT

  • Trained on data scraped from the internet, which is "self-supervised" (that means that no labeling is required because it's already clear what the right answer to a word prediction task should be).

  • Last part of the network represents high-level concepts.

11
New cards

The head of GPT

  • Goal is to respond appropriately to human queries.

  • Trained with feedback from people.

  • Has guardrails.

12
New cards

What is a Database Management System (DBMS)?

A software that manages, organizes, and controls access to a database.

13
New cards

What is a database schema?

A blueprint that defines the structure of a database.

14
New cards

Which of the following best describes the difference between a client and a server?

A client requests services or resources, while a server provides them.

15
New cards

Match each part of the LAMP stack to its role.

Linux: Operating System

Python/PHP: Programming Language

MySQL: DBMS

Apache: Web Server

16
New cards

In which of the following scenarios would it make the most sense to use a database?

Managing customer records for an e-commerce website that requires efficient queries and updates from many customers.

17
New cards

https

18
New cards

What is the key difference between a dynamic and a static webpage?

A static webpage is pre-built and displays the same content to all users, while a dynamic webpage generates content in real-time based on user input or database data.

19
New cards

What does the acronym CRUD stand for in the context of databases?

Create, Read, Update, Delete

20
New cards

What is a tech stack in software development?

A combination of technologies, including frameworks, programming languages, and tools, used to build an application.

21
New cards

Which of the following best describes a key difference between the Waterfall and Agile software development methodologies?

Agile allows iterative development with regular feedback from clients, while Waterfall follows a linear and sequential approach where clients only see the product at the end of the process.

22
New cards

What is a markup language?

A language that uses tags or symbols to annotate text.

23
New cards

A designer would most likely send their design to which software team member to be implemented?

Front-end designer

24
New cards

Which of the following best defines open source software?

Software whose source code is freely available for anyone to view, use, modify, and distribute

25
New cards

The server sends an

HTTP Response

26
New cards

The client sends an

HTTP Request

27
New cards

A website resizes its content based on how large your browser window is. This website is:

responsive

28
New cards

Which of these is not a step in the process of visiting a static webpage?

The web server uses a programming language like Python to create the HTML of the webpage.

29
New cards

Server error

500s

30
New cards

Client error

400s

31
New cards

Success

200s

32
New cards

What is the primary function of a firewall?

To block or allow network traffic based on security rules

33
New cards

What does the Domain Name System (DNS) do?

Convert domain names into IP addresses

34
New cards

Command line interface

  • Users only type

  • This type of UI dates back to computers from the 60s

  • Only text is displayed to the user

35
New cards

Graphical User Interface (GUI)

  • Users can interact with the mouse

  • Images and text are displayed to the user

  • This type of UI is more recent, gaining popularity in the 80s

36
New cards

What is the main purpose of prototyping in development?

To test and validate ideas before full-scale production

37
New cards


What is the difference between a MAC address and an IP address?

An IP address might be IPv4 or IPv6, while a MAC address has only one format

38
New cards

What is an API call?

A request made by a client to access specific data or functionality from the API

39
New cards

Javascript

Front-end

40
New cards

CSS

Front-end

41
New cards

Web browser

Front-end

42
New cards

HTML

Front-end

43
New cards

Client-side scripting

Front-end

44
New cards

LAMP Stack

Back-end

45
New cards

Database

Back-end

46
New cards

Web server

Back-end

47
New cards

Python

Back-end

48
New cards

SQL

Back-end

49
New cards

Server-side scripting

Back-end

50
New cards

 <a> tag is used for

a link

51
New cards

<img> tag is used for

an image

52
New cards

 <p> tag is used for

paragraphs

53
New cards

<h1> … <h6>

the largest to the smallest of the headline tags

54
New cards

<div>

used for a division (part) of the page

55
New cards

True or false: It’s not possible to write a program that determines whether another program runs forever.

True

56
New cards

True or false: All graph problems have no algorithms that run in better than exponential time complexity.

Examples of graph problems are finding the shortest path from a starting point to a destination, finding the longest path from a starting point to a destination, and finding the shortest path through multiple destinations (the Traveling Salesman Problem).

False

57
New cards

True or false: There are different sizes of infinity.

True

58
New cards

True or false: There are some problems that cannot be solved by computers, even if they had infinite time to solve them.

True

59
New cards

The Halting Problem is

undecidable

60
New cards

True or false: NP-complete problems cannot be solved by computers

False

61
New cards

What is not countable?

Real numbers (e.g. pi, sqrt(2))

62
New cards

The __________________ is a program that manages computer resources and provides an interface for other applications and the user.

Operating system

63
New cards

Which of these tasks is not embarrassingly parallel?

Simulating a series of logic gates

64
New cards

Why are GPUs called Graphical Processing Units?

They were originally used only for programs related to graphics, but today they are used for other types of applications

65
New cards

Which of these pages would have the highest PageRank?

A page with lots of incoming links from other pages that also have many incoming links

66
New cards

When a process in the ready state is dispatched, what state does it enter?

Running

67
New cards

When a process in the running state needs input, which state does it go to?

Waiting

68
New cards

When a process is over or is ended by a user, it enters which state?

Terminated

69
New cards

When the operating system interrupts a program in the running state to give CPU time to another process, the process enters which state?

Ready

70
New cards

Which of the following are not stored in binary in the computer?

Everything is stored in binary in the computer

71
New cards

Which of these is not an encoding for characters (letters)?

Unicode-2000

72
New cards

Which is a larger number, 0x111 or 0b111? (By larger, I mean greater in magnitude)

0×111

73
New cards

In ASCII, characters are 8 bits, but the first bit is always 0. How many characters can be represented in ASCII?

128

74
New cards

There are ___ bits in a byte

8

75
New cards

How many symbols are used in the binary number system?

2 (0 and 1)

76
New cards

Which of these is not a likely problem with numbers in computers?

It takes longer for the computer to process binary numbers than hexadecimal numbers because they have more digits, which can cause unexpected delays.

77
New cards

The ___(1)____ is made up of the ___(2)____,  which fetches instructions, and the ____(3)______, which performs calculations.

(1) CU

(2) Logic gates

(3) ALU

78
New cards

What is the cycle that occurs in the processor?

Fetch-decode-execute

79
New cards

Moore's law says that "The number of (1)________ on microchips will (2)________ every two years."

(1) transistors

(2) double

80
New cards

Which logic gate does this represent? A and B are inputs to the gate, and X is the output of the gate

OR

81
New cards

A terabyte is how many megabytes?

1,000,000

82
New cards

Which is biggest?

Exabyte