Comp Sci Unit 1

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/44

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

45 Terms

1
New cards

setProperty ( )

A function used to change properties of elements in your app.


2
New cards

OnEvent ( )

A function that listens for user interactions (like clicks) on elements and delivers a response. it is telling the program what code to execute when a given event occurs.

3
New cards

list different types of properties you can change on an app

  • backgroundColor: The background color of elements like buttons, labels, or screens.

  • textColor: The color of the text on buttons, labels, etc

  • text: The text displayed on a label, button, or text input.

  • fontSize: The size of the text.

4
New cards

List tools found in the design toolbox

  • Screen: Adds a new screen to the app for organizing different pages.

  • Button: A clickable button to trigger events.

  • Text Input: A field where users can enter text.

  • Dropdown: A list of options for the user to choose from.

  • Checkbox: A box that users can check or uncheck.

  • Radio Button: A set of buttons where only one can be selected at a time.

  • Slider: A bar that users can slide to select a value.

  • Text Area: A larger field for multi-line text input.

5
New cards

difference between input and output

Input: Input refers to the data or signals that a user or an external system provides to an app or a program. It’s what the program receives to process.

  • Example:

    • Clicking a button or selecting an option from a dropdown.

Output: Output is the data or results that the app or program provides back to the user or another system after processing the input. It’s what the program generates and displays.

  • Examples:

    • Playing a sound or displaying an image.

6
New cards

know the difference between code view vs. design view

  • Design View: This view is primarily focused on the visual aspects of your app. It allows you to design the user interface (UI) without writing code.

  • Features:

    • Drag-and-Drop Interface: You can easily add, move, and resize UI elements like buttons, labels, images, and input fields by dragging and dropping them onto the screen.

    • Property Editor: You can modify properties of the selected UI elements (like text, color, size, and visibility) using a properties panel.

    • Real-Time Preview: You can see how the app will look as you design it, allowing for immediate feedback on layout changes.

2. Code View

  • Purpose: This view is where you write the code that controls the behavior and functionality of your app. It focuses on the logic behind the app, rather than its appearance.

  • Features:

    • Text-Based Coding: You write JavaScript-like code to define how the app responds to user interactions, processes input, and generates output.

    • Event Handling: You can specify what happens when certain events occur, such as button clicks or text input changes.

    • Access to Variables and Functions: You can create and manipulate variables, define functions, and manage app logic.

7
New cards

User Interface

refers to the point of interaction between the user and a computer program, website, or app.

8
New cards

List the ways you can upload a picture or image on an app

  • My Files

  • Link to Image

  • Icons

9
New cards

explain why it’s important for have meaningful element id’s

Meaningful IDs make your code easier to read and understand. They help you quickly know what each element does, making it easier to debug and maintain your app.

10
New cards

console.log ( )

A function used to print messages or variables to the console, which helps with debugging.

11
New cards

Sequential Programs & Event Driven Programs Similarities:

Both still run one program statement or command at a time 

12
New cards

Sequential vs. Event Driven Programs

  • Sequential programs run line by line 

  • Event-driven programs run code when they are triggered by events

  • Sequential programs run the same way each time 

  • Event-driven programs will run differently based on user interactions

13
New cards

What is the purpose of a design specification?

  • Provides a clear plan for developers and designers

  • Helps ensure everyone understands the goals and functions of the project

  • Acts as a reference throughout the development process to keep the project on track

14
New cards

Lossy Compression

  • Reduces file size by removing unimportant data

  • Results in a loss of quality (e.g., JPEG images, MP3 audio)

  • Useful for media where a slight decrease in quality is acceptable for smaller file sizes

  • Compresses more data than Lossless


15
New cards

Lossless Compression

  • Reduces file size without losing any data or quality

  • Original data can be perfectly reconstructed (e.g. PNG images, text)

  • Essential for situations where preserving quality is crucial

  • (loss of words or number would change info)

16
New cards

Data Compression

process of reducing the data size to save storage space or transmission time. Purpose: improve storage efficiency, speed up data transmission, enhance performance, and lower costs, while allowing for easier management of large amounts of data.

17
New cards

Data values (any number values)

can be stored in variables (containers) lists of items, or  standalone constants and can be passed as input to (or output from) procedures.

18
New cards

Bit

shorthand for binary digit and is either 0 or 1. 

19
New cards

Abstraction

process of reducing hard code and making it into simple code

20
New cards

Analog Data

Values change smoothly over time (e.g., music pitch, colors, runner's position)

21
New cards

Number Base

 including binary and decimal, are used to represent data.

22
New cards

Information(Data)

  • collection of facts and patterns extracted from data.

  • Data provide opportunities for identifying trends, making connections, and addressing  problems 

23
New cards

High-Level Programming

Abstracts from hardware; runs on multiple computer types

24
New cards

Low-Level Programming

Closely corresponds to processor circuitry; interpreted quickly but less human-friendly

25
New cards

High-Level vs Low-Level Programming

Similarities:

- Both are types of programming languages used to write software.

- Both can ultimately control hardware and perform tasks.

Differences:

- High-Level: Easier to read and write; abstracts hardware details; examples include Python and Java.

- Low-Level: More control over hardware; harder to read; examples include Assembly and C.

26
New cards

Biometrics

Recognizes individuals by physical traits (e.g., fingerprints, face)

27
New cards

Digital Divide

Gap in technology access between rich and poor, young and old, etc.

28
New cards

Copyright

Exclusive right granted by government to reproduce/sell a creative work


29
New cards

Packets

Small chunks of information that are portions of a larger, complete set. 

30
New cards

IP Address

A number assigned to any item that is connected to the Internet

31
New cards

Router

receives messages travelling across a network and redirects them  towards their intended destinations based on the addressing information included with the message.


32
New cards

Visual tools (tables, diagrams) are used to

Communicate insights &  knowledge gained from data. 


33
New cards

Programs process data to

gain information

34
New cards

Intellectual Property

Intangible creations (ideas, music, art) as result of creativity and intellectual effort

35
New cards

Target Advertising

Companies target specific demographic groups

36
New cards

Metadata

  • Data about data (e.g., image file size, creation date)

  • Used for organizing and managing information

37
New cards

Bias in Data

Problems of bias are often created by the type or source of data being collected.
Bias is not eliminated by simply collecting more data.

38
New cards

Protocol

Rules for data exchange between devices.

39
New cards
40
New cards

Latency

Time taken for a signal to arrive

41
New cards

Bandwidth

Data transmission capacity, measured by bit rate

42
New cards

Boolean

A question with only two possible answers

43
New cards

Transmission Methods

  • Fiber Optics: Uses light to transmit data

  • Copper Wire: Uses electrical current

  • WiFi: Wireless technology using radio waves

44
New cards

Prototype

An initial sketch or model of a new idea

45
New cards

Data does what?

provides opportunities for identifying trends, making connections, and addressing  problems