Showing 0-0 of 0 results
# Exercise Title Features Description Platform Keywords
1 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
2 While Loop Statement Python BehaviorExample for demonstrating While Loop Statement WebEx loops
3 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
4 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
5 Format Phone Number Code Completion When people enter their telephone numbers into a form they use many different formats. Some examples are: CodeCheck Loops
6 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
7 Picture of Colored Boxes Code Completion Your task is to write a method that produces images from strings describing color values. CodeCheck Loops
8 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
9 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
10 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
11 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
12 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
13 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
14 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
15 Sum using While Sum using While AnnEx loops, while loop
16 While with double While with double AnnEx loops, while loop
17 While While AnnEx loops, while loop
18 While Java CodeVisualization for demonstrating While JSVEE loops, while loop
19 While Loop Python CodeVisualization for demonstrating While Loop JSVEE loops, while loop
20 ae_python_while Python CodeVisualization for demonstrating ae_python_while JSVEE loops, while loop
21 Calcular una potencia Construye un programa que calcule la base elevada al exponente. jsParsons loops, while loop
22 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
23 Iteration with Addition Construct a program that prints the value 8. jsParsons loops, while loop
24 Crear un programa con un ciclo while Construye un programa que imprima el valor 8. jsParsons loops, while loop
25 Iteration with Multiplication Construct a program that prints values 1,2,4,8 and finally prints "The end!". jsParsons loops, while loop
26 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
27 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
28 Age Checking2 Python CodeVisualization for demonstrating Age Checking2 JSVEE loops, while loop
29 q_py_nested_while1_es Python PredictingFinalResult for demonstrating q_py_nested_while1_es QuizPET loops, while loop
30 q_py_while_loop1_es Python PredictingFinalResult for demonstrating q_py_while_loop1_es QuizPET loops, while loop
31 while loop Python PredictingFinalResult for demonstrating while loop QuizPET loops, while loop
32 q_py_while_loop2_es Python PredictingFinalResult for demonstrating q_py_while_loop2_es QuizPET loops, while loop
33 while loop with summation Python PredictingFinalResult for demonstrating while loop with summation QuizPET loops, while loop
34 While Loop Statement Python BehaviorExample for demonstrating While Loop Statement WebEx loops, while loop
35 Nested Loops Python BehaviorExample for demonstrating Nested Loops WebEx loops, while loop
36 5.2. The while statement Python BehaviorExample for demonstrating 5.2. The while statement WebEx loops, while loop
37 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
38 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
39 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
40 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
41 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
42 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
43 Loop While 3 Java PredictingFinalResult for demonstrating Loop While 3 QuizJET loops, while loop
44 Problem 1 Java PredictingFinalResult for demonstrating Problem 1 QuizJET loops, while loop
45 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
46 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
47 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
48 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
49 (Nested Loops) Grid of stars - CSEdPad Print a grid of stars. AnnEx nested loops
50 Nested Loops Nested Loops AnnEx nested loops
51 Nested Loops2 Nested Loops2 AnnEx nested loops
52 Nested For Demo Java CodeVisualization for demonstrating Nested For Demo JSVEE nested loops
53 Nested Loops Java CodeVisualization for demonstrating Nested Loops JSVEE nested loops
54 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
55 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
56 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
57 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
58 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
59 Nested Loops 1 Java PredictingFinalResult for demonstrating Nested Loops 1 QuizJET nested loops
60 Problem 4 Java PredictingFinalResult for demonstrating Problem 4 QuizJET nested loops
61 Nested Loops 3 Java PredictingFinalResult for demonstrating Nested Loops 3 QuizJET nested loops
62 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
63 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
64 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
65 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
66 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
67 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
68 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
69 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
70 For Loop For Loop AnnEx for loop, loops, nested loops
71 Nested For Loop Nested For Loop AnnEx for loop, loops, nested loops
72 Print Out a Diamond Print Out a Diamond AnnEx for loop, nested loops
73 Infinite For Infinite For AnnEx for loop, nested loops
74 For with Multiple Variables 2 For with Multiple Variables 2 AnnEx for loop, nested loops
75 For with Multiple Variables For with Multiple Variables AnnEx for loop, nested loops
76 For with Multiple Variables 3 For with Multiple Variables 3 AnnEx for loop, nested loops
77 For omitting elements For omitting elements AnnEx for loop, nested loops
78 DoWhile Demo Java CodeVisualization for demonstrating DoWhile Demo JSVEE do-while loop, loops, while loop
79 DoWhile Java CodeVisualization for demonstrating DoWhile JSVEE do-while loop, loops, while loop
80 For Loop Demo Java CodeVisualization for demonstrating For Loop Demo JSVEE for loop, nested loops
81 For with Multiple Variables 2 Java CodeVisualization for demonstrating For with Multiple Variables 2 JSVEE for loop, loops, nested loops
82 For Loop Python CodeVisualization for demonstrating For Loop JSVEE for loop, loops, while loop
83 ae_python_for Python CodeVisualization for demonstrating ae_python_for JSVEE for loop, loops
84 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
85 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
86 Calcular una potencia Construye un programa que calcule la base elevada al exponente no negativo sin usar multiplicacion. jsParsons for loop, loops
87 Partition2 Python CodeVisualization for demonstrating Partition2 JSVEE list, nested loops
88 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
89 q_py_for_loop1_es Python PredictingFinalResult for demonstrating q_py_for_loop1_es QuizPET for loop, loops
90 for loop Python PredictingFinalResult for demonstrating for loop QuizPET for loop, loops
91 Ciclo for anidado Python PredictingFinalResult for demonstrating Ciclo for anidado QuizPET for loop, loops
92 nested while Python PredictingFinalResult for demonstrating nested while QuizPET algorithm analysis, loops, nested loops, while loop
93 For Loop Statement Python BehaviorExample for demonstrating For Loop Statement WebEx for loop, loops
94 Break Statement Python BehaviorExample for demonstrating Break Statement WebEx for loop, loops
95 Continue Statement Python BehaviorExample for demonstrating Continue Statement WebEx for loop, loops
96 Pass Statement Python BehaviorExample for demonstrating Pass Statement WebEx for loop, loops
97 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
98 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
99 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
100 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
101 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
102 Repeat with NW NE SW SE. Code Completion Repeat with NW NE SW SE. CodeCheck Two-Dimensional Arrays, No Loops
103 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
104 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
105 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
106 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
107 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
108 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
109 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
110 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
111 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
112 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
113 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
114 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
115 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
116 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
117 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
118 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
119 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
120 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
121 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
122 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
123 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
124 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
125 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
126 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
127 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
128 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
129 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
130 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
131 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
132 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
133 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
134 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
135 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
136 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
137 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
138 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
139 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
140 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
141 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
142 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
143 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
144 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
145 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
146 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
147 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
148 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
149 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
150 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
151 Loop For 1 Java PredictingFinalResult for demonstrating Loop For 1 QuizJET for loop, loops, nested loops, variables
152 Loop For 2 Java PredictingFinalResult for demonstrating Loop For 2 QuizJET for loop, loops, nested loops
153 Loop For 3 Java PredictingFinalResult for demonstrating Loop For 3 QuizJET for loop, loops, nested loops
154 Loop For 5 Java PredictingFinalResult for demonstrating Loop For 5 QuizJET for loop, loops
155 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
156 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
157 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
158 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
159 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
160 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
161 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
162 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
163 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
164 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
165 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
166 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
167 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
168 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
169 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
170 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
171 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
172 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
173 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
174 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
175 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
176 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
177 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
178 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
179 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
180 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
181 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
182 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
183 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
184 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
185 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
186 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
187 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
188 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
189 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
190 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
191 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
192 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
193 Repeat with NW NE SW SE. Code Completion Repeat with NW NE SW SE. CodeCheck Two-Dimensional Arrays, No Loops
194 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
195 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
196 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
197 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
198 Partition Python CodeVisualization for demonstrating Partition JSVEE algorithm analysis, list, nested loops
199 Nested for loop Python PredictingFinalResult for demonstrating Nested for loop QuizPET algorithm analysis, for loop, nested loops
200 Nested For and While Loop Python PredictingFinalResult for demonstrating Nested For and While Loop QuizPET algorithm analysis, for loop, nested loops
201 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
202 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
203 Enhanced For Loop Java PredictingFinalResult for demonstrating Enhanced For Loop QuizJET 2d arrays, arrays, loops
204 jLabArray1 Java PredictingFinalResult for demonstrating jLabArray1 QuizJET arraylist, arrays, loops, overloading
205 For-Each Java CodeVisualization for demonstrating For-Each JSVEE 2d arrays, arraylist, arrays, loops
206 For-each with break Java CodeVisualization for demonstrating For-each with break JSVEE 2d arrays, arraylist, arrays, loops
207 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
208 Arrays 4 Java PredictingFinalResult for demonstrating Arrays 4 QuizJET 2d arrays, arraylist, arrays, loops, overloading
209 (For loops) Sum of odd numbers - CSEdPad This program sums up the odd number from 1 to 50 AnnEx for loop
210 (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
211 Working with While Loops Review Questions Question, Battery While Loops self-assessment questions. OpenDSA While Loop
212 DEPRECATED_Nested Loops Java BehaviorExample for demonstrating DEPRECATED_Nested Loops AnnEx
213 Sum and Average Using Loops Python BehaviorExample for demonstrating Sum and Average Using Loops WebEx while loop
214 Conditional Statements and While Loops: Chapter Review Question, Battery Chapter review questions for conditional statements and while loops. OpenDSA While Loop, Conditional Statement
215 Counter Controlled Loops Review Quiz Question, Battery Counter controlled loops for CS1 review questions. OpenDSA Loop
216 Nested For Loops Review Quiz Question, Battery Introduction to using nested for loops for CS1 review questions. OpenDSA For Loop
217 DEPRECATED_Nested Loops2 Java BehaviorExample for demonstrating DEPRECATED_Nested Loops2 AnnEx
218 Introduction to Lists Module Review Quiz Question, Battery Introduction to lists and nested for loops for CS1 review questions. OpenDSA List, For Loop
219 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
220 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
221 Loop Idioms Review Questions Question, Battery CS1 review questions about loop idioms. OpenDSA Loop
222 Loop Do-While 1 Java PredictingFinalResult for demonstrating Loop Do-While 1 QuizJET do-while loop, while loop
223 Loop Do-While 2 Java PredictingFinalResult for demonstrating Loop Do-While 2 QuizJET do-while loop, while loop
224 Loop Do-While 3 Java PredictingFinalResult for demonstrating Loop Do-While 3 QuizJET do-while loop, while loop
225 Loop Do-While 4 Java PredictingFinalResult for demonstrating Loop Do-While 4 QuizJET do-while loop, while loop
226 Loop For 4 Java PredictingFinalResult for demonstrating Loop For 4 QuizJET for loop
227 Loop While 1 Java PredictingFinalResult for demonstrating Loop While 1 QuizJET while loop
228 Loop While 2 Java PredictingFinalResult for demonstrating Loop While 2 QuizJET while loop
229 Loop While 5 Java PredictingFinalResult for demonstrating Loop While 5 QuizJET while loop
230 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
231 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
232 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
233 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
234 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
235 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
236 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
237 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
238 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
239 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
240 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
241 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
242 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
243 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
244 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
245 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
246 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
247 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
248 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
249 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
250 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
251 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
252 The Digit Sum of an Integer Construct a program that calculates the sum of the digits of an integer. PCEX while loop
253 Reversing the Digits of an Integer Construct a program that reverses the digits of an integer mathematically. PCEX while loop
254 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
255 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
256 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
257 2-19_PrimeChecker Java BehaviorExample for demonstrating 2-19_PrimeChecker AnnEx for loop
258 While (Memphis) Java BehaviorExample for demonstrating While (Memphis) AnnEx while loop
259 While Demo Java CodeVisualization for demonstrating While Demo JSVEE while loop
260 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
261 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
262 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
263 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
264 Iteration Multiplication For Construct a program that prints values 1,2,4,8 and finally prints "The end!". jsParsons for loop
265 Calculating power Construct a program that calculates the base raised to the power of the non-negative exponent without using multiplication. jsParsons for loop
266 Greatest Divisor Brute Force Python CodeVisualization for demonstrating Greatest Divisor Brute Force JSVEE for loop, functions
267 Leap Year Python CodeVisualization for demonstrating Leap Year JSVEE for loop
268 Power With Input4 Python CodeVisualization for demonstrating Power With Input4 JSVEE while loop
269 Power2 Python CodeVisualization for demonstrating Power2 JSVEE while loop
270 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
271 Single Line Loop Statement Python BehaviorExample for demonstrating Single Line Loop Statement WebEx for loop
272 Countdown to Zero Python BehaviorExample for demonstrating Countdown to Zero WebEx while loop
273 Table of Squares Python BehaviorExample for demonstrating Table of Squares WebEx while loop
274 Conversion Table (Fahrenheit to Celsius) Python BehaviorExample for demonstrating Conversion Table (Fahrenheit to Celsius) WebEx while loop
275 Sentinel Loop Control Python BehaviorExample for demonstrating Sentinel Loop Control WebEx while loop
276 Table of Squares (For Loop) Python BehaviorExample for demonstrating Table of Squares (For Loop) WebEx for loop
277 Functions Basics Python BehaviorExample for demonstrating Functions Basics WebEx while loop
278 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
279 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
280 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
281 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
282 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
283 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
284 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
285 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
286 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
287 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
288 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
289 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
290 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
291 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
292 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
293 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
294 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
295 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
296 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
297 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
298 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
299 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
300 Processing the Digits of an Integer (Case 3) Construct a program that reverses the digits of an integer mathematically. PCEX while loop
301 Processing the Digits of an Integer (Case 2) Construct a program that calculates the sum of the digits of an integer. PCEX while loop
302 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
303 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
304 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
305 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
306 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
307 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
308 Printing Consecutive Numbers Starting from Zero Construct a program that prints a sequence of numbers from 0 (inclusive) to 6 (exclusive). PCEX for loop
309 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
310 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
311 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
312 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
313 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
314 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
315 Question 4 Java PredictingFinalResult for demonstrating Question 4 QuizJET while loop
316 Question 6 Java PredictingFinalResult for demonstrating Question 6 QuizJET for loop
317 2-19_CompoundInterest Java BehaviorExample for demonstrating 2-19_CompoundInterest AnnEx do-while loop
318 (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
319 DoWhile DoWhile AnnEx do-while loop
320 Enhanced For Loop Demo Java CodeVisualization for demonstrating Enhanced For Loop Demo JSVEE 2d arrays, arraylist, arrays, for loop
321 For-each Loop Statement Module Review Quiz Question, Battery For-each statement module review questions for CS1. OpenDSA For-Each Loop
322 For-each Loop Statement Review Quiz Question, Battery For-each statement for CS1 self-assessment questions. OpenDSA For-Each Loop
323 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
324 Reversing the Digits of an Integer Construct a program that reverses the digits of an integer mathematically. PCEX do-while loop, while loop
325 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
326 Problem 2 Java PredictingFinalResult for demonstrating Problem 2 QuizJET do-while loop, while loop
327 Problem 3 Java PredictingFinalResult for demonstrating Problem 3 QuizJET do-while loop, while loop
328 Question 5 Java PredictingFinalResult for demonstrating Question 5 QuizJET do-while loop
329 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
330 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
331 Functions Example 2 Python BehaviorExample for demonstrating Functions Example 2 WebEx functions, while loop
332 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
333 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
334 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
335 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
336 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
337 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
338 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
339 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
340 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
341 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
342 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
343 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
344 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
345 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
346 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
347 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
348 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
349 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
350 Iterating with Arrays Review Questions Question, Battery CS1-level iterating over arrays review questions. OpenDSA Array, For-Each Loop
351 Arrays Module Review Questions Question, Battery CS1-level introduction to arrays module review questions. OpenDSA Array, For-Each Loop
352 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
353 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
354 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
355 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
356 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
357 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
358 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
359 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
360 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
361 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
362 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
363 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
364 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
365 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
366 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
367 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
368 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
369 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
370 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
371 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
372 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
373 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
374 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
375 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
376 Loop Array Java PredictingFinalResult for demonstrating Loop Array QuizJET arrays
377 Enhanced For Loop Demo Java BehaviorExample for demonstrating Enhanced For Loop Demo AnnEx 2d arrays, arrays
378 modify a list in a loop Python PredictingFinalResult for demonstrating modify a list in a loop QuizPET list
379 SimpleNestedLoop Simple Nested Loop for NestedStatement AnnEx
380 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
381 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
382 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
383 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
384 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
385 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
386 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
387 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
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 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