Showing 0–0 of 0 results
# Exercise Title Features Description Platform Keywords
1 Given a string, find the first integer inside and return its value as an integer. Code Completion Given a string, find the first integer inside and return its value as an integer. Return 0 if there is... CodeCheck Strings, Numbers in Strings
2 Given a string, find the sum of all integers inside. Code Completion Given a string, find the sum of all integers inside. Return 0 if there is no integer inside. CodeCheck Strings, Numbers in Strings
3 Given a string, find all integers inside and return a string that separates them by commas. Code Completion Given a string, find all integers inside and return a string that separates them by commas. CodeCheck Strings, Numbers in Strings
4 Concatenating Strings and Numbers (Case 1) Construct a program that uses variables x, y, and z to print "Python was invented in 1989.". PCEX
5 CFG Exercise: a's and b's are equal Grammar Construction Exercise User creates a CFG that generates strings in the language where the number of a's and b's is equal. OpenDSA Context-Free Grammar
6 Counting the Occurrences of One String in Another (Case 1) Construct a program that has a function that receives a string and returns the number of times that the string... PCEX
7 Counting the Occurrences of One String in Another (Case 2) Construct a program that has a function that receives a string and returns the number of times that the string... PCEX
8 Counting the Occurrences of One String in Another (Case 1) Construct a program that has a function that receives a string and returns the number of times that the string... PCEX
9 Counting the Occurrences of One String in Another (Case 2). Construct a program that has a function that receives a string and returns the number of times that the string... PCEX
10 Number of vowels Write a program that counts how many vowels there are in a string (each one separately). PCEX
11 Determining Number of Parse Tree Nodes Exercise: Alternate Calculation Exercise, Battery User determines the number of nodes in a parse tree generated by a given string on a given grammar. Alternative... OpenDSA Context-Free Grammar, Parse Tree
12 Determining Number of Parse Tree Nodes Exercise Calculation Exercise User determines the number of nodes in a parse tree generated by a given string on a given grammar. OpenDSA Context-Free Grammar, Parse Tree
13 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 Branches, Branches Without Functions
14 Printing Numbers in Descending Order Construct a program that accepts a positive integer N and then prints all the positive numbers in the sequence N,... PCEX
15 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
16 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
17 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
18 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
19 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
20 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
21 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
22 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
23 csedpad.11.ForLoops.no_topic_1 this is a program for a countdown display for launching a rocket in space which must show numbers in decreasing... PCEX
24 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
25 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
26 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
27 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
28 Creating an array that Contains the Numbers of Times Each Element of One Array Appears in Another Array Construct a program that has a function that receives two arrays and creates an array that contains the number of... PCEX
29 Creating an array that Contains the Numbers of Times Each Element of One Array Appears in Another Array Construct a program that has a function that receives two arrays and creates an array that contains the number of... PCEX
30 Creating a List that Contains the Numbers of Times Each Element of One List Appears in Another List Construct a program that has a function that receives two lists and creates a list that contains the number of... PCEX
31 Creating a List that Contains the Numbers of Times Each Element of One List Appears in Another List. Construct a program that has a function that receives two lists and creates a list that contains the number of... PCEX
32 Given three numbers, return true if they are evenly spaced; that is, sorted in ascending or descending order, with the same distance between them. Code Completion Given three numbers, return true if they are evenly spaced; that is, sorted in ascending or descending order, with the... CodeCheck Branches, Branches with Functions
33 Updating an Element in the Array (Case 2) Construct a program that initializes an array with five floating-point numbers, changes the second element in the array, and finally,... PCEX
34 Updating an Element in the Array (Case 2) Construct a program that initializes an array with five floating-point numbers, changes the second element in the array, and finally,... PCEX
35 Updating an Element in the List (Case 2) Construct a program that initializes a list with five floating-point numbers, changes the second element in the list, and finally,... PCEX
36 Updating an Element in the List (Case 2). Construct a program that initializes a list with five floating-point numbers, changes the second element in the list, and finally,... PCEX
37 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
38 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
39 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
40 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
41 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
42 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
43 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
44 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
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
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
47 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
48 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
49 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
50 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
51 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
52 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
53 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
54 csedpad.13.Arrays.arrays_1 This program generates the numbers from 0 to 10 which represent the numbers to be printed on the t-shirts of... PCEX
55 Updating Two-Dimensional Array (Case 1) Construct a program that initializes a 3x4 two-dimensional matrix that has the numbers 1 through 12 for entries, sets the... PCEX
56 Updating Two-Dimensional Array (Case 2) Construct a program that initializes a 3x3 two-dimensional matrix that has the numbers 1 through 9 for entries, sets the... PCEX
57 Updating Two-Dimensional Array (Case 1) Construct a program that initializes a 3x4 two-dimensional matrix that has the numbers 1 through 12 for entries, sets the... PCEX
58 Updating Two-Dimensional Array (Case 2) Construct a program that initializes a 3x3 two-dimensional matrix that has the numbers 1 through 9 for entries, sets the... PCEX
59 csedpad.09.WhileLoops.whileloops_1 Assume you have a list of 1,000 people in alphabetical order and you are assigned to collect from the first... PCEX
60 Updating Two-Dimensional List (Case 1) Construct a program that initializes a 3x4 two-dimensional matrix that has the numbers 1 through 12 for entries, updates the... PCEX
61 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
62 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
63 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
64 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
65 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
66 Printing Table of Medal Counts with Row Totals Assume that we have a 7x4 matrix that stores the number of medals that seven countries won in the skating... PCEX
67 Printing Table of Medal Winner Counts with Row and Column Totals Assume that we have a 7x4 matrix that stores the number of medals that seven countries won in the skating... PCEX
68 Construct a function that returns a list of remainders from the input. Construct a function which calculates the remainder of each element of the first list and the element with the same... jsParsons
69 Construct a function that returns a list of remainders from the input. Construct a program which calculates the remainder of each element of the first list and the element with the same... jsParsons
70 csedpad.13.Arrays.arrays_1 Count the total number of vegetables in a shopping bag. The shopping cart bag contains different quantities of various vegetables... PCEX
71 Count Inversions Proficiency Exercise Calculation Exercise Proficiency exercise to count the number of inversions in an array. OpenDSA Exchange Sort, Inversion
72 csedpad.10.DoWhile.do-whileloops Repeatedly prompt the user to guess the number of floors in the world's tallest building, the Burj Khalifa in Dubai.... PCEX
73 Construct a function that checks the size of a linked list Construct a function that calculates the number of elements in a singly linked list.
LinkedList class implementation is given below.
jsParsons linked list
74 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
75 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
76 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
77 Programmed Instruction: DFA Minimization Example 1 Programmed Instruction Programmed Instruction Frameset presenting the algorithm to minimize the number of states in a DFA: Example 1. OpenDSA Deterministic Finite Automata
78 Programmed Instruction: DFA Minimization Example 2 Programmed Instruction Programmed Instruction Frameset presenting the algorithm to minimize the number of states in a DFA: Example 2. OpenDSA Deterministic Finite Automata
79 Programmed Instruction: DFA Minimization Programmed Instruction Programmed Instruction Frameset presenting the algorithm to minimize the number of states in a DFA. OpenDSA Deterministic Finite Automata
80 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
81 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
82 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
83 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
84 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
85 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
86 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
87 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
88 csedpad.22.Searching.searching(binarysearch)_1 This program uses the binary search algorithm to search the index, where "index will be the rank of prizes you... PCEX
89 csedpad.22.Searching.searching(linearsearch)_1 This program linearly searches the array for the index or rank of the rollNumber entered by the user or student... PCEX
90 (Searching) Binary search - CSEdPad This program uses binary search algorithm to search the index, where "index will be the rank of prizes you get... AnnEx search algorithms
91 Printing the Total Number of Times Elements of One Array Appear in Another Array Construct a program that has a method that receives two arrays and prints the total number of times the elements... PCEX
92 Printing the Total Number of Times Elements of One Array Appear in Another Array Construct a program that has a method that receives two arrays and prints the total number of times the elements... PCEX
93 Printing the Total Number of Times Elements of One List Appear in Another List Construct a program that has a function that receives two lists and prints the total number of times the elements... PCEX
94 Printing the Total Number of Times Elements of One List Appear in Another List Construct a program that has a function that receives two lists and prints the total number of times the elements... PCEX
95 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
96 Given two two-dimensional arrays a and b of integers with the same number of rows and columns, return a list of the same size where each element is the greater of the corresponding elements in the two arrays. Code Completion Given two two-dimensional arrays a and b of integers with the same number of rows and columns, return a list... CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
97 Given a list of integers, return a list of length 2, with the number of positive and the number of negative elements in the list. Code Completion Given a list of integers, return a list of length 2, with the number of positive and the number of... CodeCheck Lists - Simple Exercises, Two Answers
98 DFA Exercise: Minimize the Number of State Exercise 1 Automata Construction Exercise User shows the steps in the algorithm to minimize the states in a given DFA. Exercise 1. OpenDSA Deterministic Finite Automata
99 DFA Exercise: Minimize the Number of State Exercise 2 Automata Construction Exercise User shows the steps in the algorithm to minimize the states in a given DFA. Exercise 2. OpenDSA Deterministic Finite Automata
100 Counting the Number of Valid and Banned Product Codes (Case 1) Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX
101 Counting the Number of Valid and Banned Product Codes (Case 2) Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX
102 Counting the Number of Valid and Banned Product Codes (Case 1) Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX
103 Counting the Number of Valid and Banned Product Codes (Case 2) Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX
104 Counting the Number of Valid and Banned Product Codes (Case 1) Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX
105 Counting the Number of Valid and Banned Product Codes (Case 2) Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX
106 Calculating the Average of the Values in the Array Construct a program that calculates the average of all the values in an array. The program should handle arrays with... PCEX
107 Calculating the Average of the Values in the Array Construct a program that calculates the average of all the values in an array. The program should handle arrays with... PCEX
108 Calculating the Average of the Values in the List Construct a program that has a function that receives a list and calculates the average of the values in that... PCEX
109 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
110 csedpad.11.ForLoops.no_topic_1 50 chickens are separated in odd-numbered and even-numbered cages with the first chicken being in cage 1 and the last... PCEX
111 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
112 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
113 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
114 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
115 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
116 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
117 Calculating the Employee's Wage Based on the Hours That the Employee Has Worked and an Hourly Pay Rate Construct a program for the payment department of a company to calculate the wage of an employee based on the... PCEX
118 Calculating the Employees Wage Based on the Hours That the Employee Has Worked and an Hourly Pay Rate Construct a program for the payment department of a company to calculate the wage of an employee based on the... PCEX
119 Calculating the Employee's Wage Based on the Hours That the Employee Has Worked and an Hourly Pay Rate Construct a program for the payment department of a company to calculate the wage of an employee based on the... PCEX
120 Calculating the Employee's Wage Based on the Hours That the Employee Has Worked and an Hourly Pay Rate Construct a program for the payment department of a company to calculate the wage of an employee based on the... PCEX
121 Calculating the Employee's Wage Based on the Hours That the Employee Has Worked and an Hourly Pay Rate Construct a program for the payment department of a company to calculate the wage of an employee based on the... PCEX
122 csedpad.09.WhileLoops.whileloops_1 Bank overdraft warning. We implement a computer program that monitors a bank account with an initial balance of $1,000 and... PCEX
123 csedpad.22.Searching.searching(linearsearch) This program implements Linear Search Algorithm to take the size of the array and then if a user inputs lets... PCEX
124 Bintree Interactive Visualization Algorithm Visualization, User Supplied Data Interactive Algorithm Visualization for the Bintree data structure. User can click to indicate where a point should be inserted or... OpenDSA Bintree
125 The Class for Representing a Bank Account (Case 2) Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX
126 The Class for Representing a Bank Account (Case 2) Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX
127 Solving Josephus Problem Construct a program by using Queue structure to solve a Josephus problem. Josephus problem is a counting-out game. N people... PCEX
128 My books The book is described by identifier, title, authors, publisher, unit price and year of publication. There cannot be two books... PCEX
129 Character Numbers ASCII C++ BehaviorExample for demonstrating Character Numbers ASCII AnnEx
130 Given numbers x, y, and target, return whichever of x and y is closer to the target. Code Completion Given numbers x, y, and target, return whichever of x and y is closer to the target. If they have... CodeCheck Branches, Branches with Functions
131 Random Numbers Review Quiz Question, Battery Random Numbers for CS1 review questions. OpenDSA Random Number
132 Variable type: Numbers Python BehaviorExample for demonstrating Variable type: Numbers WebEx operators, variables
133 Maximum of 2 Numbers Python BehaviorExample for demonstrating Maximum of 2 Numbers WebEx if-else statement
134 Average of input numbers Lists and functions PCEX
135 Printing Consecutive Numbers Starting from Zero (Case 1) Construct a program that prints a sequence of numbers from 0 (inclusive) to 10 (exclusive). PCEX
136 Printing Consecutive Numbers Starting from Zero (Case 2) Construct a program that prints a sequence of numbers from 0 (inclusive) to 6 (exclusive). PCEX
137 Printing Consecutive Numbers Starting from Zero (Case 1) Construct a program that prints a sequence of numbers from 0 (inclusive) to 10 (exclusive). PCEX
138 Printing Consecutive Numbers Starting from Zero (Case 2) Construct a program that prints a sequence of numbers from 0 (inclusive) to 6 (exclusive). PCEX
139 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
140 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
141 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
142 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
143 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
144 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
145 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
146 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
147 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
148 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
149 Concatenating Strings and Numbers (Case 2) Construct a program that uses variables x, y, and z to print "x * 2 = 4". PCEX
150 Concatenating Strings and Numbers (Case 3) Construct a program that uses variables x, y, and z to print "10 + 20 = 30". PCEX
151 Printing Consecutive Numbers Starting from Zero (Case 1) Construct a program that prints a sequence of numbers from 0 (inclusive) to 10 (exclusive). PCEX
152 Printing Consecutive Numbers Starting from Zero (Case 2) Construct a program that prints a sequence of numbers from 0 (inclusive) to 6 (exclusive). PCEX
153 Printing Consecutive Numbers Starting from Zero (Case 1) Construct a program that prints a sequence of numbers from 0 (inclusive) to 10 (exclusive). PCEX
154 Printing Consecutive Numbers Starting from Zero (Case 2). Construct a program that prints a sequence of numbers from 0 (inclusive) to 6 (exclusive). PCEX
155 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
156 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
157 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
158 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
159 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
160 Printing Consecutive Numbers Starting from Zero (Case 1) Construct a program that prints a sequence of numbers from 0 (inclusive) to 10 (exclusive). PCEX
161 (LogicalOperators) Compare numbers - CSEdPad This program check whether two numbers are equal or not AnnEx logical operators
162 (Methods) Adding numbers - CSEdPad The program will create a method that will add two given exam numbers of a student. The program will declare... AnnEx methods
163 Given three numbers x, y, z, determine if one of them is the sum of the two others, and then print out the equation. Code Completion Given three numbers x, y, z, determine if one of them is the sum of the two others, and then... CodeCheck Branches, Branches Without Functions
164 Given three numbers x, y, z, print out how whether they are all distinct, two are the same, or all three are the same. Code Completion Given three numbers x, y, z, print out how whether they are all distinct, two are the same, or all... CodeCheck Branches, Branches Without Functions
165 Given two numbers, return true if they both have the same sign. Code Completion Given two numbers, return true if they both have the same sign. CodeCheck Branches, Branches with Functions
166 Given two numbers, return their distance if it less than 10, or 10 otherwise. Code Completion Given two numbers, return their distance if it less than 10, or 10 otherwise. CodeCheck Branches, Branches with Functions
167 Given three numbers x, y, z and a Boolean variable <code>strict</code>, return <code>true</code> if <code>strict</code> is false and x ≤ y ≤ z, or <code>strict</code> is true and x &lt; y &lt; z. Code Completion Given three numbers x, y, z and a Boolean variable strict, return true if strict is false and x ≤... CodeCheck Branches, Branches with Functions
168 Given four numbers a, b, c, d, return true if exactly two of them are the same. Code Completion Given four numbers a, b, c, d, return true if exactly two of them are the same. CodeCheck Branches, Branches with Functions
169 Repeat for four numbers. Code Completion Repeat for four numbers. Hint: Use the previous problem. CodeCheck Branches, Branches with Functions
170 DFA Exercise: Even Binary Numbers Automata Construction Exercise User creates a DFA that accepts the langugage of even binary numbers. OpenDSA Deterministic Finite Automata
171 Creating an Array of Odd Numbers Construct a program that creates an array of first ten positive odd numbers. PCEX
172 Creating an Array of Odd Numbers Construct a program that creates an array of first ten positive odd numbers. PCEX
173 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
174 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
175 Sum of all two-digit even numbers This example includes a method calculateSumOfEvenNumbers within a class named EvenNumberSumCalculator. The method iterates through all two-digit numbers, checks if... PCEX
176 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
177 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
178 (For loops) Sum of odd numbers - CSEdPad This program sums up the odd number from 1 to 50 AnnEx for loop
179 Given a list of floating-point numbers, return a list of the averages of consecutive element pairs of the original list. Code Completion Given a list of floating-point numbers, return a list of the averages of consecutive element pairs of the original list. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
180 Regular Expression Exercise: Strings of Even Binary Numbers RegEx Writing Exercise User writes an regular expression for the language of strings that are even binary numbers. OpenDSA Regular Expression
181 DFA Example Trace: Even Binary Numbers Algorithm Visualization, Code Tracing Presentation Visualization of how a DFA would process input strings for the language of even binary numbers. OpenDSA Deterministic Finite Automata
182 Given a list of integers, move all negative numbers to the front and all positive numbers to the back, keeping their relative order. Code Completion Given a list of integers, move all negative numbers to the front and all positive numbers to the back, keeping... CodeCheck Lists - Simple Exercises, Moving or Removing Elements
183 Given integers a and b, return a list containing all even numbers that are at least a and at most b. Code Completion Given integers a and b, return a list containing all even numbers that are at least a and at most... CodeCheck Lists - Simple Exercises, Filling
184 csedpad.20.Recursion.recursion_1 This program computes Fibonacci numbers using a recursive method. PCEX
185 Fibonacci generator Generate Fibonacci numbers less than 1000. PCEX
186 (Exception Handling) Arithmetic - CSEdPad Given two numbers, this program checks what happens when a number is divided by zero. AnnEx exception handling
187 Simple Printing Printing strings and numbers AnnEx variables
188 csedpad.12.NestedLoops.nestedloops_1 Label all squares on a chessboard with numbers from 1 to 64 such that the top row's squares are labeled... PCEX
189 Updating elements to the new list Construct a function which finds even numbers from the list given as a parameter, calculates the square of each such... jsParsons search algorithms
190 Updating required elements to the new list Construct a program which finds even numbers from the original list, calculates the square of each such number and adds... jsParsons search algorithms
191 Updating the elements to the new list Construct a function which finds even numbers from the list given as a parameter, calculates the square of each such... jsParsons search algorithms
192 Updating the elements to the new list Construct a function which finds even numbers from the list given as a parameter, calculates the square of each such... jsParsons
193 Updating required elements to the new list Construct a program which finds even numbers from the original list, calculates the square of each such number and adds... jsParsons
194 Updating required elements to the new list Construct a program which finds even numbers from the original list, calculates the square of each such number and adds... jsParsons
195 Try adding Construct a function that adds two numbers together and handles non-numeric input. jsParsons exception handling, exceptions
196 Bigger Than Assume that num1 and num2 have been initialized to numbers, so that number1 is bigger. Construct a program that correctly... jsParsons boolean expressions, boolean logic, comparison operators
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 csedpad.14.TwoDimensionalArrays.twodimensionalarrays Generate a 5 x 5 Bingo board and initialize it with random numbers from 1 to 75. The board will... PCEX
199 Finding zero a "do while" loop to iterate through an array of random integer numbers, searching for the number 0. When it... PCEX
200 Add Values to an Empty List (Case 1) Construct a program that creates a list of first ten positive odd numbers. PCEX
201 Add Values to an Empty List (Case 1) Construct a program that creates a list of first ten positive odd numbers. PCEX
202 Updating Two-Dimensional List (Case 2) Construct a program that initializes a 3x3 two-dimensional matrix that has the numbers 1 through 9 for entries, updates the... PCEX
203 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
204 Construct a program that creates unique 3 digit combinations Construct a program which creates and prints all three-digit combinations from numbers 1-4 such that each number appears at most... jsParsons
205 Reorganize the list Construct a program which partition the original list of integers such that all even numbers come first and all odd... jsParsons
206 Reorganize the list Construct a function which partition the original list of integers such that all even numbers come first and all odd... jsParsons
207 Reorganize the list Construct a program which partition the original list of integers such that all even numbers come first and all odd... jsParsons
208 DFA Exercise: Divisible by 4 Automata Construction Exercise User creates a DFA that accepts the langugage of strings of binary numbers divisible by 4. OpenDSA Deterministic Finite Automata
209 Reorganize the list Construct a function which partition the list of integers given as a parameter such that all even numbers come first... jsParsons
210 csedpad.10.DoWhile.do-whileloops_1 Repeatedly prompt the user for a number between 0 and 9 until the user enters -1. Each time the user... PCEX
211 Switch (Memphis) Demonstrates how to use Java switch statement. This program determines whether an integer between 1 and 10 is prime. (Prime... AnnEx switch statement
212 Number Basics Python BehaviorExample for demonstrating Number Basics WebEx numeric types
213 Finding the Number of Days Above the Average Temperature Construct a program that reads a series of temperatures and reports the average temperature and the number of the days... PCEX
214 Finding the Number of Days Above the Average Temperature Construct a program that reads a series of temperatures and reports the average temperature and the number of the days... PCEX
215 c_max_number Napisati program koji sa tastature traži unos dva cijela broja, a zatim na ekran ispisuje onaj broj koji je veći... PCEX
216 Finding the Number of Days Above the Average Temperature Construct a program that reads a series of temperatures and reports the average temperature and the number of the days... PCEX
217 (Switch) Convert dress size number - CSEdPad Given a user-supplied US dress size (2, 4, 6, etc.), output the corresponding size label (XS, S, M, L, etc.). AnnEx switch statement
218 Regular Grammar Exercise: Number of a's and b's is Odd Grammar Construction Exercise User writes an regular grammar for the language of strings with an odd length. OpenDSA Regular Expression, Regular Grammar
219 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
220 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
221 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
222 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
223 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
224 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
225 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
226 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
227 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
228 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
229 Given two two-dimensional arrays of integers with the same number of rows and columns, return the first position where they do not match, as a list of length 2. Code Completion Given two two-dimensional arrays of integers with the same number of rows and columns, return the first position where they... CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
230 Given two two-dimensional arrays with the same number of rows, return a list that places them side by side. Code Completion Given two two-dimensional arrays with the same number of rows, return a list that places them side by side. CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
231 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
232 Given two lists of integers a and b of the same length, count the number of positions where the lists have the same elements. Code Completion Given two lists of integers a and b of the same length, count the number of positions where the lists... CodeCheck Lists - Simple Exercises, Counting Elements
233 Given two lists of integers a and b of the same length, count the number of positions where the list elements differ by at least 2. Code Completion Given two lists of integers a and b of the same length, count the number of positions where the list... CodeCheck Lists - Simple Exercises, Counting Elements
234 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
235 On a chessboard, fields 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, fields are marked with a letter between a and h for the column and a number between... CodeCheck Branches, Branches Without Functions
236 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 Branches, Branches with Functions
237 csedpad.06.If.ifstatement Given a number, this program checks whether the number is even or not. PCEX
238 csedpad.09.WhileLoops.whileloops Guess the number. PCEX
239 (If) Positive - CSEdPad Given a number, this program reports if the number is a positive number AnnEx if statement
240 csedpad.11.ForLoops.no_topic_1 This program checks whether a number is a prime number or not and displays the result. PCEX
241 Jison Grammar Exercise 2 Calculation Exercise A question where users calculate the number of strings parsed successfully by a given grammar. OpenDSA Parser Generator
242 Calculating power Construct a function which calculates the power of a number. The function takes two integers as parameters (the base number... jsParsons
243 Modulo is Even Construct a function that will return True if a given number is even, otherwise false. jsParsons algorithm analysis, functions, if-else statement
244 Mid-square Method Calculator Calculation Exercise Calculator for computing value of the middle digits of a squared number. OpenDSA Hash Function
245 Birthday Calculator Exercises Calculation Exercise User must use the birthday calculator to determine the smallest number of inserts into a hash table of a specified... OpenDSA Hashing, Collision Resolution
246 Jison Grammar Exercise 1 Calculation Exercise A collection of self-practice questions where users calculate the number of strings parsed successfully by a given grammar. OpenDSA Parser Generator
247 Recursive Code Tracing Exercise: Call Count Tracing Exercise Recursive Code Tracing Exercise collection focusing on counting the number of function calls made. OpenDSA Recursion
248 csedpad.09.WhileLoops.whileloops_1 Construct a program that finds the smallest divisor (other than 1) of a positive number. For example, the smallest divisor... PCEX
249 csedpad.17.ClassesObjects.ClassExample1.classesandobjects This program creates two objects of BagDetail which will get the total number of balls from the bags. PCEX
250 Birthday Calculator Calculation, User Supplied Data Simple calculator for computing the probability of a collision occuring given a specified number of inserts into a specified table... OpenDSA Hashing, Collision Resolution
251 DFA Exercise: Even a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an even number of a's. OpenDSA Deterministic Finite Automata
252 DFA Exercise: Even a's, b's, odd a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an even number of a's, followed by at least... OpenDSA Deterministic Finite Automata
253 DFA Exercise: Even a, 3 b's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an even number of a's and at least 3... OpenDSA Deterministic Finite Automata
254 DFA Exercise: Even a's Odd b's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an even number of a's and an odd number... OpenDSA Deterministic Finite Automata
255 DFA Exercise: Odd a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an odd number of a's. OpenDSA Deterministic Finite Automata
256 DFA Exercise: Odd a's, 3 b's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an odd number of a's and at most 3... OpenDSA Deterministic Finite Automata
257 DFA Exercise: Odd a's, Even b's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an odd number of a's and an even number... OpenDSA Deterministic Finite Automata
258 Regular Expression Exercise: Strings of 2 b's and c's RegEx Writing Exercise User writes an regular expression for the language of strings where the number of b's and c's sums to 2. OpenDSA Regular Expression
259 Regular Grammar Exercise: a's a Multiple of 3 Grammar Construction Exercise User writes an regular grammar for the language of strings with the number of a's being divisible by 3. OpenDSA Regular Grammar
260 Turing Machine Exercise: Accept Powers of 2 Automata Construction Exercise User creates a Turing machine that accepts strings of a's with the number of characters being a power of 2. OpenDSA Turing Machine
261 Tree Indexing Proficiency Exercise Question, Battery Tree-based indexing proficiency exercise. User indicates the number of disk pages visited for a given tree. OpenDSA Tree-Based Indexing
262 csedpad.07.IfElse.no_topic_1 This program assigns a jersey to one of two teams, teamE if jersey number is even else to teamO PCEX
263 DFA Exercise: Complement Even a, 3 b's Automata Construction Exercise User creates a DFA that accepts the complement of the langugage of strings with an even number of a's and... OpenDSA Deterministic Finite Automata
264 csedpad.04.StringClass.no_topic_1 Given a person name, the program finds out the length, i.e., the number of characters, of the name. PCEX
265 Reporting File Information (Case 1) Construct a program that receives the full path to an input file from the user, reads that file and reports... PCEX
266 Reporting File Information (Case 2) Construct a program that receives the full path to an input file from the user, reads that file and reports... PCEX
267 Reporting File Information (Case 1) Construct a program that receives the full path to an input file from the user, reads that file and reports... PCEX
268 Reporting File Information (Case 2) Construct a program that receives the full path to an input file from the user, reads that file and reports... PCEX
269 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
270 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
271 The Class for Representing a Bank Account (Case 1) Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX
272 The Class for Representing a Bank Account (Case 1) Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX
273 The Class for Representing a Bank Account (Case 2) Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX
274 The Class for Representing a Bank Account (Case 1) Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX
275 The Class for Representing a Bank Account (Case 1) Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX
276 The Class for Representing a Bank Account (Case 2). Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... PCEX
277 Reporting File Information (Case 1) Construct a program that receives the full path to an input file from the user, reads that file and reports... PCEX
278 Reporting File Information (Case 2) Construct a program that receives the full path to an input file from the user, reads that file and reports... PCEX
279 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
280 PANDAS GroupBy 2 You're provided a dataframe of used cars using pandas. Group the data by 'type' and count the number of cars... jsParsons pandas
281 Given a list of integers and an integer n, remove all elementts &gt; n or &lt; -n. Code Completion Given a list of integers and an integer n, remove all elementts > n or < -n. Shift all remaining... CodeCheck Lists - Simple Exercises, Moving or Removing Elements
282 Modifying an Array (Case 2) Construct a program that swaps pairs of adjacent elements of the array. For example, if the array is {1, 2,... PCEX
283 Modifying an Array (Case 2) Construct a program that swaps pairs of adjacent elements of the array. For example, if the array is {1, 2,... PCEX
284 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
285 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
286 Modifying a List (Case 2) Construct a program that swaps pairs of adjacent elements of the list. For example, if the list is [1, 2,... PCEX
287 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