CSE 174 Lecture Notes - Lecture 7: Operand, Logical Disjunction, Boolean Expression

32 views2 pages

Document Summary

Cse 174 - lecture 7 - switch, variable scope, and loops. Logical and will evaluate to false as soon as it sees that its rst operand is a false expression. Logical or evaluates to true as soon as it sees that the rst operand is a true expression. && and || operators have lower precedence that relational operators like <> . equalsignorecase()- whether two strings contain the same characters, ignoring upper vs. lower case. startswith()- whether one contains other"s characters at start. endswith()- whether one contains other"s characters at end. Think about class as container starts in main method- another container for code and variables. If we create another method, it will also be a container. Variables created in main only exist in main container. Variables can only be accessed within the block in which they are declared. Need to declare them outside if needed elsewhere. Score: parts of program where variable is visible.

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
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents