
Programming Flashcard
Flashcard
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What value would be returned for findTheMiddle(2110890125)? Options: 8, The code will error, 9, 89
Back
89
2.
FLASHCARD QUESTION
Front
Which expression is true? Options: true && !true, !false || !true, true && false, false || false || !true
Back
!false || !true
3.
FLASHCARD QUESTION
Front
What will this code output? Options: Hello Karel, Hello Karel Second if statement!, Second if statement!, This program will print nothing
Back
Second if statement!
4.
FLASHCARD QUESTION
Front
What will this program print if the value of grade is 80? A, B, C, Nothing
Back
C
5.
FLASHCARD QUESTION
Front
What are the final values of x and y after the code is executed?
int x = 100;
int y = 100;
if (x <= 100)
{ if (y > 100)
{
x = 200;
}
else
{
x = 99;
}
}
else{
x++;
}
y = x + y;
Back
x = 99, y = 199
6.
FLASHCARD QUESTION
Front
Which of the following test cases can be used to show that the code does NOT work as intended? Options: calculateRate(35);, calculateRate(40);, calculateRate(45);, calculateRate(55);
Back
calculateRate(40);
7.
FLASHCARD QUESTION
Front
Given a, b, and c are properly initialized boolean values, what values would make the following expression false? (a || b) || (b || c) || (!a || b);
Back
Nothing. The expression will always be true.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Slope: Mixed Review
Flashcard
•
KG - University
15 questions
How Can I Smell Things From a Distance - Learning Set #2 Review
Flashcard
•
KG - University
15 questions
exponent rules 12/10
Flashcard
•
11th Grade - University
15 questions
Costandi EOC Biology Exam Review
Flashcard
•
KG - University
16 questions
8th Grade STAAR Review US History
Flashcard
•
KG - University
15 questions
Linear Relationships
Flashcard
•
9th - 12th Grade
15 questions
AP Statistics Semester Exam Review - Unit 3 MC
Flashcard
•
12th Grade - University
14 questions
Hammurabi's Code
Flashcard
•
KG - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade