CSC104H1 Study Guide - Fall 2018, Comprehensive Midterm Notes - Boolean Data Type, Test Cricket, Substring

257 views21 pages
12 Oct 2018
School
Course
CSC104H1
MIDTERM EXAM
STUDY GUIDE
Fall 2018
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 21 pages and 3 million more documents.

Already have an account? Log in
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 21 pages and 3 million more documents.

Already have an account? Log in
Variables
Numbers
Images
Symbols
Brackets3 "(3)"3has3a3specific3function3>3usually3combine3
23variables3as3a3whole3term3(output)
i.e.$enter$"123"$>$output$""$&$"123"$separately
If$entering$"(123)",$then$it$would$output$ "123"$as$
a$whole$term
Typically,3we3can3regard3 the3whole3thing3 in3the3
brackets3 "(3)"3as3ONE3variable
Some3 words
For3particular3 functions
The3words3we3defined3 before
*$Notice$that$ the$ capitalization$does$matter!$ Only$ lower$ cases$are$
allowed.
Functions/ >3 quote3 in3the3brackets3 "(3)"
Be3aware3 of3that3 the3lower3case3is3allowed3instead3 of3the3
capitalization.
Only3be3 single3 image3
rotatecw
scale3(followed3by3a3number3 to3show3the3 size3of3the3image)
fliphorizontal
imagewidth3 >3output3 is3the3 number,3showing3 the3number3 of3
the3 dots3 lining3in3width
imageheight3 >3output3 is3the3 number,3 showing3the3 number3 of3
the3 dots3 lining3in3height3
croptop3 >3 followed3by3an3image3 and3then3 the3number
Output3 is3an3 image
The3number3 stands3for3the3height3 cut3in3this3image3from3
the3 bottom
Can3 be3 two3or3more3 images
above3 >3 combine3several3images3into3one3by3putting3 in3
vertical3direction
beside3>3combine3 several3 images3into3one3 by3putting3 in3
horizontal3 direction
For3Calculations3
LEC31 &32
Friday,)January)5,)2018
11:49
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 21 pages and 3 million more documents.

Already have an account? Log in
For3Calculations3
Input3 the3symbol3for3the3 particular3 calculation,3followed3by3numbers3
as3the3variable3 involved3in3the3 calculation.
+3>3addition
33>3subtraction
i.e.$for$"a$b",$we$input$as$(a$b)
*3>3multiplication
/3>3division
Dividend3precedes3 the3divisor
i.e.$for$"a$/$b",$we$input$as$(/$a$b)
*3Notice3that3 we3can3input3the3numbers3 either3 directly3or3indirectly
*3Indirectly3>3number3 as3the3output3 from3another3 function,3such3 as3
we3use3the3 output3 from3the3 function3of3imageheight
*3The3numbers3 in3the3 brackets3for3the3calculation3are3 not3necessary3
to3 be3only323>3can3be3more3 than32
Others
step3>3inner3 brackets3 first
Kinda3shown3step3by3step33
define3>3can3be3used3to3simplify3a3complicated3 variable
Directly3followed3by3a3term,3either3 a3word3or3a3number
And3then3 followed3by3the3 object3we3are3 going3to3define
Can3 be3 an3image3directly
Can3 be3 part3 of3the3image3 (output3 of3a3function)
The3term3used3to3define3the3object3 is3NOT3a3variable3
UNTIL3 we3 define3 it3
We3can3combine323or3more3functions3together3 with3the3use3of3
multiple3"(3)".
i.e.$$(beside$(fliphorizontal$Image)$ Image)
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 21 pages and 3 million more documents.

Already have an account? Log in

Document Summary

Only be single image rotate cw scale (followed by a number to show the size of the image) flip horizontal image width > output is the number, showing the number of the dots lining in width image height > output is the number, showing the number of the dots lining in height crop top > followed by an image and then the number. Can be two or more images above > combine several images into one by putting in vertical direction beside > combine several images into one by putting in horizontal direction. * indirectly > number as the output from another function, such as we use the output from the function of image height. The input following the function term string append can be just the strings, just the definition terms, or the combination of them them i. e. (string append hello, hadifa period)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers