CSE Lesson 1.1 Introduction to Computer Science
Document Details
Uploaded by InstrumentalBliss6918
null
Tags
Related
Summary
This document is a quiz study guide for a computer science course, covering topics like block-based programming, algorithms, and coding fundamentals. Concepts, such as variables, arguments and data types like integers, floats and strings are explicitly mentioned. The document also includes activities and conditional statements related to computer programming.
Full Transcript
**[CSE Lesson 1.1 Introduction to Computer Science Essentials]** **[Quiz Study Guide ]** **Activity 1.1.1 Getting Started with Block-based Programming** - **Activity 1.1.2 Algorithms and Coding Fundamentals** - **Variables - The smallest unit of data storage that a program can use. A var...
**[CSE Lesson 1.1 Introduction to Computer Science Essentials]** **[Quiz Study Guide ]** **Activity 1.1.1 Getting Started with Block-based Programming** - **Activity 1.1.2 Algorithms and Coding Fundamentals** - **Variables - The smallest unit of data storage that a program can use. A variable contains known or unknown information referred to as a "value." Two types of variables are global and local.** **Arguments - The values that a program provides to a function or subroutine. Sometimes coding professionals use the terms "argument" and "parameter" interchangeably. In this course, argument is a better choice because *Python* does not use the term parameter.** **Data types -** **Integer - A whole number that does not have a decimal or any digits after the decimal.** **Float -A type of number that provides very precise information by including all the numbers after the decimal.** **Strings - Text or characters displayed by a program. In MIT App Inventor *Blocks* view, the text string block lets you manage how text, also known as strings, are seen by the user of an app.** **Boolean - A data type that only has two values, usually denoted as true or false.** **Concatenation A joining together of separate items---without changing them---into one place. For example, the concatenation of two strings such as "Hello" and "world!" would return "Hello world!"** **Arithmetic Operators - The same ones you use in math class such as + (addition), -- (subtraction), x (multiplication), and ÷ (division).** **Logical Operators - Conditional statements (True, False).** **Activity 1.1.3 Conditionals and Event Driven Programming** - **Conditional Statements - A programming statement that evaluates a true/false Boolean expression to determine the next steps in a program. Conditional statements are often written as \"if-then\" or \"if-then-else\" statements.** **Boolean Expressions A processing decision branch using relational operators (= ≠ \> \ \