Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

CCS0043 - FA2

Module 2

QuestionAnswer
statement causes execution of the current loop iteration to end and commence at the beginning of the next iteration. Group of answer choices Continue If Break Goto Continue
$v=70; if($v<=70) { echo “hooray”; } else { Echo “hello”; } What is the output? Group of answer choices hooray invalid hello blank hooray
characteristic of an operator specifies how operations of the same precedence are evaluated as they are executed. Group of answer choices Operator precedence Operator associativity Operator Purpose Operator character Operator associativity
statement is placed within the code of a loop to cause the program to break out of the loop statement. Group of answer choices Continue Break If Goto Break
Symbol for multiplication Group of answer choices ** X * =* *
Increment symbol Group of answer choices ++ -- + - ++
Escape Sequence for horizontal tab Group of answer choices \n \r \h \t \t
How may looping statements in php? Group of answer choices 5 3 2 4 3
Symbol for identical to Group of answer choices === != == = ===
Symbol for equal to Group of answer choices = != == === ==
$x=0; for($i=1;$i<5;$i++){$x+=$i;} echo $x; What is the output if $x=2 Group of answer choices 9 10 12 15 12
Symbol for NOT Group of answer choices @ $ # ! !
if(7 __ 4) { echo “true”;} Else { echo “false”;} What is missing code to make the statements true? Group of answer choices > = < != >
$x=15; Echo --$x; What is the output? Group of answer choices 14 16 15 13 14
$x=10; Echo $x++; What is the output? Group of answer choices 12 13 11 10 10
Multiplication-assignment symbol Group of answer choices * ** *= ==* *=
Another code for condition Group of answer choices Pick Get Set Switch Switch
$x=4; $x++; Echo $x+2 What is the output? Group of answer choices 8 7 9 6 7
Associativity for assignment operators Group of answer choices Right Left NA Middle Right
Associativity for Expression subgrouping Group of answer choices Right Middle Left NA NA
Symbol for OR operator Group of answer choices $$ %% && || ||
$x=10; Echo ++$x; What is the output? Group of answer choices 11 14 13 12 11
$s=90; if($s==80 && $s<90) { echo “Rank B”; } else if($s>90){ echo “Rank A”; }else{ echo “Rank C”; } What is the output if $s=85? Group of answer choices Rank B Rank C Error Rank A Rank C
$s=90; if($s==80 && $s<90) { echo “Rank B”; } else if($s>90){ echo “Rank A”; }else{ echo “Rank C”; } What is the output if $s=70? Group of answer choices Error Rank A Rank B Rank C Rank C
$a=10; while($a>0){ echo $a--.” ”; } What is the output? Group of answer choices 1 2 3 4 5 6 7 8 9 9 8 7 6 5 4 3 2 1 10 9 8 7 6 5 4 3 2 1 1 2 3 4 5 6 7 8 9 10 10 9 8 7 6 5 4 3 2 1
You can create multiple statements inside of an condition Group of answer choices True False True
statement is used to jump to other section of the program to support labels. Group of answer choices Break Goto If Continue Goto
$u=30; do{ echo $y++; }while($u<31); What is the output? Group of answer choices 32 30 33 31 30
$m=3; switch($m){ case 1: echo “May”; break; case 2: echo “June”; break; case 3: echo “July”; break; default: echo “invalid”; break; } What is the output if $m is 1? Group of answer choices May Invalid June July May
Symbol for greater than Group of answer choices < > >= <= >
Symbol for division Group of answer choices / =/ ? \ /
$m=3; switch($m){ case 1: echo “May”; break; case 2: echo “June”; break; case 3: echo “July”; break; default: echo “invalid”; break; } What is the output if $m is one? Group of answer choices June Invalid May July Invalid
Decrement symbol Group of answer choices -- ++ - + --
$a=10; while($a>0){ echo $a--.” ”; } What is the output if $a is 5? Group of answer choices 1 2 3 4 5 1 2 3 4 4 3 2 1 5 4 3 2 1 5 4 3 2 1
$x=15; Echo --$x; What is the output? Group of answer choices 16 15 13 14 14
Syntax for do… while statement Group of answer choices do{statement}while(expr); while{statement}do(expr) do(expr)while{statement} while(do)expr{statement} do{statement}while(expr);
$x=0; for($i=1;$i<5;$i++){$i+=$i;} echo $x; What is the output? Group of answer choices 0 10 12 5 0
Symbol for subtraction Group of answer choices – -= + – -
Operator for Object instantiation Group of answer choices new @ start () new
You can only use 50 cases for the switch Group of answer choices True False False
There is always default inside of the switch Group of answer choices True False False
You can only use string inside of the case statement Group of answer choices False True False
Syntax for while statement Group of answer choices while(expr){statement} expr(while){statement} (expr)while{statement} while(statement){expr} while(expr){statement}
Symbol for AND operator Group of answer choices && %% || $$ &&
$a=100; $b=20; If($a<$b) {echo $a+$b;} Question: what is the output of the code Group of answer choices Blank 120 False True Blank
$m=3; switch($m){ case 1: echo “May”; break; case 2: echo “June”; break; case 3: echo “July”; break; default: echo “invalid”; break; } What is the output? Group of answer choices Jun Invalid July May July
Associativity for Object instantiation Group of answer choices NA Middle Right Left NA
Symbol for modulus Group of answer choices ^ % $ M %
$s=90; if($s==80 && $s<90) { echo “Rank B”; } else if($s>90){ echo “Rank A”; }else{ echo “Rank C”; } What is the output if $s=97? Group of answer choices Error Rank C Rank A Rank B Rank A
$a=10;$ b=20; If($a<$b) {echo $a+$b;} Else {echo $a-$b;} Question: what is the output of the code Group of answer choices 20 30 -10 40 30
elseif is one of the conditional statements in php Group of answer choices True False True
There will be an error if there is no break inside of the switch case Group of answer choices True False False
Division-assignment symbol Group of answer choices ==/ / /= // /=
Symbol for not equal Group of answer choices === = != == !=
Syntax for Switch Group of answer choices switch($category) swt($cat) $Cat($switch) $switch($category) switch($category)
Symbol for less than Group of answer choices < > <= >= <
break statement is placed within the code of a loop to cause the program to break out of the loop statement. Group of answer choices True False True
Associativity for ternary operator Group of answer choices Right NA Left Middle Right
if(expression) { statement… } else { statement } How many condition/s Group of answer choices 4 2 3 1 2
$if=10; If($if==$if){} What is the output? Group of answer choices Invalid True Blank False Blank
What do you call a condition inside of a condition? Group of answer choices If any If if Inside if Nested if Nested if
Symbol for less than or equal to Group of answer choices >= <= < > <=
$s=90; if($s==80 && $s<90) { echo “Rank B”; } else if($s>90){ echo “Rank A”; }else{ echo “Rank C”; } What is the output if $s=1000? Group of answer choices Error Rank A Rank C Rank B Rank A
Syntax for for statement Group of answer choices for(expr1;expr2;expr3){statement} for(expr1){statement}expr2 for{expr1,expr2}(statement) for(statement){expr} for(expr1;expr2;expr3){statement}
Symbol for greater than or equal to Group of answer choices >= <= > < >=
Operator for Expression subgrouping Group of answer choices [] () @ / ()
Assignment symbol Group of answer choices = == += === =
Concatenation-assignment symbol Group of answer choices ==. . .. .= .=
Operator for assignment operators Group of answer choices – > + = =
Operator for shift left, shift right (bitwise) Group of answer choices {} <> <<>> [] <<>>
Operator for Ternary operator Group of answer choices // ,, <> ?: ?:
Do is a looping statement Group of answer choices True False True
Ternary format Group of answer choices (5 == f):: ($a == 12) ? 5 : 1 ($a == 10)?5 (10 == $a):?1 ($a == 12) ? 5 : 1
Complete the syntax If(expression){ __________; } Group of answer choices Statement Condition Expression Value Statement
Associativity for Boolean AND, Boolean OR Group of answer choices Left NA Right Middle Left
Operator for Bitwise AND, bitwise XOR, bitwise OR Group of answer choices & ^ | &&|| ?: ,, & ^ |
Associativity for error suppression Group of answer choices % ^ # @ @
Associativity for Division, multiplication, modulus Group of answer choices NA Right Left Middle Left
Associativity for Addition, subtraction, concatenation Group of answer choices NA Right Middle Left Left
$m=3; switch($m){ case 1: echo “May”; break; case 2: echo “June”; break; case 3: echo “July”; break; default: echo “invalid”; break; } What is the output if $n is 1? Group of answer choices June July Invalid May July
$v=70; if($v<=70) { echo “hooray”; } else { Echo “hello”; } What is the output if the value of $v is 100? Group of answer choices invalid hooray blank hello hello
$s=90; if($s==80 && $s<90) { echo “Rank B”; } else if($s>90){ echo “Rank A”; }else{ Echo “Rank C”; } What is the output if $s=50? Group of answer choices Error Rank C Rank A Rank B Rank C
Syntax for if statement Group of answer choices Expression…if(statement) If(expression){statement..} (expression)if{statement…} Statement…if(expression) If(expression){statement..}
symbol that specifies a particular action in an expression. Group of answer choices Operator Purpose Associativity Precedence Operator
characteristic of operators that determines the order in which they evaluate the operands surrounding them. Group of answer choices Operator Purpose Operator associativity Operator character Operator precedence Operator precedence
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards