Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Science Core Concepts

Similar presentations


Presentation on theme: "Computer Science Core Concepts"— Presentation transcript:

1 Computer Science Core Concepts

2 What is Computer Science?
Computer Science is the creation and adaptation of technology

3 What is programming?

4 Instructions for a computer to follow to perform a task
Programming Instructions for a computer to follow to perform a task

5 What is an algorithm?

6 Algorithms A process to follow to solve a problem; a set of instructions

7 What is A variable?

8 Variable A symbol or name that represents a value
Can declare, assign or change the value of variables

9 What is Boolean?

10 Boolean A data type that returns only true or false. It will not return numbers*, words, etc.. True=1 False=0 *the only numbers Boolean will return

11 What is A Comparator?

12 Comparators (aka Logic operators)
Compare two or more Variables The result of the comparison is a boolean value Equal to == and Not equal to != or Greater than > not Greater than or equal to >= Less than < Less than or equal to <=

13 Comparators (con’t) x = 10 y = 20
What is the boolean value of the following expressions? x == y x != y x > y x >= y x < y x <= y

14 What is An if-else statement?

15 If-Else Statements When a comparison is True, then the if- block will be executed. And, if a comparison is False, then the else- block will be executed.

16 If-Else Statements examples
y = 4 What is the boolean value of the following expressions? if (x > y and y != 5) if (x < y or x >= 5) print (“Hello!”) print (“Hola!”) else else print (“Bye!”) print (“Adios!”) if ((x-y)==4) print (“Bonjour!”) else print (“Au revoir!”)

17 What is Branching?

18 Branching A branch is a set of instructions that, when executed, cause the computer to begin execution of a different instruction sequence. Branching can use if-else or switch statements

19 What is a loop?

20 LOOPS Series of instructions that is repeated until a given condition is false

21 LOOPS (Types) for loop: executed at least once, and the number of repetitions is known while loop: repeatedly executed statement; will be executed 0-infinity times

22 What is iteration?

23 Iteration Iteration is the act of repeating a process
Each time a loop runs, that is one iteration.

24 What is a function?

25 Functions A small set of instructions that defines how to complete a specific task The “Add ten to a number” is the function

26 You learned about ... Computer Science Programming Algorithm Variable
Boolean Comparators If/Else Loops For Loop While Loop Iteration Function

27 Review!

28


Download ppt "Computer Science Core Concepts"

Similar presentations


Ads by Google