
Programming Flashcard

Flashcard
•
Computers
•
11th Grade
•
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.
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
BJC AP CSP Unit 3 Exam Review (In-Class)

Flashcard
•
9th - 12th Grade
16 questions
Lesson 3.5 - If Structures Practice

Flashcard
•
11th Grade
17 questions
AP CS A Unit 3 Review

Flashcard
•
11th - 12th Grade
18 questions
Java Basics MP1 Test 3

Flashcard
•
11th Grade
13 questions
Fall Semester Exam Review (Units 1, 2)

Flashcard
•
12th Grade
14 questions
Python Basics & Syntax

Flashcard
•
10th - 12th Grade
13 questions
WD 1st Semester Test

Flashcard
•
9th - 12th Grade
16 questions
Gravity

Flashcard
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade