Showing 0-0 of 0 results
# Exercise Title Features Description Platform Keywords
1 Counter Controlled Loops Review Quiz Question, Battery Counter controlled loops for CS1 review questions. OpenDSA Loop
2 Loop Idioms Review Questions Question, Battery CS1 review questions about loop idioms. OpenDSA Loop
3 (While loops) While Loops Ex 1 - CSEdPad Loop with simple loop variable increment: Assume you have a list of 1,000 people in alphabetical order and you are... AnnEx while loop
4 Loop Do-While 1 Java PredictingFinalResult for demonstrating Loop Do-While 1 QuizJET do-while loop, while loop
5 Loop Do-While 2 Java PredictingFinalResult for demonstrating Loop Do-While 2 QuizJET do-while loop, while loop
6 Loop Do-While 3 Java PredictingFinalResult for demonstrating Loop Do-While 3 QuizJET do-while loop, while loop
7 Loop Do-While 4 Java PredictingFinalResult for demonstrating Loop Do-While 4 QuizJET do-while loop, while loop
8 Loop For 1 Java PredictingFinalResult for demonstrating Loop For 1 QuizJET for loop, loops, nested loops, variables
9 Loop For 2 Java PredictingFinalResult for demonstrating Loop For 2 QuizJET for loop, loops, nested loops
10 Loop For 3 Java PredictingFinalResult for demonstrating Loop For 3 QuizJET for loop, loops, nested loops
11 Loop For 4 Java PredictingFinalResult for demonstrating Loop For 4 QuizJET for loop
12 Loop For 5 Java PredictingFinalResult for demonstrating Loop For 5 QuizJET for loop, loops
13 Loop While 1 Java PredictingFinalResult for demonstrating Loop While 1 QuizJET while loop
14 Loop While 2 Java PredictingFinalResult for demonstrating Loop While 2 QuizJET while loop
15 Loop While 3 Java PredictingFinalResult for demonstrating Loop While 3 QuizJET loops, while loop
16 Loop While 5 Java PredictingFinalResult for demonstrating Loop While 5 QuizJET while loop
17 Encontrar el Divisor Mas Pequeno de un Numero Positivo Construir un programa que encuentre el divisor más pequeño (distinto de 1) de un número positivo. Por ejemplo, el divisor... PCEX loops, while loop
18 Encontrar el Mayor Divisor de un Numero Positivo Construir un programa que encuentre el mayor divisor de un número positivo, excluyendo el número mismo. Por ejemplo, el mayor... PCEX loops, while loop
19 Sum using While Sum using While AnnEx loops, while loop
20 While with double While with double AnnEx loops, while loop
21 While While AnnEx loops, while loop
22 While Java CodeVisualization for demonstrating While JSVEE loops, while loop
23 While Loop Python CodeVisualization for demonstrating While Loop JSVEE loops, while loop
24 ae_python_while Python CodeVisualization for demonstrating ae_python_while JSVEE loops, while loop
25 Calcular una potencia Construye un programa que calcule la base elevada al exponente. jsParsons loops, while loop
26 Calcular una potencia Construye una funcion que calcule la potencia de un numero. La funcion recibe dos enteros como parametros (la base y... jsParsons loops, while loop
27 Iteration with Addition Construct a program that prints the value 8. jsParsons loops, while loop
28 Crear un programa con un ciclo while Construye un programa que imprima el valor 8. jsParsons loops, while loop
29 Iteration with Multiplication Construct a program that prints values 1,2,4,8 and finally prints "The end!". jsParsons loops, while loop
30 Crear un programa que compare un valor en un ciclo Construye un programa que imprima los valores 1,2,4,8 y finalmente imprima "El fin!". jsParsons loops, while loop
31 Practicar ciclos while anidados Construye un programa que imprima un triangulo rectangulo invertido. Supone que 'tamano' esta definido y contiene un valor entero. jsParsons loops, while loop
32 Age Checking2 Python CodeVisualization for demonstrating Age Checking2 JSVEE loops, while loop
33 q_py_nested_while1_es Python PredictingFinalResult for demonstrating q_py_nested_while1_es QuizPET loops, while loop
34 q_py_while_loop1_es Python PredictingFinalResult for demonstrating q_py_while_loop1_es QuizPET loops, while loop
35 while loop Python PredictingFinalResult for demonstrating while loop QuizPET loops, while loop
36 q_py_while_loop2_es Python PredictingFinalResult for demonstrating q_py_while_loop2_es QuizPET loops, while loop
37 while loop with summation Python PredictingFinalResult for demonstrating while loop with summation QuizPET loops, while loop
38 While Loop Statement Python BehaviorExample for demonstrating While Loop Statement WebEx loops, while loop
39 Nested Loops Python BehaviorExample for demonstrating Nested Loops WebEx loops, while loop
40 While Loop Statement Python BehaviorExample for demonstrating While Loop Statement WebEx loops
41 5.2. The while statement Python BehaviorExample for demonstrating 5.2. The while statement WebEx loops, while loop
42 Comparing Adjacent Numbers in a Sequence of Numbers Construct a program that checks whether a sequence of numbers, entered one at a time, contains adjacent duplicates. The user... PCEX loops, while loop
43 Calculating the Average of the Input Numbers Construct a program that reads a series of integers from the user, sums them up, and calculates their average. The... PCEX loops, while loop
44 Receiving Input Integers Until a Certain Condition is Met Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX loops, while loop
45 Calculating the Winning Percentage of a Sports Team Construct a program that receives from the user the number of games that a sports team won in a tournament... PCEX loops, while loop
46 Finding the Largest Divisor of a Positive Number Construct a program that finds the largest divisor of a positive number, excluding the number itself. For example, the largest... PCEX loops, while loop
47 Problem 1 Java PredictingFinalResult for demonstrating Problem 1 QuizJET loops, while loop
48 Construir un problema con ciclos anidados Construye un programa que primero imprima 15, luego 14, luego 12, luego 9 y finalmente 5 en lineas consecutivas. jsParsons loops
49 Printing A Right Triangle Star Pattern A Right triangle star pattern contains N asterisks in N-th row. Construct a program that receives the number of rows... PCEX loops, nested loops
50 Stutter Code Completion Your task is to write a method stutter that repeats all letters t in a string. For example, the call... CodeCheck Loops
51 EvenSum Code Completion Your task is to write a method evenSum that computes the sum of all even numbers between two given numbers.... CodeCheck Loops
52 Format Phone Number Code Completion When people enter their telephone numbers into a form they use many different formats. Some examples are: CodeCheck Loops
53 Balloon Filled Sky Code Completion Your task is to draw n balloons centered at random positions, each with a randomly colored circle and a white... CodeCheck Loops
54 Picture of Colored Boxes Code Completion Your task is to write a method that produces images from strings describing color values. CodeCheck Loops
55 Color codes for double-sized image Code Completion Consider an image that is composed of a number of colored small squares, each colored in one of these 8... CodeCheck Loops
56 GetVowels Code Completion Your task is to write a method getVowels that gets the vowels in a string. For example, the call getVowels("Hello,... CodeCheck Loops
57 Count perfect squares Code Completion Your task is to write a method countPerfectSquares that counts all perfect squares in a given range. For example, the... CodeCheck Loops
58 Count Sevens Code Completion Your task is to write a method countSevens that counts the number of digits equal to 7 in a given... CodeCheck Loops
59 Run-Length Encoding Code Completion A simple technique for compressing an image is run-length encoding. The color of each pixel or area is specified for... CodeCheck Loops
60 Printing Consecutive Numbers Starting from Zero (Case 1) Construct a program that prints a sequence of numbers from 0 (inclusive) to 10 (exclusive). PCEX for loop
61 Printing Consecutive Numbers Starting from Zero (Case 2) Construct a program that prints a sequence of numbers from 0 (inclusive) to 6 (exclusive). PCEX for loop
62 Printing Sequence of Numbers with a Gap Between Adjacent Values (Case 1) Construct a program that prints a sequence of numbers from 1 (inclusive) to 16 (exclusive) in increments of 4. PCEX for loop
63 Printing Sequence of Numbers with a Gap Between Adjacent Values (Case 2) Construct a program that prints a sequence of numbers from 7 (inclusive) to 35 (inclusive) in increments of 7. PCEX for loop
64 Printing Consecutive Numbers Within a Specified Range (Case 1) Construct a program that prints a sequence of numbers from 1 (inclusive) to 9 (inclusive). PCEX for loop
65 Printing Consecutive Numbers Within a Specified Range (Case 2) Construct a program that prints a sequence of numbers from 8 (inclusive) to 14 (inclusive). PCEX for loop
66 Printing the Squares of Numbers Within a Specified Range (Case 1) Construct a program to write out the squares of even positive integers less than or equal to 10. PCEX for loop
67 Printing the Squares of Numbers Within a Specified Range (Case 2) Construct a program to write out the squares of odd positive integers less than 10. PCEX for loop
68 Printing the Squares of Numbers Within a Specified Range (Case 3) Construct a program to write out the squares of every number between 20 and 25, both inclusive. PCEX for loop
69 Imprimir un Patron de Estrellas en Forma de Triangulo Rectangulo Invertido Un patrón de estrellas en forma de triángulo rectángulo invertido de N filas contiene N-i+1 asteriscos en la i-ésima fila.... PCEX for loop, loops
70 Contando las Ocurrencias de un String en Otro (Caso 1) Construye un programa que tenga una función que reciba un string y devuelva el número de veces que el string... PCEX for loop, loops
71 Contando las Ocurrencias de un String en Otro (Caso 2). Construye un programa que tenga una función que reciba un string y devuelva el número de veces que el string... PCEX for loop, loops
72 Finding the Smallest Divisor of a Positive Number Construct a program that finds the smallest divisor (other than 1) of a positive number. For example, the smallest divisor... PCEX while loop
73 Finding the Largest Divisor of a Positive Number Construct a program that finds the largest divisor of a positive number, excluding the number itself. For example, the largest... PCEX while loop
74 Receiving Input Integers Until a Certain Condition is Met (Case 1) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
75 Receiving Input Integers Until a Certain Condition is Met (Case 2) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
76 Receiving Input Integers Until a Certain Condition is Met (Case 3) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
77 Receiving Input Integers Until a Certain Condition is Met (Case 4) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
78 Calculating the Average of Input Integers Construct a program that reads a series of integers from the user, sums them up, and calculates their average. The... PCEX while loop
79 Calculating the Average of the Input Integers that are an Even Number Construct a program that reads a series of integer values from the user, sums up the integers that are an... PCEX while loop
80 Calculating the Average of Floating-Point Numbers Construct a program that reads a series of non-negative floating-point numbers from the user, sums them up, and calculate their... PCEX while loop
81 Finding Adjacent Duplicates in a Sequence of Numbers Construct a program that checks whether a sequence of numbers, entered one at a time, contains adjacent duplicates. The user... PCEX while loop
82 Finding Adjacent Consecutive Numbers in a Sequence of Integers Construct a program that checks whether a sequence of integers, entered one at a time, contains adjacent integers that are... PCEX while loop
83 Finding Adjacent Numbers in Ascending Order in a Sequence of Numbers Construct a program that checks whether a sequence of non-zero numbers, entered one at a time, contains adjacent numbers in... PCEX while loop
84 Printing Digits of an Integer from Right to Left Construct a program that prints the digits of an integer from right to left. PCEX while loop
85 The Digit Sum of an Integer Construct a program that calculates the sum of the digits of an integer. PCEX while loop
86 Reversing the Digits of an Integer Construct a program that reverses the digits of an integer mathematically. PCEX while loop
87 Calculating the Winning Percentage of a Sports Team (Case 1) Construct a program that receives from the user the number of games that a sports team won in a tournament... PCEX while loop
88 Calculating the Winning Percentage of a Sports Team (Case 2) Construct a program that receives from the user the number of games in a tournament and the number of the... PCEX while loop
89 Calculating the Winning Percentage of a Sports Team (Case 3) Construct a program that receives from the user the number of games that a sports team won and tied in... PCEX while loop
90 2-19_PrimeChecker Java BehaviorExample for demonstrating 2-19_PrimeChecker AnnEx for loop
91 (For loops) Sum of odd numbers - CSEdPad This program sums up the odd number from 1 to 50 AnnEx for loop
92 For Loop For Loop AnnEx for loop, loops, nested loops
93 Nested For Loop Nested For Loop AnnEx for loop, loops, nested loops
94 Print Out a Diamond Print Out a Diamond AnnEx for loop, nested loops
95 Infinite For Infinite For AnnEx for loop, nested loops
96 For with Multiple Variables 2 For with Multiple Variables 2 AnnEx for loop, nested loops
97 For with Multiple Variables For with Multiple Variables AnnEx for loop, nested loops
98 For with Multiple Variables 3 For with Multiple Variables 3 AnnEx for loop, nested loops
99 For omitting elements For omitting elements AnnEx for loop, nested loops
100 While (Memphis) Java BehaviorExample for demonstrating While (Memphis) AnnEx while loop
101 For Loop Demo Java CodeVisualization for demonstrating For Loop Demo JSVEE for loop, nested loops
102 For with Multiple Variables 2 Java CodeVisualization for demonstrating For with Multiple Variables 2 JSVEE for loop, loops, nested loops
103 While Demo Java CodeVisualization for demonstrating While Demo JSVEE while loop
104 For Loop Python CodeVisualization for demonstrating For Loop JSVEE for loop, loops, while loop
105 ae_python_for Python CodeVisualization for demonstrating ae_python_for JSVEE for loop, loops
106 Construct a program that creates unique 3 digit combination Construct a program which creates and prints all three-digit combinations from numbers 1-4 such that each number appears at most... jsParsons while loop
107 Construct a program with multiple if-elif statements Construct a program which checks whether each of the integers in interval from 1 to 100 is divisible by 2,... jsParsons for loop
108 Power calculation Construct a function which takes the base and the exponent as parameters and returns the base raised to the exponent.... jsParsons while loop
109 Practicar iterar sobre una lista y usar módulo Construye un programa que recorra una lista de numeros e imprima si son pares o impares. jsParsons for loop, list
110 Iteration Multiplication For Construct a program that prints values 1,2,4,8 and finally prints "The end!". jsParsons for loop
111 Practicar el uso de ciclos while y for anidados Construye un programa que imprima una tabla de multiplicar segun el valor de tabla_tamano. Supone que tabla_tamano es un entero... jsParsons for loop, loops
112 Nested Loops Construct a program that first prints out 15, then 14, then 12, then 9 and finally 5 on consecutive lines. jsParsons algorithm analysis, nested loops, while loop
113 Calcular una potencia Construye una funcion que tome una base y un exponente no negativo como parametros y calcule la base elevada al... jsParsons for loop, loops
114 Calculating power Construct a program that calculates the base raised to the power of the non-negative exponent without using multiplication. jsParsons for loop
115 Calcular una potencia Construye un programa que calcule la base elevada al exponente no negativo sin usar multiplicacion. jsParsons for loop, loops
116 Greatest Divisor Brute Force Python CodeVisualization for demonstrating Greatest Divisor Brute Force JSVEE for loop, functions
117 Leap Year Python CodeVisualization for demonstrating Leap Year JSVEE for loop
118 Power With Input4 Python CodeVisualization for demonstrating Power With Input4 JSVEE while loop
119 Power2 Python CodeVisualization for demonstrating Power2 JSVEE while loop
120 Printing a square star pattern Construct a program that takes an input as the size of a solid square and print the square. For example,... PCEX for loop, nested loops
121 Printing the outline of a square star pattern Challenge Construct a program that takes an input as the size of a square and print the outline of the square.\nFor... PCEX for loop
122 q_py_for_loop1_es Python PredictingFinalResult for demonstrating q_py_for_loop1_es QuizPET for loop, loops
123 for loop Python PredictingFinalResult for demonstrating for loop QuizPET for loop, loops
124 Ciclo for anidado Python PredictingFinalResult for demonstrating Ciclo for anidado QuizPET for loop, loops
125 Single Line Loop Statement Python BehaviorExample for demonstrating Single Line Loop Statement WebEx for loop
126 For Loop Statement Python BehaviorExample for demonstrating For Loop Statement WebEx for loop, loops
127 Break Statement Python BehaviorExample for demonstrating Break Statement WebEx for loop, loops
128 Continue Statement Python BehaviorExample for demonstrating Continue Statement WebEx for loop, loops
129 Pass Statement Python BehaviorExample for demonstrating Pass Statement WebEx for loop, loops
130 Countdown to Zero Python BehaviorExample for demonstrating Countdown to Zero WebEx while loop
131 Table of Squares Python BehaviorExample for demonstrating Table of Squares WebEx while loop
132 Conversion Table (Fahrenheit to Celsius) Python BehaviorExample for demonstrating Conversion Table (Fahrenheit to Celsius) WebEx while loop
133 Sum and Average Using Loops Python BehaviorExample for demonstrating Sum and Average Using Loops WebEx while loop
134 Sentinel Loop Control Python BehaviorExample for demonstrating Sentinel Loop Control WebEx while loop
135 Table of Squares (For Loop) Python BehaviorExample for demonstrating Table of Squares (For Loop) WebEx for loop
136 Functions Basics Python BehaviorExample for demonstrating Functions Basics WebEx while loop
137 Working with While Loops Review Questions Question, Battery While Loops self-assessment questions. OpenDSA While Loop
138 Conditional Statements and While Loops: Chapter Review Question, Battery Chapter review questions for conditional statements and while loops. OpenDSA While Loop, Conditional Statement
139 Nested For Loops Review Quiz Question, Battery Introduction to using nested for loops for CS1 review questions. OpenDSA For Loop
140 Printing Consecutive Numbers Starting from Zero Construct a program that prints a sequence of numbers from 0 (inclusive) to 10 (exclusive). PCEX for loop, loops
141 Printing Sequence of Numbers with a Gap Between Adjacent Values Construct a program that prints a sequence of numbers from 1 (inclusive) to 16 (exclusive) in increments of 4. PCEX for loop
142 Printing Consecutive Numbers Within a Specified Range Construct a program that prints a sequence of numbers from 1 (inclusive) to 9 (inclusive). PCEX for loop, loops
143 Printing the Squares of Numbers Within a Specified Range Construct a program to write out the squares of even positive integers less than or equal to 10. PCEX for loop
144 Receiving Input Integers Until a Certain Condition is Met Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
145 Calculating the Average of the Input Numbers Construct a program that reads a series of integers from the user, sums them up, and calculates their average. The... PCEX while loop
146 Comparing Adjacent Numbers in a Sequence of Numbers Construct a program that checks whether a sequence of numbers, entered one at a time, contains adjacent duplicates. The user... PCEX while loop
147 Calculating the Winning Percentage of a Sports Team Construct a program that receives from the user the number of games that a sports team won in a tournament... PCEX while loop
148 Printing Consecutive Numbers Starting from Zero Construct a program that prints a sequence of numbers from 0 (inclusive) to 10 (exclusive). PCEX for loop, loops
149 Printing Sequence of Numbers with a Gap Between Adjacent Values Construct a program that prints a sequence of numbers from 1 (inclusive) to 16 (exclusive) in increments of 4. PCEX for loop, loops
150 Printing A Sequence of Repeated Numbers Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX for loop, nested loops
151 Printing the Squares of Numbers Within a Specified Range Construct a program to write out the squares of even positive integers less than or equal to 10. PCEX for loop, loops
152 Counting the Occurrences of One String in Another Construct a program that has a function that receives a string and returns the number of times that the string... PCEX for loop, functions, strings
153 Printing Consecutive Numbers Starting from Zero (Case 2) Construct a program that prints a sequence of numbers from 0 (inclusive) to 6 (exclusive). PCEX for loop, nested loops
154 Printing Sequence of Numbers with a Gap Between Adjacent Values (Case 2) Construct a program that prints a sequence of numbers from 7 (inclusive) to 35 (inclusive) in increments of 7. PCEX for loop
155 Printing Consecutive Numbers Within a Specified Range (Case 2) Construct a program that prints a sequence of numbers from 8 (inclusive) to 14 (inclusive). PCEX for loop
156 Printing the Squares of Numbers Within a Specified Range (Case 2) Construct a program to write out the squares of odd positive integers less than 10. PCEX for loop
157 Printing the Squares of Numbers Within a Specified Range (Case 3) Construct a program to write out the squares of every number between 20 and 25, both inclusive. PCEX for loop
158 Printing A Sequence of Repeated Numbers (Case 2) Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX for loop, nested loops
159 Receiving Input Integers Until a Certain Condition is Met (Case 2) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
160 Receiving Input Integers Until a Certain Condition is Met (Case 3) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
161 Receiving Input Integers Until a Certain Condition is Met (Case 4) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
162 Calculating the Average of Floating-Point Numbers Construct a program that reads a series of non-negative floating-point numbers from the user, sums them up, and calculate their... PCEX while loop
163 Calculating the Average of the Input Integers that are an Even Number Construct a program that reads a series of integer values from the user, sums up the integers that are an... PCEX while loop
164 Finding Adjacent Consecutive Numbers in a Sequence of Integers Construct a program that checks whether a sequence of integers, entered one at a time, contains adjacent integers that are... PCEX while loop
165 Finding Adjacent Numbers in Ascending Order in a Sequence of Numbers Construct a program that checks whether a sequence of non-zero numbers, entered one at a time, contains adjacent numbers in... PCEX while loop
166 Calculating the Winning Percentage of a Sports Team (Case 2) Construct a program that receives from the user the number of games in a tournament and the number of the... PCEX while loop
167 Calculating the Winning Percentage of a Sports Team (Case 3) Construct a program that receives from the user the number of games that a sports team won and tied in... PCEX while loop
168 Comparing Adjacent Numbers in a Sequence of Numbers (Case 2) Construct a program that checks whether a sequence of integers, entered one at a time, contains adjacent integers that are... PCEX while loop
169 Comparing Adjacent Numbers in a Sequence of Numbers (Case 3) Construct a program that checks whether a sequence of non-zero numbers, entered one at a time, contains adjacent numbers in... PCEX while loop
170 Processing the Digits of an Integer (Case 3) Construct a program that reverses the digits of an integer mathematically. PCEX while loop
171 Processing the Digits of an Integer (Case 2) Construct a program that calculates the sum of the digits of an integer. PCEX while loop
172 Finding Smallest/Largest Divisor of a Positive Number Construct a program that finds the largest divisor of a positive number, excluding the number itself. For example, the largest... PCEX while loop
173 Calculating the Average of the Input Numbers (Case2) Construct a program that reads a series of integer values from the user, sums up the integers that are an... PCEX while loop
174 Calculating the Average of the Input Numbers (Case 3) Construct a program that reads a series of non-negative floating-point numbers from the user, sums them up, and calculate their... PCEX while loop
175 Receiving Input Integers Until a Certain Condition is Met (Case 2) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
176 Receiving Input Integers Until a Certain Condition is Met (Case 3) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
177 Receiving Input Integers Until a Certain Condition is Met (Case 4) Construct a program that receives an integer from the user, outputs that integer, and stops receiving integers when the user... PCEX while loop
178 Printing Consecutive Numbers Starting from Zero Construct a program that prints a sequence of numbers from 0 (inclusive) to 6 (exclusive). PCEX for loop
179 Printing Sequence of Numbers with a Gap Between Adjacent Values Construct a program that prints a sequence of numbers from 7 (inclusive) to 35 (inclusive) in increments of 7. PCEX for loop
180 Printing Consecutive Numbers Within a Specified Range Construct a program that prints a sequence of numbers from 8 (inclusive) to 14 (inclusive). PCEX for loop
181 Printing A Sequence of Repeated Numbers Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX for loop, nested loops
182 Printing the Squares of Numbers Within a Specified Range (Case 2) Construct a program to write out the squares of odd positive integers less than 10. PCEX for loop
183 Printing the Squares of Numbers Within a Specified Range (Case 3) Construct a program to write out the squares of every number between 20 and 25, both inclusive. PCEX for loop
184 Printing A Right Triangle Star Pattern An inverted right triangle star pattern of N rows contains N-i+1 asterisks in the i-th row. Construct a program that... PCEX for loop, nested loops
185 Calculating the Winning Percentage of a Sports Team (Case 2) Construct a program that receives from the user the number of games in a tournament and the number of the... PCEX while loop
186 Calculating the Winning Percentage of a Sports Team (Case 3) Construct a program that receives from the user the number of games that a sports team won and tied in... PCEX while loop
187 Question 4 Java PredictingFinalResult for demonstrating Question 4 QuizJET while loop
188 Question 6 Java PredictingFinalResult for demonstrating Question 6 QuizJET for loop
189 Printing A Sequence of Repeated Numbers (Case 1) Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX nested loops
190 Printing A Sequence of Repeated Numbers (Case 2) Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX nested loops
191 Printing A Right Triangle Star Pattern A Right triangle star pattern contains N asterisks in N-th row. Construct a program that receives the number of rows... PCEX nested loops
192 Printing an Inverted Right Triangle Star Pattern An inverted right triangle star pattern of N rows contains N-i+1 asterisks in the i-th row. Construct a program that... PCEX nested loops
193 (Nested Loops) Grid of stars - CSEdPad Print a grid of stars. AnnEx nested loops
194 Nested Loops Nested Loops AnnEx nested loops
195 Nested Loops2 Nested Loops2 AnnEx nested loops
196 Nested For Demo Java CodeVisualization for demonstrating Nested For Demo JSVEE nested loops
197 Nested Loops Java CodeVisualization for demonstrating Nested Loops JSVEE nested loops
198 Nested Loops For 1 Construct a program that first prints out 15, then 14, then 12, then 9 and finally 5 on consecutive lines. jsParsons nested loops
199 Nested Loops For 2 Construct a program to print a multiplication chart given the chart_size. Assume that chart_size is set to a positive integer. jsParsons nested loops
200 Printing A Sequence of Repeated Numbers Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX nested loops
201 Printing an Inverted Right Triangle Star Pattern An inverted right triangle star pattern of N rows contains N-i+1 asterisks in the i-th row. Construct a program that... PCEX nested loops
202 Nested Loops 1 Java PredictingFinalResult for demonstrating Nested Loops 1 QuizJET nested loops
203 Problem 4 Java PredictingFinalResult for demonstrating Problem 4 QuizJET nested loops
204 Nested Loops 3 Java PredictingFinalResult for demonstrating Nested Loops 3 QuizJET nested loops
205 2-19_CompoundInterest Java BehaviorExample for demonstrating 2-19_CompoundInterest AnnEx do-while loop
206 (Do while) Find high & low scores - CSEdPad Given an collection of test scores with values between 0 and 100, find and display the low and high scores... AnnEx do-while loop
207 DoWhile DoWhile AnnEx do-while loop
208 DoWhile Demo Java CodeVisualization for demonstrating DoWhile Demo JSVEE do-while loop, loops, while loop
209 DoWhile Java CodeVisualization for demonstrating DoWhile JSVEE do-while loop, loops, while loop
210 Enhanced For Loop Demo Java CodeVisualization for demonstrating Enhanced For Loop Demo JSVEE 2d arrays, arraylist, arrays, for loop
211 Practicing nested while loops Construct a program to print an upside-down right triangle. Assume that 'size' is defined, and holds an integer value. jsParsons algorithm analysis, nested loops, while loop
212 Nested for loop Python PredictingFinalResult for demonstrating Nested for loop QuizPET algorithm analysis, for loop, nested loops
213 Nested For and While Loop Python PredictingFinalResult for demonstrating Nested For and While Loop QuizPET algorithm analysis, for loop, nested loops
214 For-each Loop Statement Module Review Quiz Question, Battery For-each statement module review questions for CS1. OpenDSA For-Each Loop
215 For-each Loop Statement Review Quiz Question, Battery For-each statement for CS1 self-assessment questions. OpenDSA For-Each Loop
216 Processing the Digits of an Integer Construct a program that prints the digits of an integer from right to left. PCEX do-while loop, while loop
217 Reversing the Digits of an Integer Construct a program that reverses the digits of an integer mathematically. PCEX do-while loop, while loop
218 The Digit Sum of an Integer Construct a program that calculates the sum of the digits of an integer. PCEX do-while loop, while loop
219 Problem 2 Java PredictingFinalResult for demonstrating Problem 2 QuizJET do-while loop, while loop
220 Problem 3 Java PredictingFinalResult for demonstrating Problem 3 QuizJET do-while loop, while loop
221 Enhanced For Loop Java PredictingFinalResult for demonstrating Enhanced For Loop QuizJET 2d arrays, arrays, loops
222 Question 5 Java PredictingFinalResult for demonstrating Question 5 QuizJET do-while loop
223 Practicing using nested while and for loops Construct a program to print a multiplication chart given the chart_size. Assume that chart_size is set to a positive integer. jsParsons algorithm analysis, for loop, nested loops
224 Introduction to Lists Module Review Quiz Question, Battery Introduction to lists and nested for loops for CS1 review questions. OpenDSA List, For Loop
225 Calculando el Porcentaje de Victorias de un Equipo (Caso 1) Construir un programa que reciba del usuario el número de partidos que un equipo ganó en un torneo de 12... PCEX conditionals, loops, while loop
226 Calculando el Porcentaje de Victorias de un Equipo (Caso 2) Construya un programa que reciba del usuario el número de partidos en un torneo y el número de partidos que... PCEX conditionals, loops, while loop
227 Calculando el Porcentaje de Victorias de un Equipo (Caso 3) Construye un programa que reciba del usuario el número de partidos que un equipo ganó y empató en un torneo... PCEX conditionals, loops, while loop
228 Construir un programa con múltiples sentencias if-elif Construye un programa que verifique si cada uno de los enteros del intervalo del 1 al 100 es divisible por... jsParsons conditionals, for loop
229 Construir un programa con múltiples sentencias if-elif Construye un programa que verifique si cada uno de los enteros del intervalo del 1 al 100 es divisible por... jsParsons conditionals, for loop
230 Odd or Even Construct a program that goes through a list of numbers and prints out whether they are odd or even. jsParsons algorithm analysis, for loop, loops
231 nested while Python PredictingFinalResult for demonstrating nested while QuizPET algorithm analysis, loops, nested loops, while loop
232 Functions Example 2 Python BehaviorExample for demonstrating Functions Example 2 WebEx functions, while loop
233 Iterating with Arrays Review Questions Question, Battery CS1-level iterating over arrays review questions. OpenDSA Array, For-Each Loop
234 Arrays Module Review Questions Question, Battery CS1-level introduction to arrays module review questions. OpenDSA Array, For-Each Loop
235 Finding Smallest/Largest Divisor of a Positive Number Construct a program that finds the smallest divisor (other than 1) of a positive number. For example, the smallest divisor... PCEX conditionals, while loop
236 Processing the Digits of an Integer Construct a program that prints the digits of an integer from right to left. PCEX algorithm analysis, loops, while loop
237 Finding Smallest/Largest Divisor of a Positive Number Construct a program that finds the smallest divisor (other than 1) of a positive number. For example, the smallest divisor... PCEX algorithm analysis, loops, while loop
238 Printing Table of Medal Counts with Row/Column Total Assume that we have a 7x4 matrix that stores the number of medals that seven countries won in the skating... PCEX 2d list, for loop, list
239 Printing Consecutive Numbers Within a Specified Range Construct a program that prints a sequence of numbers from 1 (inclusive) to 9 (inclusive). PCEX algorithm analysis, for loop, loops
240 Printing A Right Triangle Star Pattern A Right triangle star pattern contains N asterisks in N-th row. Construct a program that receives the number of rows... PCEX algorithm analysis, for loop, nested loops
241 Printing Table of Medal Counts with Row/Column Total Assume that we have a 7x4 matrix that stores the number of medals that seven countries won in the skating... PCEX 2d list, for loop
242 Partition2 Python CodeVisualization for demonstrating Partition2 JSVEE list, nested loops
243 Given a two-dimensional array of integers, return the average of the four corner elements. Code Completion Given a two-dimensional array of integers, return the average of the four corner elements. CodeCheck Two-Dimensional Arrays, No Loops
244 Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or the average of the two or four middle elements of one or both is even. Code Completion Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or... CodeCheck Two-Dimensional Arrays, No Loops
245 Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border in the given compass direction, or the average of the two middle ones if the border length is even. Code Completion Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border... CodeCheck Two-Dimensional Arrays, No Loops
246 Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements in the given compass direction. Code Completion Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements... CodeCheck Two-Dimensional Arrays, No Loops
247 Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor in that direction, or 0 if it doesn't exist. Code Completion Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor... CodeCheck Two-Dimensional Arrays, No Loops
248 Repeat with NW NE SW SE. Code Completion Repeat with NW NE SW SE. CodeCheck Two-Dimensional Arrays, No Loops
249 Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element itself). Code Completion Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element... CodeCheck Two-Dimensional Arrays, No Loops
250 On a chessboard, positions are marked with a letter between a and h for the column and a number between 1 and 8 for the row. Code Completion On a chessboard, positions are marked with a letter between a and h for the column and a number between... CodeCheck Two-Dimensional Arrays, No Loops
251 Given a list of integers of length ≥ 4, return the average of the first two and last two elements. Code Completion Given a list of integers of length ≥ 4, return the average of the first two and last two elements. CodeCheck Lists - Simple Exercises, No loops
252 Given a list of integers of length ≥ 3, return the average of the first, last, and middle element (or the two middle elements if the length is even). Code Completion Given a list of integers of length ≥ 3, return the average of the first, last, and middle element (or... CodeCheck Lists - Simple Exercises, No loops
253 Given a list of integers, swap the first and last elements. Code Completion Given a list of integers, swap the first and last elements. CodeCheck Lists - Simple Exercises, No loops
254 Given a list of integers, swap the first two and the last two elements. Code Completion Given a list of integers, swap the first two and the last two elements. CodeCheck Lists - Simple Exercises, No loops
255 Given a two-dimensional array of integers, return the number of distinct elements. Code Completion Given a two-dimensional array of integers, return the number of distinct elements. CodeCheck Two-Dimensional Arrays, Complex Loops
256 Given a two-dimensional array of integers, remove any adjacent duplicate rows by filling the duplicates with zeroes. Code Completion Given a two-dimensional array of integers, remove any adjacent duplicate rows by filling the duplicates with zeroes. CodeCheck Two-Dimensional Arrays, Complex Loops
257 Given a two-dimensional array of integers, return the index of the first row that is entirely filled with zeroes. Code Completion Given a two-dimensional array of integers, return the index of the first row that is entirely filled with zeroes. CodeCheck Two-Dimensional Arrays, Complex Loops
258 Given a two-dimensional array of integers, return the top left corner of the first subarray of the form <pre>0 0 0 0</pre> Code Completion Given a two-dimensional array of integers, return the top left corner of the first subarray of the form
0 0...
                    
                
CodeCheck Two-Dimensional Arrays, Complex Loops
259 Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as a list of length 2. Code Completion Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as a list... CodeCheck Two-Dimensional Arrays, Complex Loops
260 Repeat the previous exercise with subarrays that are not necessarily square. Code Completion Repeat the previous exercise with subarrays that are not necessarily square. CodeCheck Two-Dimensional Arrays, Complex Loops
261 Given two lists a and b, remove all elements of b from a. Code Completion Given two lists a and b, remove all elements of b from a. CodeCheck Lists - Simple Exercises, Double Loops
262 Given two lists a and b, return a list that contains all elements occurring in a but not in b. Code Completion Given two lists a and b, return a list that contains all elements occurring in a but not in b. CodeCheck Lists - Simple Exercises, Double Loops
263 Given a list a, return the longest n so that the first n elements equal the last n elements. Code Completion Given a list a, return the longest n so that the first n elements equal the last n elements. CodeCheck Lists - Simple Exercises, Double Loops
264 Given a list of integers, return the largest sum of consecutive elements. Code Completion Given a list of integers, return the largest sum of consecutive elements. CodeCheck Lists - Simple Exercises, Double Loops
265 Given a list of integers, return the largest sequence whose reverse also occurs somewhere in the list. Code Completion Given a list of integers, return the largest sequence whose reverse also occurs somewhere in the list. CodeCheck Lists - Simple Exercises, Double Loops
266 Given a list a of integers, return a list of all elements of a that occur exactly once. Code Completion Given a list a of integers, return a list of all elements of a that occur exactly once. CodeCheck Lists - Simple Exercises, Double Loops
267 Given a list of integers, return a list of lists of length 2, containing each unique element together with its frequency. Code Completion Given a list of integers, return a list of lists of length 2, containing each unique element together with its... CodeCheck Lists - Simple Exercises, Double Loops
268 Given a list of integers, return the position of the longest subsequence of consecutive integers a, a + 1, a + 2, . Code Completion Given a list of integers, return the position of the longest subsequence of consecutive integers a, a + 1, a... CodeCheck Lists - Simple Exercises, Double Loops
269 Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N E S W. Code Completion Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
270 Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N E S W NE NW SE SW. Code Completion Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
271 Given a two-dimensional array of integers and row/column positions r, c, return the compass direction of the largest neighbor as a string N E S W NE NW SE SW. Code Completion Given a two-dimensional array of integers and row/column positions r, c, return the compass direction of the largest neighbor as... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
272 Given a two-dimensional array of integers, row/column positions r, c, and a value x, fill the given element and its neighbors in the compass directions N E S W NE NW SE SW with x. Code Completion Given a two-dimensional array of integers, row/column positions r, c, and a value x, fill the given element and its... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
273 Given a two-dimensional array a of integers and row/column positions r, c, return a 3x3 array whose middle element is a[r][c], and whose neighbors are copied from the original. Code Completion Given a two-dimensional array a of integers and row/column positions r, c, return a 3x3 array whose middle element is... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
274 Given a two-dimensional array of integers, compute the sum of all positive elements. Code Completion Given a two-dimensional array of integers, compute the sum of all positive elements. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
275 Given a two-dimensional array of integers, return the largest element in the array. Code Completion Given a two-dimensional array of integers, return the largest element in the array. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
276 Given a two-dimensional array of integers, return the position of the smallest element in the array as a list of length 2. Code Completion Given a two-dimensional array of integers, return the position of the smallest element in the array as a list of... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
277 Given a two-dimensional array of integers and a value x, return the position of the first match as a list of length 2. Code Completion Given a two-dimensional array of integers and a value x, return the position of the first match as a list... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
278 Given a two-dimensional array of integers and a value x, return the positions of all matching elements, as a list of arrays of length 2. Code Completion Given a two-dimensional array of integers and a value x, return the positions of all matching elements, as a list... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
279 Given a two-dimensional array of integers, compute the sum of all elements that are not one of the borders. Code Completion Given a two-dimensional array of integers, compute the sum of all elements that are not one of the borders. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
280 Given a two-dimensional square array of integers, compute the sum of all elements that are not on one of the diagonals. Code Completion Given a two-dimensional square array of integers, compute the sum of all elements that are not on one of the... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
281 Given a two-dimensional array of integers, replace all negative elements with zero. Code Completion Given a two-dimensional array of integers, replace all negative elements with zero. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
282 Given a two-dimensional array of integers, reverse all rows. Code Completion Given a two-dimensional array of integers, reverse all rows. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
283 Given a two-dimensional array of integers, shift each row by one to the right and put a 0 at the leftmost column. Code Completion Given a two-dimensional array of integers, shift each row by one to the right and put a 0 at the... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
284 Given an r x c array of integers, return an (r + 2) x (c + 2) array whose borders are zero and whose interior is the original array. Code Completion Given an r x c array of integers, return an (r + 2) x (c + 2) array whose borders... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
285 Given a two-dimensional array of integers, return a list of the largest element in each row. Code Completion Given a two-dimensional array of integers, return a list of the largest element in each row. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
286 Given a two-dimensional array of integers, return a list of the number of negative elements in each row. Code Completion Given a two-dimensional array of integers, return a list of the number of negative elements in each row. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
287 Given a two-dimensional array of integers and a row index, return the largest element in that row. Code Completion Given a two-dimensional array of integers and a row index, return the largest element in that row. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
288 Given a two-dimensional array of integers and a row index r, reverse the given row. Code Completion Given a two-dimensional array of integers and a row index r, reverse the given row. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
289 Given a two-dimensional square array of integers, reverse both diagonals. Code Completion Given a two-dimensional square array of integers, reverse both diagonals. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
290 Given a two-dimensional array of integers and a column index, return the smallest element in that column. Code Completion Given a two-dimensional array of integers and a column index, return the smallest element in that column. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
291 Given a two-dimensional array of integers, an index, and a string R or C, return the sum of the elements in that row or column. Code Completion Given a two-dimensional array of integers, an index, and a string R or C, return the sum of the elements... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
292 Given a two-dimensional array of integers, a row index r, and a column index c, return the sum of all elements in the given row and column. Code Completion Given a two-dimensional array of integers, a row index r, and a column index c, return the sum of all... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
293 Given a two-dimensional array of integers and a string N, E, S, W, return the sum of all elements of the border in the given compass direction. Code Completion Given a two-dimensional array of integers and a string N, E, S, W, return the sum of all elements of... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
294 Given a two-dimensional array of integers, return the sum of all elements along the north and south border. Code Completion Given a two-dimensional array of integers, return the sum of all elements along the north and south border. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
295 Given a two-dimensional array of integers, return the sum of all elements along all borders but not the corners. Code Completion Given a two-dimensional array of integers, return the sum of all elements along all borders but not the corners. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
296 Given a two-dimensional array of integers, return the sum of all elements along all borders including the corners. Code Completion Given a two-dimensional array of integers, return the sum of all elements along all borders including the corners. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
297 Given a two-dimensional square array of integers, return the sum of the elements along both diagonals. Code Completion Given a two-dimensional square array of integers, return the sum of the elements along both diagonals. Make sure not to... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
298 Given a string, return the string with the first and last characters swapped. Code Completion Given a string, return the string with the first and last characters swapped. CodeCheck Strings, No Loops
299 Given a string, return the string with the middle two characters removed if it has even length, and the middle character removed if it has odd length. Code Completion Given a string, return the string with the middle two characters removed if it has even length, and the middle... CodeCheck Strings, No Loops
300 Given a string, return the string with the middle two characters swapped if it has even length, and the middle three characters swapped if it has odd length. Code Completion Given a string, return the string with the middle two characters swapped if it has even length, and the middle... CodeCheck Strings, No Loops
301 Given a string, return the string with the first and second half swapped. Code Completion Given a string, return the string with the first and second half swapped. If the string has odd length, leave... CodeCheck Strings, No Loops
302 Given a string, return the string with the first half and the second half doubled. Code Completion Given a string, return the string with the first half and the second half doubled. For example, Java becomes JaJavava... CodeCheck Strings, No Loops
303 Given a two-dimensional array of integers and a value x, return the position of the first match as an array of length 2. Code Completion Given a two-dimensional array of integers and a value x, return the position of the first match as an array... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
304 Given a two-dimensional array of integers, return an array of the number of negative elements in each column. Code Completion Given a two-dimensional array of integers, return an array of the number of negative elements in each column. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
305 Given a two-dimensional array of integers, compute the sum of all positive elements. Code Completion Given a two-dimensional array of integers, compute the sum of all positive elements. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
306 Given a two-dimensional array of integers, return the position of the smallest element in the array as an array of length 2. Code Completion Given a two-dimensional array of integers, return the position of the smallest element in the array as an array of... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
307 Given a two-dimensional square array of integers, compute the sum of all elements that are not on one of the diagonals. Code Completion Given a two-dimensional square array of integers, compute the sum of all elements that are not on one of the... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
308 Given a two-dimensional array of integers, replace all negative elements with zero. Code Completion Given a two-dimensional array of integers, replace all negative elements with zero. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
309 Given a two-dimensional array of integers, reverse all rows. Code Completion Given a two-dimensional array of integers, reverse all rows. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
310 Given a two-dimensional array of integers and a value x, return the positions of all matching elements, as an array of arrays of length 2. Code Completion Given a two-dimensional array of integers and a value x, return the positions of all matching elements, as an array... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
311 Given a two-dimensional array of integers, shift each row by one to the right and put a 0 at the leftmost column. Code Completion Given a two-dimensional array of integers, shift each row by one to the right and put a 0 at the... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
312 Given a two-dimensional array of integers, compute the sum of all elements that are not one of the borders. Code Completion Given a two-dimensional array of integers, compute the sum of all elements that are not one of the borders. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
313 Given a two-dimensional array of integers, return the largest element in the array. Code Completion Given a two-dimensional array of integers, return the largest element in the array. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
314 Given a two-dimensional array of integers, return an array of the largest element in each row. Code Completion Given a two-dimensional array of integers, return an array of the largest element in each row. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
315 Given an r x c array of integers, return an (r + 2) x (c + 2) array whose borders are zero and whose interior is the original array. Code Completion Given an r x c array of integers, return an (r + 2) x (c + 2) array whose borders... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
316 Given a two-dimensional array of integers, return the number of distinct elements. Code Completion Given a two-dimensional array of integers, return the number of distinct elements. CodeCheck Two-Dimensional Arrays, Complex Loops
317 Given a two-dimensional array of integers, return the index of the first row that is entirely filled with zeroes. Code Completion Given a two-dimensional array of integers, return the index of the first row that is entirely filled with zeroes. CodeCheck Two-Dimensional Arrays, Complex Loops
318 Given a two-dimensional array of integers, return the index of the first row that is entirely filled with zeroes. Code Completion Given a two-dimensional array of integers, return the index of the first row that is entirely filled with zeroes. < CodeCheck Two-Dimensional Arrays, Complex Loops
319 Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as an array of length 2. Code Completion Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as an array... CodeCheck Two-Dimensional Arrays, Complex Loops
320 Repeat the previous exercise with subarrays that are not necessarily square. Code Completion Repeat the previous exercise with subarrays that are not necessarily square. CodeCheck Two-Dimensional Arrays, Complex Loops
321 Given a two-dimensional array of integers, remove any adjacent duplicate rows by filling the duplicates with zeroes. Code Completion Given a two-dimensional array of integers, remove any adjacent duplicate rows by filling the duplicates with zeroes. CodeCheck Two-Dimensional Arrays, Complex Loops
322 Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N E S W. Code Completion Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
323 Given a two-dimensional array of integers and row/column positions r, c, return the compass direction of the largest neighbor as a string N E S W NE NW SE SW. Code Completion Given a two-dimensional array of integers and row/column positions r, c, return the compass direction of the largest neighbor as... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
324 Given a two-dimensional array of integers, row/column positions r, c, and a value x, fill the given element and its neighbors in the compass directions N E S W NE NW SE SW with x. Code Completion Given a two-dimensional array of integers, row/column positions r, c, and a value x, fill the given element and its... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
325 Given a two-dimensional array a of integers and row/column positions r, c, return a 3x3 array whose middle element is a[r][c], and whose neighbors are copied from the original. Code Completion Given a two-dimensional array a of integers and row/column positions r, c, return a 3x3 array whose middle element is... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
326 Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N E S W NE NW SE SW. Code Completion Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
327 Given a string, return the string with the first and last characters swapped. Code Completion Given a string, return the string with the first and last characters swapped. CodeCheck Strings, No Loops
328 Given a string, return the string with the middle two characters swapped if it has even length, and the middle three characters swapped if it has odd length. Code Completion Given a string, return the string with the middle two characters swapped if it has even length, and the middle... CodeCheck Strings, No Loops
329 Given a string, return the string with the first and second half swapped. Code Completion Given a string, return the string with the first and second half swapped. If the string has odd length, leave... CodeCheck Strings, No Loops
330 Given a string, return the string with the first half and the second half doubled. Code Completion Given a string, return the string with the first half and the second half doubled. For example, Java becomes JaJavava... CodeCheck Strings, No Loops
331 Given a string, return the string with the middle two characters removed if it has even length, and the middle character removed if it has odd length. Code Completion Given a string, return the string with the middle two characters removed if it has even length, and the middle... CodeCheck Strings, No Loops
332 Given an array of integers of length ≥ 4, return the average of the first two and last two elements. Code Completion Given an array of integers of length ≥ 4, return the average of the first two and last two elements. CodeCheck Arrays - Simple Exercises, No loops
333 Given an array of integers, swap the first and last elements. Code Completion Given an array of integers, swap the first and last elements. CodeCheck Arrays - Simple Exercises, No loops
334 Given an array of integers, swap the first two and the last two elements. Code Completion Given an array of integers, swap the first two and the last two elements. CodeCheck Arrays - Simple Exercises, No loops
335 Given an array of integers of length ≥ 3, return the average of the first, last, and middle element (or the two middle elements if the length is even). Code Completion Given an array of integers of length ≥ 3, return the average of the first, last, and middle element (or... CodeCheck Arrays - Simple Exercises, No loops
336 Given a two-dimensional square array of integers, return the sum of the elements along both diagonals. Code Completion Given a two-dimensional square array of integers, return the sum of the elements along both diagonals. Make sure not to... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
337 Given a two-dimensional array of integers and a row index, return the largest element in that row. Code Completion Given a two-dimensional array of integers and a row index, return the largest element in that row. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
338 Given a two-dimensional square array of integers, reverse both diagonals. Code Completion Given a two-dimensional square array of integers, reverse both diagonals. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
339 Given a two-dimensional array of integers, an index, and a string R or C, return the sum of the elements in that row or column. Code Completion Given a two-dimensional array of integers, an index, and a string R or C, return the sum of the elements... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
340 Given a two-dimensional array of integers, a row index r, and a column index c, return the sum of all elements in the given row and column. Code Completion Given a two-dimensional array of integers, a row index r, and a column index c, return the sum of all... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
341 Given a two-dimensional array of integers and a string N, E, S, W, return the sum of all elements of the border in the given compass direction. Code Completion Given a two-dimensional array of integers and a string N, E, S, W, return the sum of all elements of... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
342 Given a two-dimensional array of integers, return the sum of all elements along the north and south border. Code Completion Given a two-dimensional array of integers, return the sum of all elements along the north and south border. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
343 Given a two-dimensional array of integers and a column index, return the smallest element in that column. Code Completion Given a two-dimensional array of integers and a column index, return the smallest element in that column. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
344 Given a two-dimensional array of integers and a row index r, reverse the given row. Code Completion Given a two-dimensional array of integers and a row index r, reverse the given row. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
345 Given a two-dimensional array of integers, return the sum of all elements along all borders including the corners. Code Completion Given a two-dimensional array of integers, return the sum of all elements along all borders including the corners. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
346 Given a two-dimensional array of integers, return the sum of all elements along all borders but not the corners. Code Completion Given a two-dimensional array of integers, return the sum of all elements along all borders but not the corners. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
347 Given two arrays a and b, remove all elements of b from a. Code Completion Given two arrays a and b, remove all elements of b from a. CodeCheck Arrays - Simple Exercises, Double Loops
348 Given an array a, return the longest n so that the first n elements equal the last n elements. Code Completion Given an array a, return the longest n so that the first n elements equal the last n elements. CodeCheck Arrays - Simple Exercises, Double Loops
349 Given an array of integers, return the largest sum of consecutive elements. Code Completion Given an array of integers, return the largest sum of consecutive elements. CodeCheck Arrays - Simple Exercises, Double Loops
350 Given an array of integers, return the largest sequence whose reverse also occurs somewhere in the array. Code Completion Given an array of integers, return the largest sequence whose reverse also occurs somewhere in the array. CodeCheck Arrays - Simple Exercises, Double Loops
351 Given an array a of integers, return an array of all elements of a that occur exactly once. Code Completion Given an array a of integers, return an array of all elements of a that occur exactly once. CodeCheck Arrays - Simple Exercises, Double Loops
352 Given two arrays a and b, return an array that contains all elements occurring in a but not in b. Code Completion Given two arrays a and b, return an array that contains all elements occurring in a but not in b. CodeCheck Arrays - Simple Exercises, Double Loops
353 Given an array of integers, return the position of the longest subsequence of consecutive integers a, a + 1, a + 2, . Code Completion Given an array of integers, return the position of the longest subsequence of consecutive integers a, a + 1, a... CodeCheck Arrays - Simple Exercises, Double Loops
354 Given an array of integers, return an array of arrays of length 2, containing each unique element together with its frequency. Code Completion Given an array of integers, return an array of arrays of length 2, containing each unique element together with its... CodeCheck Arrays - Simple Exercises, Double Loops
355 Given a two-dimensional array of integers, return the average of the four corner elements. Code Completion Given a two-dimensional array of integers, return the average of the four corner elements. CodeCheck Two-Dimensional Arrays, No Loops
356 Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border in the given compass direction, or the average of the two middle ones if the border length is even. Code Completion Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border... CodeCheck Two-Dimensional Arrays, No Loops
357 Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements in the given compass direction. Code Completion Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements... CodeCheck Two-Dimensional Arrays, No Loops
358 Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor in that direction, or 0 if it doesn't exist. Code Completion Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor... CodeCheck Two-Dimensional Arrays, No Loops
359 Repeat with NW NE SW SE. Code Completion Repeat with NW NE SW SE. CodeCheck Two-Dimensional Arrays, No Loops
360 Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or the average of the two or four middle elements of one or both is even. Code Completion Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or... CodeCheck Two-Dimensional Arrays, No Loops
361 On a chessboard, positions are marked with a letter between a and h for the column and a number between 1 and 8 for the row. Code Completion On a chessboard, positions are marked with a letter between a and h for the column and a number between... CodeCheck Two-Dimensional Arrays, No Loops
362 Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element itself). Code Completion Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element... CodeCheck Two-Dimensional Arrays, No Loops
363 Counting the Number of Valid and Banned Product Codes Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX exception handling, exceptions, while loop
364 Renting a Car (Case 3) Construct a program that determines whether a customer could rent a car based on the inputs that it receives from... PCEX boolean expressions, if-else statement, while loop
365 Partition Python CodeVisualization for demonstrating Partition JSVEE algorithm analysis, list, nested loops
366 jLabArray1 Java PredictingFinalResult for demonstrating jLabArray1 QuizJET arraylist, arrays, loops, overloading
367 Processing the Results of a Soda Survey Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d list, classes, data structures, for loop, list, stacks
368 For-Each Java CodeVisualization for demonstrating For-Each JSVEE 2d arrays, arraylist, arrays, loops
369 For-each with break Java CodeVisualization for demonstrating For-each with break JSVEE 2d arrays, arraylist, arrays, loops
370 Determining Whether One is a Teenager (Case 2) Construct a program that asks the user to enter a string that has the user name and age separated by... PCEX classes, exception handling, exceptions, file i/o, if-else statement, loops, methods, objects
371 Arrays 4 Java PredictingFinalResult for demonstrating Arrays 4 QuizJET 2d arrays, arraylist, arrays, loops, overloading
372 Loop Array Java PredictingFinalResult for demonstrating Loop Array QuizJET arrays
373 Enhanced For Loop Demo Java BehaviorExample for demonstrating Enhanced For Loop Demo AnnEx 2d arrays, arrays
374 DEPRECATED_Nested Loops Java BehaviorExample for demonstrating DEPRECATED_Nested Loops AnnEx
375 DEPRECATED_Nested Loops2 Java BehaviorExample for demonstrating DEPRECATED_Nested Loops2 AnnEx
376 modify a list in a loop Python PredictingFinalResult for demonstrating modify a list in a loop QuizPET list
377 SimpleNestedLoop Simple Nested Loop for NestedStatement AnnEx
378 JSON Aggregate 1 How many employees in this company have salary greater than 30,000. You're provided a json data assigned to a variable.... PCEX json, json-aggregate
379 JSON Aggregate 1 Challenge how many employees in this company with the highest salary. You're provided a json data assigned to a variable. only... PCEX json
380 JSON Conditionals 1 Challenge A customer is looking for a restaurant that has at least 1 review and mexican cuisine, with spicy food. I... PCEX json
381 Make stronger password Code Completion A stronger password can be created by replacing characters with similar-looking symbols: e becomes 3, i becomes 1, a becomes... CodeCheck Objects
382 371t3 hack3rs Code Completion The "elite hackers" like to make their text look cool by replacing characters with similar-looking symbols: e becomes 3, i... CodeCheck Objects
383 Drawing with fill3DRect Code Completion Complete the ThreeButtonComponent class to draw three boxes that look like push buttons. Each box is a Rectangle drawn in... CodeCheck Objects
384 Reversing a string with StringBuilder Code Completion StringBuilder is another class that provides methods to manipulate strings. Look in the StringBuilder class API for information on the... CodeCheck Objects
385 Printing Table of Medal Winner Counts with Row Totals Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
386 Printing Table of Medal Winner Counts with Row and Column Totals Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
387 Reporting the Total Hours Each Employee Worked (Case 1) Suppose we have an input file that contains information about how many hours each employee of a company has worked.... PCEX file i/o
388 Reporting the Total Hours Each Employee Worked (Case 2) Suppose we have an input file that contains information about how many hours each employee of a company has worked.... PCEX file i/o
389 Printing Table of Medal Counts with Row/Column Total Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
390 Reporting the Total Hours Each Employee Worked Suppose we have an input file that contains information about how many hours each employee of a company has worked.... PCEX file i/o
391 Reporting the Total Hours Each Employee Worked Suppose we have an input file that contains information about how many hours each employee of a company has worked.... PCEX exception handling, file i/o
392 Printing Table of Medal Winner Counts with Row and Column Totals Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
393 Reporting the Total Hours Each Employee Worked (Case 2) Suppose we have an input file that contains information about how many hours each employee of a company has worked.... PCEX file i/o
394 Reporting the Total Hours Each Employee Worked Suppose we have an input file that contains information about how many hours each employee of a company has worked.... PCEX file i/o
395 Rectangle with 3D effect Code Completion Complete the ThreeDButtonComponent class to draw a button with shading. The button is a Rectangle, with very thin rectangles on... CodeCheck Objects
396 Find vowels in string with recursive helper method Code Completion Complete the MyMethods class so that the static vowels method returns a string of the vowels of the string parameter.... CodeCheck Recursion