Computer Programming

Computer Programming

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

Loops

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (22)

Section 1

(22 cards)

Loops

Front

Use when running the same code over and over again, each time with a different value.

Back

II

Front

Or

Back

Constructor

Front

a special function that gets called automatically when the object of a class is created

Back

If

Front

Use IF for code to be executed, if a specified condition is true

Back

switch (grade) { case 'A': document.write("Good job<br />"); break; case 'B': document.write("Pretty good<br />"); break; case 'C': document.write("Passed<br />"); break; case 'D': document.write("Not so good<br />"); break; case 'F': document.write("Failed<br />"); break; default: document.write("Unknown grade<br />") } document.write("Exiting switch block"); //-->

Front

Input= A Enter switch block Good job Exit switch block

Back

!

Front

Not

Back

<

Front

Less Than

Back

Object-Oriented Programming

Front

a programming language model organized around objects rather than "actions" and data rather than logic

Back

>=

Front

Greater Than or Equal To

Back

While Loop

Front

loops through a block of code while a specified condition is true

Back

&&

Front

And

Back

Methods

Front

procedure(Action) associated with an object

Back

Switch

Front

Use the SWITCH statement when many blocks of code are being executed.

Back

!=

Front

Not Equal To

Back

<=

Front

Less Than or Equal To

Back

==

Front

Equal To

Back

For Loop

Front

loops through a block of code a number of times

Back

Else

Front

Use ELSE for code to be executed, if a specified condition is false

Back

>

Front

Greater Than

Back

while (count < 10){ document.write("Current Count : " + count + "<br />"); count++; } document.write("Loop stopped!"); //-->

Front

Starting: 0 1 2 3 4 5 6 7 8 9 Loop stopped!

Back

for(count = 0; count < 10; count++){ document.write("Current Count : " + count ); document.write("<br />"); } document.write("Loop stopped!");

Front

Starting: 0 1 2 3 4 5 6 7 8 9 Loop Stopped

Back

Importance of Objects

Front

They help code be more understandable They allow more code to be around them They make programming more easier They can be used over and over

Back