computer science final gr11b term 2

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

1/37

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.

38 Terms

1
New cards

what is photoshop

subscription based photo editing software

2
New cards

file formats that can be opened in photoshop

  • jpeg

  • tiff

  • png

  • psd

  • gif

3
New cards

file formats that cannot be opened by photoshop

  • webp

  • mp3

  • mp4

4
New cards

how to zoom in or out in photoshop?

iin - ctrl +

out - ctrl -

5
New cards

how to undo action once / many times in photoshop

once - ctrl + Z

many - ctrl + shift + z

6
New cards

basic shortcut commands in photoshop

copy - ctrl + c

paste - ctrl + v

select All image - ctrl + A

open layers window - F7

change Levels of colors - ctrl + L

7
New cards

transform image shortcut in ps

ctrl + T

8
New cards

inverse selection command shortcut in ps

ctrl + shift + I

9
New cards

crop tool in ps ?

removes part of the image surrounding the selection , resolution remains the same as original image

10
New cards

eraser tool in ps ?

removes part of an image, it will either :

  • erase pixels to be transparent

  • replace the erased pixels with the background color of your choice

11
New cards

whats the purpose of layers in ps ?

to separate elements of an image, it can be added, deleted, renamed, hidden, rearranged, etc. from the layer panel

12
New cards

pen tool in ps ?

a path creator, it allows u to create accurate and detailed selections or cutouts of any image selection, it works by placing different anchor points to trace an object accurately

13
New cards

clone stamp tool in ps ?

copies pixels from one area and applies them to another, as if ur copy and pasting

14
New cards

smudge tool in ps ?

simulates a brush smearing wet paint, it picks up color where the stroke begins and pushes it in the direction u swipe, it gently reshapes important edges into more appealing or softer lines

15
New cards

types of marquee selection tools + characteristic

  • rectangle » select rectangle form

  • elliptical » select elliptical form

16
New cards

types of lasso tools + characteristics

  • lasso tool » select shape manually

  • magnetic » select an object in case there is a color contrast between the background and the objet to be selected

  • polygonal » polygonal selection shape

17
New cards

magic wand tool ?

select a plain color with 1 click

18
New cards

image adjustment menu

split into 2 sections

  1. controls exposure to light, brightness, etc.

  2. deals with color adjustment like vibrance, saturation, hue

19
New cards

units in ps and their uses

cm » used when image will be printed

pixels » used when image will be displayed on website or ppt or digital use in general

20
New cards

different types of image color modes + their characteristics

  • CMYK » best for printing

  • RGB » best for screen display

  • black nd white / grayscale » b&w images / greyscale cannot be turned into color mode (b&w and greyscale are 2 diff modes but they have same characteristics)

  • sepia

  • duotone

21
New cards

types of brush modes

  • watercolor brush

  • pencil

  • pen

  • marker

  • smudge

  • blur

  • sharpen

22
New cards

layer styles in photoshop?

  • bevel and emboss

  • stroke

  • inner shadow

  • inner glow

  • satin

  • color overlay

  • gradient overlay

  • pattern overlay

  • outer glow

  • drop shadow

23
New cards

what is python

text based programming language

24
New cards

main parts of any coding language

  • dialogue between the user and the computer.

  • the calculation or the internal process

  • the display or print of the result

25
New cards

list of commands + their functions

print » displays the message or question between the parenthesis

  • ex. print(“whats ur name”)

  • NOTE: anything between quotes ““ is considered a string value (text value) and anything outside the quotes is either a variable or calculation

input » allows the user to type an answer

  • ex. input()

  • can also be used alone (as in without print function) by including quotes, ex. input(“type ur name”) so the function is combined with a message

26
New cards

what does this sign indicate after running the code > > >

the termination of the program (the end of the code)

27
New cards

what is syntax

the structure of statements in a computer language

28
New cards

what is the syntax that all commands in python follow ?

theyre all written in lower case letters

29
New cards

variable

a storage location in memory of the computer that can store values or information

there are 3 ways which a variable can be filled:

  • using input command ex. age = input(“type ur age”)

  • simple assignment ex. age=16

  • mathematical calculation ex. a=b+3

rules to name a variable

  • must start with a letter but can be a combination of letters and numbers

  • cannot use special characters (!@#$-%&*)

  • reserved commands (print, input, while, if, elif, else, etc.) cannot be used as variable name

  • if name is composed of two words, seperate with _ spaces not allowed

30
New cards

data types in python

string / str » any input by the value is a string (text)

int » used to change the user input from a string to integer

  • int(input(“input age”))

float » used to change the user input from string to a decimal number

  • float(input(“input grade”))

31
New cards

conditional statements

will enable the computer to make a decision based on a specific rule or condition

commands:

  • if » a conditional statement that evaluates a condition

  • elif » used when we have two or more conditions tgth, we can use it as many times as we want in the code

  • else » used when none of the conditions are valid

all commands must end with a colon : and the condition code must be indented

32
New cards

for loop

used to repeat a set of instructions (lines of code) a number of times specified by the user

parameters:

  • starting value » optional command

  • ending value » mandatory command

  • the step » how many numbers to skip each repetition, optional command

expressed as : for i in range(start, stop, step)

33
New cards

while loop

repeats the code as long as the condition is true until it is false, it requires a counter to control the number of repetitions

the counter » its essentially just a variable (so it can be named anth) that is declared before the while loop, while the loop is running, the counter must be manually increased *** if not it’ll run the loop forever

*** explanation of increasing the loop

  1. round = 1

  2. while round <=5

  3. print(“Round is”, round)

  4. round += 1

the loop will repeat and continue adding 1 until it reaches the condition, so it will display “ round : 1, 2, 3, 4.. “ until it reaches 5, then stops after 5

34
New cards

math library in python

its a set of functions to perform mathematical operations while programming, to use it u must import the library at the beginning of ur code:

ex. from math import *

35
New cards

list of math functions + uses

+-*/ » basic arithmetic

% » modulus that gives the remainder of division

// » division + rounding down to the nearest whole number

** » exponent

sqrt(x) » square root of x

floor(x) » rounding down

ceil(x) » rounding up

abs(x) » absolute value

cos(x) » cos value

max(a,b,c) » gives maximum value

min(a,b,c) » gives minimum value

36
New cards

lists in python

a list, unlike a variable, can store multiple values

ex.

L = []

L.append(“lychee”)

L.append(“apple”)

etc….

OR write it directly

L = [“lychee”, “apple”, “gooseberry”]

37
New cards

turtle library

turtle make draw :3

must start code with : from turtle import *

turtle.forward / .backward » turtle moves x steps forward or back

turtle.left / .right » turtle moves x degrees left or right

turtle.pendown / .penup » will draw or stop drawing

turtle.penwidth » changes pen thickness

turtle.color » changes color of pen

38
New cards

graphical user interface (GUI // Tkinter) library

Tkinter is the standard GUI library for python, it provides tools to create windows, buttons, menus, textboxes, and other interactive elements

must start with : from tkinter import *

variable_name = Tk() » creates the base window, T must be capitalized

v_n.title(“Welcome”) » window title

basic widgets :

  1. labels

label = Label(v_n, text=”hello”, fg=”blue”, font=(“arial”, 14))

label.pack()

  1. button

def greet()

print(“hello”)

button = Button(v_n, text=”Greet”, command=greet)

button.pack()

  1. entry (single-line input)

entry = Entry(v_n)

entry.pack()

pack() » places the widgets vertically/horizontally in the window