Showing 0-0 of 0 results
# Exercise Title Features Description Platform Keywords
1 (Strings) Change case - CSEdPad Given a string, this program converts the string into uppercase and lowercase. present on those variable to either uppercase or... AnnEx string
2 (Strings) String length - CSEdPad Given a string, this program finds out the length of a string. AnnEx string
3 Strings Review Quiz Question, Battery Strings introduction for CS1 review questions. OpenDSA String
4 String Concatenation (Case 1) Construct a program that prints the text "24 and 45 concatenated: 2445" and "24 and 45 added: 69". PCEX strings
5 String Comparison (Case 1) Construct the program that first checks the equality of the strings "HELLO WORLD!" and "hello world!" and then modifies the... PCEX strings
6 String Comparison (Case 2) Construct the program that modifies the string "hexxo worxd!" so that it matches (ignoring case) the string "HELLO WORLD!". PCEX strings
7 String With Escape Characters (Case 1) Construct a program that prints the following output:\n"Quotes"\nSlashes\n\//\nHow '"confounding' "\" it is! PCEX strings
8 String With Escape Characters (Case 2) Construct a program that prints the following output:\n""Two Double Quotes""\n Slashes \//\nHow '"confounding' "\" it is! PCEX strings
9 String With Escape Characters (Case 3) Construct a program that prints the following output:\n"Slashes"\\//\n \\//\nHow '"confounding' "\" it is! PCEX strings
10 String Length String Length AnnEx strings
11 String Equals Java BehaviorExample for demonstrating String Equals AnnEx boolean expressions, strings, variables
12 String Example StringExample AnnEx strings
13 Concat Demo Java CodeVisualization for demonstrating Concat Demo JSVEE string operations, strings
14 String Example Java CodeVisualization for demonstrating String Example JSVEE string operations, strings
15 ToString Demo Java CodeVisualization for demonstrating ToString Demo JSVEE string operations, strings
16 Format 1 Python CodeVisualization for demonstrating Format 1 JSVEE string formatting, strings
17 Format 2 Python CodeVisualization for demonstrating Format 2 JSVEE string formatting, strings
18 String Indexing Construct a program that first prints out strings "Py", "th", "o", and "n" jsParsons strings
19 String join Construct a program that prints out a sentence from a given list of words. jsParsons strings
20 simple format Python PredictingFinalResult for demonstrating simple format QuizPET string formatting, strings
21 format with one argument Python PredictingFinalResult for demonstrating format with one argument QuizPET string formatting, strings
22 format with two arguments Python PredictingFinalResult for demonstrating format with two arguments QuizPET string formatting, strings
23 format with three arguments Python PredictingFinalResult for demonstrating format with three arguments QuizPET string formatting, strings
24 String Formatting V1 Python PredictingFinalResult for demonstrating String Formatting V1 QuizPET strings
25 String Formatting Python PredictingFinalResult for demonstrating String Formatting QuizPET strings
26 String Formatting 1 Python PredictingFinalResult for demonstrating String Formatting 1 QuizPET strings
27 String Formatting 2 Python PredictingFinalResult for demonstrating String Formatting 2 QuizPET strings
28 Output Formatting Python BehaviorExample for demonstrating Output Formatting WebEx string formatting, strings
29 Output Formatting 2 Python BehaviorExample for demonstrating Output Formatting 2 WebEx string formatting, strings
30 String Index Search Python BehaviorExample for demonstrating String Index Search WebEx search algorithms, strings
31 String Addition Construct a program that prints the text "24 and 45 concatenated: 2445" and "24 and 45 added: 69". PCEX string operations, strings
32 Accessing String Characters Construct a program that prints the 1st, 9th, and the last character of the string "String Example!". PCEX string operations, strings
33 String Comparison Construct the program that first checks the equality of the strings "HELLO WORLD!" and "hello world!" and then modifies the... PCEX string operations, strings
34 Strings With Escape Characters Construct a program that prints the following output:\n"Quotes"\nSlashes\n\//\nHow '"confounding' "\" it is! PCEX string operations, strings
35 Name Initials Construct a program that prints the initials of the name "John Smith". PCEX string operations, strings
36 String Concatenation (Case 2) Construct a program that prints the text "333", "63", and "36". PCEX conditionals, data types, string operations, strings, variables
37 Accessing String Characters (Case 2) Construct a program that prints the 7th, 11th, and 14th character of the string "Second Example!". PCEX string operations, strings
38 String Comparison (Case 2) Construct the program that modifies the string "hexxo worxd!" so that it matches (ignoring case) the string "HELLO WORLD!". PCEX string operations, strings
39 String With Escape Characters (Case 2) Construct a program that prints the following output:\n""Two Double Quotes""\n Slashes \//\nHow '"confounding' "\" it is! PCEX string operations, strings
40 String With Escape Characters (Case 3) Construct a program that prints the following output:\n"Slashes"\\//\n \\//\nHow '"confounding' "\" it is! PCEX string operations, strings
41 Printing Name in APA Style Construct a program that prints the name "Alice Ann Darcy" following the APA style, i.e., last name first, followed by... PCEX string operations, strings
42 String Variables Java PredictingFinalResult for demonstrating String Variables QuizJET data types, primitive data types, string operations, strings, variables
43 Strings 1 Java PredictingFinalResult for demonstrating Strings 1 QuizJET string, string operations, strings
44 Strings 2 Java PredictingFinalResult for demonstrating Strings 2 QuizJET string operations, strings
45 Strings 3 Java PredictingFinalResult for demonstrating Strings 3 QuizJET string operations, strings
46 Strings 4 Java PredictingFinalResult for demonstrating Strings 4 QuizJET string operations, strings
47 Strings 5 Java PredictingFinalResult for demonstrating Strings 5 QuizJET string operations, strings
48 String Concat Java PredictingFinalResult for demonstrating String Concat QuizJET strings
49 String (equals) Java PredictingFinalResult for demonstrating String (equals) QuizJET string operations, strings
50 String (replace) Java PredictingFinalResult for demonstrating String (replace) QuizJET string operations, strings
51 Concatenando Caracteres de Dos Strings (Caso 1) Construya un programa que tenga una función que reciba dos strings y devuelva un string formado a partir de los... PCEX strings
52 Concatenando Caracteres de Dos Strings (Caso 2). Construye un programa que tenga una función que reciba dos strings y devuelva un string formado a partir de las... PCEX strings
53 Accessing String Characters (Case 1) Construct a program that prints the 1st, 9th, and the last character of the string "String Example!". PCEX strings
54 Accessing String Characters (Case 2) Construct a program that prints the 7th, 11th, and 14th character of the string "Second Example!". PCEX strings
55 Char Strings (Memphis) Some demos of working with the char and String data types. AnnEx strings
56 Creating String Creating String AnnEx strings
57 f-string format 1 Python CodeVisualization for demonstrating f-string format 1 JSVEE strings
58 f-string format 2 Python CodeVisualization for demonstrating f-string format 2 JSVEE strings
59 f-string formatting 1 Python PredictingFinalResult for demonstrating f-string formatting 1 QuizPET strings
60 f-string formatting 2 Python PredictingFinalResult for demonstrating f-string formatting 2 QuizPET strings
61 f-string formatting 3 Python PredictingFinalResult for demonstrating f-string formatting 3 QuizPET strings
62 f-string formatting 4 Python PredictingFinalResult for demonstrating f-string formatting 4 QuizPET strings
63 Finding character in a string Python BehaviorExample for demonstrating Finding character in a string WebEx strings
64 Given a string s and an integer n, return a string in which each of the characters in s is repeated n times. Code Completion Given a string s and an integer n, return a string in which each of the characters in s is... CodeCheck Strings, Other String Operations
65 Given a string s, return the first vowel that is doubled in the string. Code Completion Given a string s, return the first vowel that is doubled in the string. CodeCheck Strings, Other String Operations
66 Given a string s, return the string with adjacent duplicates removed. Code Completion Given a string s, return the string with adjacent duplicates removed. For example, Mississippi yields Misisipi. CodeCheck Strings, Other String Operations
67 Given a string s and a string t, return a string in which all the characters of s that occur in t have been replaced by a _ character. Code Completion Given a string s and a string t, return a string in which all the characters of s that occur... CodeCheck Strings, Other String Operations
68 Given a string, return a string composed first of all characters at even positions and then of all characters at odd positions. Code Completion Given a string, return a string composed first of all characters at even positions and then of all characters at... CodeCheck Strings, Other String Operations
69 Write a method that undoes the effect of the preceding exercise. Code Completion Write a method that undoes the effect of the preceding exercise. CodeCheck Strings, Other String Operations
70 Given a string and two characters x and y (as strings of length 1), interchange all occurrences of x and y. Code Completion Given a string and two characters x and y (as strings of length 1), interchange all occurrences of x and... CodeCheck Strings, Other String Operations
71 Given a string s and a character c (as string of length 1), return a string with the characters surrounding the first occurrence of c reversed. Code Completion Given a string s and a character c (as string of length 1), return a string with the characters surrounding... CodeCheck Strings, Other String Operations
72 Given a string s and a character c (as string of length 1), return a string with the characters surrounding any occurrence of c reversed. Code Completion Given a string s and a character c (as string of length 1), return a string with the characters surrounding... CodeCheck Strings, Other String Operations
73 Given a string s, count how many times the ith character from the front equals the ith character from the back. Code Completion Given a string s, count how many times the ith character from the front equals the ith character from the... CodeCheck Strings, Comparing Strings
74 Given strings s and t, return a string in which all occurrences of t are removed from s. Code Completion Given strings s and t, return a string in which all occurrences of t are removed from s. CodeCheck Strings, Finding Substrings
75 Given strings s and t, return a string in which all characters in t are removed from s. Code Completion Given strings s and t, return a string in which all characters in t are removed from s. CodeCheck Strings, Finding Substrings
76 Given a string s, return the longest prefix that is repeated somewhere else in the string. Code Completion Given a string s, return the longest prefix that is repeated somewhere else in the string. CodeCheck Strings, Finding Substrings
77 Given a string s, find the longest prefix that also occurs at the end (so that s = p + t + p), and return t, the string without the beginning and the end. Code Completion Given a string s, find the longest prefix that also occurs at the end (so that s = p +... CodeCheck Strings, Finding Substrings
78 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
79 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
80 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
81 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
82 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
83 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
84 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
85 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
86 Given a string in which words are separated by spaces, return the longest word. Code Completion Given a string in which words are separated by spaces, return the longest word. CodeCheck Strings, Words
87 Given a string in which words are separated by spaces, return the first word that is duplicated (such as an accidental “this this”. Code Completion Given a string in which words are separated by spaces, return the first word that is duplicated (such as an... CodeCheck Strings, Words
88 Given a string in which words are separated by spaces, return the first word that is repeated somewhere in the string. Code Completion Given a string in which words are separated by spaces, return the first word that is repeated somewhere in the... CodeCheck Strings, Words
89 Given a string in which words are separated by spaces, and two words a and b, interchange all occurrences of a and b. Code Completion Given a string in which words are separated by spaces, and two words a and b, interchange all occurrences of... CodeCheck Strings, Words
90 Concatenating Characters of Two Strings Construct a program that has a function that receives two strings and returns a string formed from the given strings... PCEX strings
91 Concatenating Characters of Two Strings Construct a program that has a function that receives two strings and returns a string formed from the given strings... PCEX strings
92 Strings 6 Java PredictingFinalResult for demonstrating Strings 6 QuizJET conditionals, data types, string operations, strings, variables
93 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
94 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
95 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
96 Given a string in which words are separated by spaces, return the longest word. Code Completion Given a string in which words are separated by spaces, return the longest word. CodeCheck Strings, Words
97 Given a string in which words are separated by spaces, return the first word that is repeated somewhere in the string. Code Completion Given a string in which words are separated by spaces, return the first word that is repeated somewhere in the... CodeCheck Strings, Words
98 Given a string in which words are separated by spaces, and two words a and b, interchange all occurrences of a and b. Code Completion Given a string in which words are separated by spaces, and two words a and b, interchange all occurrences of... CodeCheck Strings, Words
99 Given a string in which words are separated by spaces, return the first word that is duplicated (such as an accidental “this this”). Code Completion Given a string in which words are separated by spaces, return the first word that is duplicated (such as an... CodeCheck Strings, Words
100 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
101 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
102 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
103 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
104 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
105 Given a string s and a character c, return a string with the characters surrounding any occurrence of c reversed. Code Completion Given a string s and a character c, return a string with the characters surrounding any occurrence of c reversed.... CodeCheck Strings, Other String Operations
106 Given a string s and an integer n, return a string in which each of the characters in s is repeated n times. Code Completion Given a string s and an integer n, return a string in which each of the characters in s is... CodeCheck Strings, Other String Operations
107 Given a string s, return the string with adjacent duplicates removed. Code Completion Given a string s, return the string with adjacent duplicates removed. For example, Mississippi yields Misisipi. CodeCheck Strings, Other String Operations
108 Given a string s and a string t, return a string in which all the characters of s that occur in t have been replaced by a _ sign. Code Completion Given a string s and a string t, return a string in which all the characters of s that occur... CodeCheck Strings, Other String Operations
109 Given a string, return a string composed first of all characters at even positions and then of all characters at odd positions. Code Completion Given a string, return a string composed first of all characters at even positions and then of all characters at... CodeCheck Strings, Other String Operations
110 Write a method that undoes the effect of the preceding exercise. Code Completion Write a method that undoes the effect of the preceding exercise. CodeCheck Strings, Other String Operations
111 Given a string s, return the first vowel that is doubled in the string. Code Completion Given a string s, return the first vowel that is doubled in the string. CodeCheck Strings, Other String Operations
112 Given a string s and a character c, return a string with the characters surrounding the first of c reversed. Code Completion Given a string s and a character c, return a string with the characters surrounding the first of c reversed.... CodeCheck Strings, Other String Operations
113 Given a string and two characters x and y, interchange all occurrences of x and y. Code Completion Given a string and two characters x and y, interchange all occurrences of x and y. CodeCheck Strings, Other String Operations
114 Given strings s and t, return a string in which all characters in t are removed from s. Code Completion Given strings s and t, return a string in which all characters in t are removed from s. CodeCheck Strings, Finding Substrings
115 Given a string s, return the longest prefix that is repeated somewhere else in the string. Code Completion Given a string s, return the longest prefix that is repeated somewhere else in the string. CodeCheck Strings, Finding Substrings
116 Given a string s, find the longest prefix that also occurs at the end (so that s = p + t + p), and return t, the string without the beginning and the end. Code Completion Given a string s, find the longest prefix that also occurs at the end (so that s = p +... CodeCheck Strings, Finding Substrings
117 Given strings s and t, return a string in which all occurrences of t are removed from s. Code Completion Given strings s and t, return a string in which all occurrences of t are removed from s. CodeCheck Strings, Finding Substrings
118 Given a string s, count how many times the ith character from the front equals the ith character from the back. Code Completion Given a string s, count how many times the ith character from the front equals the ith character from the... CodeCheck Strings, Comparing Strings
119 Printing Name Initials Construct a program that prints the initials of the name "John Smith". PCEX strings
120 Printing Name in APA Style Construct a program that prints the name "Alice Ann Darcy" following the APA style, i.e., last name first, followed by... PCEX strings
121 2-21_StringDemos Java BehaviorExample for demonstrating 2-21_StringDemos AnnEx strings
122 Strings (charAt) Java BehaviorExample for demonstrating Strings (charAt) AnnEx strings
123 Strings (equalsIgnoreCase) Java BehaviorExample for demonstrating Strings (equalsIgnoreCase) AnnEx strings
124 Strings (parse) Java BehaviorExample for demonstrating Strings (parse) AnnEx strings
125 Strings (replace) Java BehaviorExample for demonstrating Strings (replace) AnnEx strings
126 Substring Substring AnnEx strings
127 Strings Python CodeVisualization for demonstrating Strings JSVEE strings
128 Crear una función que verifique si una cadena es un palíndromo o no Construye una funcion que determine si la cadena dada como parametro es un palindromo. La funcion debe ser insensible a... jsParsons strings
129 Crear una función que verifique si una cadena es un palíndromo o no Construye una funcion que determine si la cadena dada como parametro es un palindromo. La funcion debe ser insensible a... jsParsons strings
130 Practicar el corte de cadenas (slicing) Construye un programa que primero imprima las cadenas "Py", "th", "o" y "n" jsParsons strings
131 Palindrome Python CodeVisualization for demonstrating Palindrome JSVEE strings
132 q_py_aliasing3_es Python PredictingFinalResult for demonstrating q_py_aliasing3_es QuizPET strings
133 q_py_concat_strings1_es Python PredictingFinalResult for demonstrating q_py_concat_strings1_es QuizPET strings
134 concatenate strings Python PredictingFinalResult for demonstrating concatenate strings QuizPET strings
135 q_py_output2_es Python PredictingFinalResult for demonstrating q_py_output2_es QuizPET strings
136 q_py_str_ref1_es Python PredictingFinalResult for demonstrating q_py_str_ref1_es QuizPET strings
137 q_py_substring1_es Python PredictingFinalResult for demonstrating q_py_substring1_es QuizPET strings
138 substring Python PredictingFinalResult for demonstrating substring QuizPET strings
139 Different Ways to Print Python BehaviorExample for demonstrating Different Ways to Print WebEx strings, variables
140 Strings Basics Python BehaviorExample for demonstrating Strings Basics WebEx strings
141 Sub-Strings Python BehaviorExample for demonstrating Sub-Strings WebEx strings
142 Adding Strings Python BehaviorExample for demonstrating Adding Strings WebEx strings
143 Escape Characters Python BehaviorExample for demonstrating Escape Characters WebEx strings
144 Given two strings s and t, return the first position where their characters differ, or -1 if they are identical. Code Completion Given two strings s and t, return the first position where their characters differ, or -1 if they are identical. CodeCheck Strings, Comparing Strings
145 Given two strings s and t, return the first position where their characters are the same, or -1 if there is no such position. Code Completion Given two strings s and t, return the first position where their characters are the same, or -1 if there... CodeCheck Strings, Comparing Strings
146 Given strings s and t, return a list of all positions in which t occurs in s. Code Completion Given strings s and t, return a list of all positions in which t occurs in s. CodeCheck Strings, Finding Substrings
147 Concatenating Strings and Numbers Construct a program that uses variables x, y, and z to print "Python was invented in 1989.". PCEX strings
148 Concatenating Strings and Numbers (Case 2) Construct a program that uses variables x, y, and z to print "x * 2 = 4". PCEX strings
149 Concatenating Strings and Numbers (Case 3) Construct a program that uses variables x, y, and z to print "10 + 20 = 30". PCEX strings
150 Given strings s and t, return a list of all positions in which t occurs in s. Code Completion Given strings s and t, return a list of all positions in which t occurs in s. CodeCheck Strings, Finding Substrings
151 Given two strings s and t, return the first position where their characters differ, or -1 if they are identical. Code Completion Given two strings s and t, return the first position where their characters differ, or -1 if they are identical. CodeCheck Strings, Comparing Strings
152 Given two strings s and t, return the first position where their characters are the same, or -1 if there is no such position. Code Completion Given two strings s and t, return the first position where their characters are the same, or -1 if there... CodeCheck Strings, Comparing Strings
153 Comparing Strings Java PredictingFinalResult for demonstrating Comparing Strings QuizJET boolean expressions, control flow, string operations
154 Comparing Strings Java PredictingFinalResult for demonstrating Comparing Strings QuizJET boolean expressions, conditionals, data types, string operations, strings, variables
155 Converting String to double Java PredictingFinalResult for demonstrating Converting String to double QuizJET primitive data types, strings
156 Converting String to int Java PredictingFinalResult for demonstrating Converting String to int QuizJET primitive data types, strings
157 Repeating Characters of a String Construct a program that has a function that receives a string and creates a new string that has each character... PCEX functions, strings
158 Repeating Characters of a String Construct a program that has a function that receives a string and creates a new string that has every other... PCEX functions, strings
159 Objects 4 (String) Java PredictingFinalResult for demonstrating Objects 4 (String) QuizJET classes, object, objects, strings
160 Creating a function that checks if the string is a palindrome or not. Construct a function which determines whether the string given as a paramter is a palindrome. The function should be case... jsParsons recursion, search algorithms, sorting algorithms, strings
161 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
162 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 functions, strings
163 Practicar métodos de cadenas Construye un programa que imprima una oracion a partir de una lista dada de palabras. jsParsons list, strings
164 q_py_output1_es Python PredictingFinalResult for demonstrating q_py_output1_es QuizPET operators, strings, variables
165 q_py_output3_es Python PredictingFinalResult for demonstrating q_py_output3_es QuizPET operators, strings, variables
166 Printing Full Name with Middle Initial Construct a program that prints the full name with middle initial for the name "John Phillip Smith". PCEX conditionals, data types, string, string operations, strings, variables
167 if-else 1 Java PredictingFinalResult for demonstrating if-else 1 QuizJET boolean expressions, conditionals, if-else statement, strings
168 String Concatenation (Case 2) Construct a program that prints the text "333", "63", and "36". PCEX
169 string_compare C++ BehaviorExample for demonstrating string_compare AnnEx
170 string_lib_func1 C++ BehaviorExample for demonstrating string_lib_func1 AnnEx
171 string_to_integer C++ BehaviorExample for demonstrating string_to_integer AnnEx
172 String Comparison String Comparison AnnEx if-else statement
173 String Operation String Operation AnnEx pattern matching
174 String Operation pt This is the portuguese version. AnnEx pattern matching
175 string reference Python PredictingFinalResult for demonstrating string reference QuizPET aliasing, value vs reference
176 String Folding Method activity Calculation, User Supplied Data Calculator for computing value of hashing a string by 'folding'. A better method than character value summing. OpenDSA Hash Function
177 Reversing a string with StringBuilder Code Completion StringBuilder is another class that provides methods to manipulate strings. Look in the StringBuilder class API for information on the... CodeCheck Objects
178 Strings (Concatenation) Java BehaviorExample for demonstrating Strings (Concatenation) AnnEx
179 find_string C++ BehaviorExample for demonstrating find_string AnnEx
180 DEPRECATED_String Comparison Java BehaviorExample for demonstrating DEPRECATED_String Comparison AnnEx
181 DEPRECATED_String Length Java BehaviorExample for demonstrating DEPRECATED_String Length AnnEx
182 Simple String Hash Calculator Calculation, User Supplied Data Calculator for computing value of hashing a string by simple summation of its characters' ASCII values. OpenDSA Hash Function
183 Recursive string reversal with helper method Code Completion Complete the static reverseHelper method so that the reverse method returns a String that is the reverse of the parameter... CodeCheck Recursion
184 Slanje stringova u funkcije C CodeConstruction&CompletionBundle for demonstrating Slanje stringova u funkcije PCEX
185 DEPRECATED_StringExample Java BehaviorExample for demonstrating DEPRECATED_StringExample AnnEx
186 c_funkcija_uporedi_stringove Napisati funkciju koja daje poredak dva stringa po leksikografskom redoslijedu, te vraća -1 ako je prvi string manji od drugog,... PCEX
187 Ubacivanje karaktera u string C CodeConstruction&CompletionBundle for demonstrating Ubacivanje karaktera u string PCEX
188 DEPRECATED_Creating String Java BehaviorExample for demonstrating DEPRECATED_Creating String AnnEx
189 list reference (string) Python PredictingFinalResult for demonstrating list reference (string) QuizPET aliasing, value vs reference
190 q_py_q_py_string_formatting1_es Python PredictingFinalResult for demonstrating q_py_q_py_string_formatting1_es QuizPET
191 q_py_q_py_string_formatting2_es Python PredictingFinalResult for demonstrating q_py_q_py_string_formatting2_es QuizPET
192 Given an input string, print the string with the first and last letter removed if they were equal, or the original string if they were not. Code Completion Given an input string, print the string with the first and last letter removed if they were equal, or the... CodeCheck Branches, Branches Without Functions
193 Given a list of strings and a string s, return the average length of all strings containing s. Code Completion Given a list of strings and a string s, return the average length of all strings containing s. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
194 PDA Exercise: String and Reverse Automata Construction Exercise User creates a Pushdowns Automata that accepts the langugage WcW^R. OpenDSA Pushdown Automata
195 Determining Whether a Given String is Derivable from Given Grammar Exercise: Alternate Calculation Exercise, Battery A collection of self-practice questions where users determine which strings can or cannot be derived from a given grammar: Alternate. OpenDSA Context-Free Grammar, Parse Tree
196 Determining Whether a Given String is Derivable from Given Grammar Exercise Question A question where users determine which strings can or cannot be derived from a given grammar. OpenDSA Context-Free Grammar, Parse Tree
197 Objects 5 (String) Java PredictingFinalResult for demonstrating Objects 5 (String) QuizJET classes, objects
198 Unique words in two string sets Code Completion Implement a method that receives two arrays of strings and determines which words are unique to each. CodeCheck Tree Structures
199 Find vowels in string with recursive helper method Code Completion Complete the MyMethods class so that the static vowels method returns a string of the vowels of the string parameter.... CodeCheck Recursion
200 Extract uppercase letters from string Code Completion Modify the static return upperCase method in the MyMethods class so that it returns a string of the upper case... CodeCheck Recursion
201 Read XML from string or file. Code Completion You are given a string that is either valid XML (when it starts with a '<' character) or the name... CodeCheck XML
202 Given an array of strings and a string s, return the average length of all strings containing s. Code Completion Given an array of strings and a string s, return the average length of all strings containing s. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
203 Given an input string, print the string with the first and last letter removed if they were equal, or the original string if they were not. Code Completion Given an input string, print the string with the first and last letter removed if they were equal, or the... CodeCheck Branches, Branches Without Functions
204 Brisanje dijelova stringa C CodeConstruction&CompletionBundle for demonstrating Brisanje dijelova stringa PCEX
205 Detektovanje granica unutar stringa C CodeConstruction&CompletionBundle for demonstrating Detektovanje granica unutar stringa PCEX
206 Mijenjanje karaktera u stringu C CodeConstruction&CompletionBundle for demonstrating Mijenjanje karaktera u stringu PCEX
207 c_trazenje_karaktera_u_stringu Napisati program koji provjerava da li se u datom stringu nalazi određeni karakter. PCEX
208 c_trazenje_karaktera_u_stringu_pokazivaci Napisati program koji pomoću pokazivačke aritmetike provjerava da li se u datom stringu nalazi određeni karakter. PCEX
209 c_spajanje_dva_stringa Napisati program koji dodaje sadržaj drugog stringa prvom stringu. PCEX
210 c_upis_stringa_u_datoteku Napisati program koji upisuje u datoteku sadržaj datog niza karaktera (varijable niz). Pisanje je potrebno uraditi karakter po karakter. PCEX
211 Variable type: Strings Python BehaviorExample for demonstrating Variable type: Strings WebEx operators, variables
212 Given three input strings, print all but the shortest one. Code Completion Given three input strings, print all but the shortest one. CodeCheck Branches, Branches Without Functions
213 Grammar Construction Exercise: Three Strings Grammar Construction Exercise Exercise where user must write the grammar for a given language. This language has three strings. OpenDSA Language, Grammar
214 Regular Expression Exercise: Strings Containing aba RegEx Writing Exercise User writes an regular expression for the language of strings containing aba. OpenDSA Regular Expression
215 Regular Expression Exercise: Strings of Multiples of 3 a's RegEx Writing Exercise User writes an regular expression for the language of strings that contain a multiple of 3 a's. OpenDSA Regular Expression
216 Regular Expression Exercise: Strings of a's Preceded or Followed by b RegEx Writing Exercise User writes an regular expression for the language of strings where every a is either proceeded or followed by b. OpenDSA Regular Expression
217 Regular Expression Exercise: Strings Containing bba in an Even Position RegEx Writing Exercise User writes an regular expression for the langugae of strings containing bba in an even position. OpenDSA Regular Expression
218 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
219 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
220 Regular Expression Exercise: Strings Containing No aa RegEx Writing Exercise User writes an regular expression for the langugae of strings containing no occurance of aa. OpenDSA Regular Expression
221 Regular Expression Exercise: Strings Containing One bbb RegEx Writing Exercise User writes an regular expression for the langugae of strings containing exactly one instance of bbb. OpenDSA Regular Expression
222 Given three input strings, print all but the shortest one. Code Completion Given three input strings, print all but the shortest one. CodeCheck Branches, Branches Without Functions
223 c_formatirane_datoteke_citanje_broja_i_stringa Neka svaki red u datoteci datoteka.txt sadrži jedan broj i jedan string, razdvojeni razmakom. Napisati program koji će ispisati na... PCEX
224 c_formatirane_datoteke_citanje_brojeva_i_stringa Data je datoteka knjige.txt koja u svakom redu sadrži sljedeće podatke razdvojene zarezom: cijena (realan broj), broj primjeraka (cijeli broj)... PCEX
225 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
226 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
227 Creating a function that checks if the string is a palindrome or not. Construct a program which determines whether the original string is a palindrome. The function should be case insensitive i.e. upper... jsParsons search algorithms
228 Creating a function that checks if the string is a palindrome or not. Construct a function which determines whether the string given as a paramter is a palindrome. The function should be case... jsParsons recursion, search algorithms
229 Construct a function which determines whether the string given as a paramter is a palindrome. Construct a function that checks if the string is a palindrome or not. The function should be case insensitive i.e.... jsParsons recursion
230 Turing Machine Exercise: Reverse a String Automata Construction Exercise User creates a Turing machine that, given string W, outputs WW^R. OpenDSA Turing Machine
231 Turing Machine to Copy a String Algorithm Visualization, Code Tracing Presentation Slideshow presenting the execution of a Turing machine that copies a string. OpenDSA Turing Machine
232 c_formatirane_datoteke_upis_broja_i_stringa U programu su data imena studenata. Potrebno je kreirati novu datoteku studenti.txt i u nju upisati za svakog studenta njegov... PCEX
233 Creating an Array of Numbers/Strings Construct a program that creates an array of first ten positive odd numbers. PCEX arrays
234 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
235 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
236 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
237 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
238 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
239 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
240 Static method for counting the number of times a character appears in a string Code Completion Supply a static method that counts the number of times that a specific character appears in a given string. For... CodeCheck Designing Classes
241 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
242 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
243 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
244 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
245 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
246 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
247 Simple Printing Printing strings and numbers AnnEx variables
248 Zipper words with helper method Code Completion Two strings of equal length can be interlaced like the teeth of a zipper to form a new word. For... CodeCheck Recursion
249 Zipper words Code Completion Two strings of equal length can be interlaced like the teeth of a zipper to form a new word. For... CodeCheck Recursion
250 (Recursion) Recursive is palindrome - CSEdPad This program checks a string is palindrome or not (first half of the string is the same as the second... AnnEx recursion
251 Map words to their lengths Code Completion Given an array of strings, create a tree map with each string as a key and its corresponding value the... CodeCheck Tree Structures
252 Map word lengths to words Code Completion Given an array of strings, create a tree map whose keys are the string lengths and whose values are the... CodeCheck Tree Structures
253 ZipperWordGenerator Code Completion You are given two strings of equal length. Your task is to generate all zipper words that can be produced... CodeCheck Recursion
254 Insertion Sort reads in Strings and uses insertion sort to print them out in sorted order PCEX
255 Characterizing Languages Exercise 2: Alternate Question Users characterize the strings in the language for a given grammar on palindromes. OpenDSA Language, Grammar
256 Determining Whether One is a Teenager (Case 1) Construct a program that receives a string that has the user name and age separated by a colon, and prints... PCEX exception handling, exceptions
257 c_zamjena_svakog_drugog_znaka Napisati program u kojem se u unešenom stringu zamijeni svaki drugi znak znakom '*'. Kandidati za zamjenu su znakovi koji... PCEX
258 Determinando Si Uno Es Adolescente (Caso 1) Construir un programa que reciba un string que tiene el nombre de usuario y la edad separados por dos puntos,... PCEX exceptions
259 c_funkcija_prebroji_znak Implementirati funkciju prebroji koja prima string i karakter, te vraća broj pojavljivanja tog karaktera u stringu. U glavnom programu omogućiti... PCEX
260 c_ubacivanje_rijeci Napisati program koji u datom stringu zamjenjuje svaku cifru 1 sa tekstom "jedan". Pretpostaviti da je primljeni string dovoljno velik... PCEX
261 c_funkcija_ukloni_razmake Napisati funkciju ukloni_razmake koja prima string i uklanja sve razmake u njemu. Funcija treba vratiti pokazivač na početak izmijenjenog stringa. PCEX
262 Huffman Coding Tree Slideshow: Decoding Algorithm Visualization Slideshow visualizing the process of decoding a string of Huffman Codes. OpenDSA Huffman Coding Tree
263 Determining Whether One is a Teenager Construct a program that receives a string that has the user name and age separated by a colon, and prints... PCEX exception handling, exceptions
264 Determining Whether One is a Teenager Construct a program that receives a string that has the user name and age separated by a colon, and prints... PCEX exception handling, exceptions, if-else statement
265 c_izbacivanje_svakog_ntog_karaktera Napisati program u kojem se iz datog stringa izbacuje svaki n-ti karakter. Brojanje karaktera počinje od 1 (prvi karakter se... PCEX
266 c_izbacivanje_nte_rijeci Napisati program koji iz datog stringa izbacuje n-tu riječ po redu. Brojanje počinje od 1 (prva riječ se treba obrisati... PCEX
267 c_brisanje_samoglasnika Napisati program koji iz datog stringa briše sve samoglasnike. PCEX
268 c_funkcija_nadji_rijec Napisati funkciju nadji_rijec koja prima dva stringa s1 i s2, pri čemu s1 predstavlja neku rečenicu, a s2 jednu riječ.... PCEX
269 c_funkcija_podstring Napisati funkciju podstring koja prima dva stringa s1 i s2, te provjerava da li je s2 podstring stringa s1. Ako... PCEX
270 CFG Exercise: a^mb^ia^n, i=m+n Grammar Construction Exercise User creates a CFG that generates strings in the language a^mb^ia^n, i=m+n. OpenDSA Context-Free Grammar
271 CFG Exercise: a^mb^ic^n, i less than 3 Grammar Construction Exercise User creates a CFG that generates strings in the language a^mb^ic^n, i < 3. OpenDSA Context-Free Grammar
272 CFG Exercise: Odd length Grammar Construction Exercise User creates a CFG that generates strings in the language a^nb^m where m - n is positive, odd. OpenDSA Context-Free Grammar
273 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
274 DFA Exercise: Length a Multiple of 3 with No aab Automata Construction Exercise User creates a DFA that recognizes strings with length a multiple of 3 and containing no instance of aab. OpenDSA Context-Free Grammar
275 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
276 Characterizing Languages Exercise 1: Alternate Question Exercise on how to characterize the strings in the language for a given grammar on a's and b's. Alternate version. OpenDSA Language, Grammar
277 Characterizing Languages Exercise 1 Question Exercise on how to characterize the strings in the language for a given grammar on a's and b's. OpenDSA Language, Grammar
278 Characterizing Languages Exercise 2 Question Exercise on how to characterize the strings in the language for a given grammar on palindromes. OpenDSA Language, Grammar
279 Context-Free Language Derivations Frameset Programmed Instruction Programmed Instruction Frameset discussing derivations of strings from Context-Free Grammars. OpenDSA Context-Free Language
280 Creating an Array of User Inputs Construct a program that creates an array of eight string values received from the user. PCEX arrays
281 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 exceptions
282 Creando un Diccionario de Pares Caracteres-Frecuencia Construye un programa que tenga una función que reciba un string del usuario y cree un diccionario que mapea cada... PCEX dictionaries
283 Creando un Diccionario de Pares Caracteres-Palabras Construye un programa que tenga una función que reciba un string y cree un diccionario que mapea cada carácter a... PCEX dictionaries
284 Determinando Si Uno Es Adolescente (Caso 2) Construye un programa que le pida al usuario que ingrese un string que contenga el nombre de usuario y la... PCEX exceptions
285 Letter frequency Construct a program which counts the frequency of each character in string 'Summer' and stores it in a dictionary. Finally,... jsParsons dictionaries
286 Turing Machine Exercise: Add an a Automata Construction Exercise User creates a Turing machine that adds an a to a string of a's. OpenDSA Turing Machine
287 Turing Machine Exercise: Erase abc Automata Construction Exercise User creates a Turing machine that erases a string of a's, b's, and c's. OpenDSA Turing Machine
288 Turing Machine Exercise: Keep abc Automata Construction Exercise User creates a Turing machine that moves over a string of a's, b's, and c's. OpenDSA Turing Machine
289 CFG Ambiguity 1 Exercise Question A question where users determine whether a given string is parsed ambiguously or not. OpenDSA Context-Free Grammar, Parse Tree
290 CFG Ambiguity 2 Exercise Question A question where users determine whether a given string is parsed ambiguously or not. OpenDSA Context-Free Grammar, Ambiguity
291 CFG Ambiguity 3 Exercise Question A question where users determine whether a given string is parsed ambiguously or not. OpenDSA Context-Free Grammar, Ambiguity
292 Context-Free Language Membership Problem Frameset Programmed Instruction Programmed Instruction Frameset discussing how to recognize if a given string is derivable from a given Context-Free Grammar. OpenDSA Context-Free Language
293 DFA Example Trace: How a DFA Traces Algorithm Visualization, Code Tracing Presentation Visualization of how a DFA would process an input string. OpenDSA Deterministic Finite Automata
294 Creating a Dictionary of Character-Count/Words Pairs Construct a program that has a function which receives a string from the user and creates a dictionary that maps... PCEX classes, data structures, dictionaries, dictionary, stacks
295 Creating an Array of User Inputs Construct a program that creates an array of eight string values received from the user. PCEX arrays
296 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
297 Creating a Dictionary of Character-Count/Words Pairs Construct a program that has a function which receives a string and creates a dictionary that maps each character to... PCEX dictionaries, dictionary
298 Determining Whether One is a Teenager Construct a program that asks the user to enter a string that has the user name and age separated by... PCEX exception handling, if-else statement
299 Updating an Element in a List (Case 3) Construct a program that initializes a list with four string values, changes the last element in the list, and finally,... PCEX list, value vs reference
300 Adding Values to an Empty List Construct a program that creates a list of eight string values received from the user. PCEX list
301 ClassSchedule Code Completion Implement a class ClassSchedule with a title (a string), days the class meets (a string), a start meeting time (a... CodeCheck Classes
302 Last n Characters Code Completion Write a method that gets the last n characters from a string. For example, last("Hello, World!", 5) should return the... CodeCheck Fundamental Data Types
303 Swap first and last name Code Completion Write a method getLastFirst whose parameter is a string containing a name such as "Harry Smith" and that returns a... CodeCheck Fundamental Data Types
304 Updating an Element in the Array (Case 3) Construct a program that initializes an array with four strings, changes the last element in the array, and finally, prints... PCEX arrays
305 c_brojanje_rijeci_alfanumericki Napisati program u kojem se omogućava unos nekog stringa, a zatim se ispisuje broj riječi koje se u njemu nalaze.... PCEX
306 c_brojanje_rijeci_razmaci Napisati program u kojem se omogućava unos nekog stringa s najviše 1000 karaktera, a zatim se ispisuje broj riječi koje... PCEX
307 c_brojanje_rijeci_s_velikim_pocetnim_slovom Napisati program u kojem se omogućava unos nekog stringa, a zatim se ispisuje broj njegovih riječi koje počinju velikim slovom.... PCEX
308 DFA Exercise: Both Even or Odd Automata Construction Exercise User creates a DFA that accepts the langugage of strings with both even a's and b's, or both odd a's... OpenDSA Deterministic Finite Automata
309 DFA Exercise: b Surrounds a Automata Construction Exercise User creates a DFA that accepts the langugage of strings where every a is surrounded by b's. OpenDSA Deterministic Finite Automata
310 DFA Exercise: Compliment of No 3 a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings of a's and b's that have 3 consecutive a's. OpenDSA Deterministic Finite Automata
311 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
312 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
313 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
314 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
315 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
316 DFA Exercise: No 3 a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings of a's and b's without 3 consecutive a's. OpenDSA Deterministic Finite Automata
317 DFA Exercise: No ba Automata Construction Exercise User creates a DFA that accepts the langugage of strings with a's and b's that does not end in ba. OpenDSA Deterministic Finite Automata
318 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
319 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
320 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
321 PDA Exercise: Twice as many a's as b's Automata Construction Exercise User creates a Pushdowns Automata that accepts the langugage of strings that have twice as many a's as b's. OpenDSA Pushdown Automata
322 Regular Grammar Exercise: aaab*ba Grammar Construction Exercise User writes an regular grammar for the language of strings matching the regular expression (aaab*ba)*. OpenDSA Regular Expression, Regular Grammar
323 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
324 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
325 Regular Grammar Exercise: bb*aaa* Grammar Construction Exercise User writes an regular grammar for the language of strings that meet this regular expression: bb*aaa* OpenDSA Regular Expression, Regular Grammar
326 Turing Machine Exercise: Decide Powers of 2 Automata Construction Exercise User creates a Turing machine that decides if strings of a's have a length that is a power of 2. OpenDSA Turing Machine
327 Jison Grammar Exercise 2 Calculation Exercise A question where users calculate the number of strings parsed successfully by a given grammar. OpenDSA Parser Generator
328 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
329 Updating an Element in the Array (Case 3) Construct a program that initializes an array with four strings, changes the last element in the array, and finally, prints... PCEX arrays
330 A slow sorting algorithm with two threads Code Completion Consider the following algorithm to sort an array of strings and remove duplicates, using two threads. CodeCheck Concurrency
331 Picture of Colored Boxes Code Completion Your task is to write a method that produces images from strings describing color values. CodeCheck Loops
332 (Inheritance) Physics teacher - CSEdPad Demonstrate the inheritance concept by creating a superclass Teacher with a private string features designation and collegeName and does function.... AnnEx inheritance
333 Letter frequency Construct a function which counts the frequency of each character in the string given as a parameter and returns a... jsParsons dictionaries
334 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
335 CFG Ambiguity 1 Exercise: Alternate Question, Battery A collection of self-practice questions where users determine whether a given string is parsed ambiguously or not. Alternate version. OpenDSA Context-Free Grammar, Ambiguity
336 CFG Ambiguity 2 Exercise: Alternate Question, Battery A second collection of self-practice questions where users determine whether a given string is parsed ambiguously or not. Alternate version. OpenDSA Context-Free Grammar, Ambiguity
337 CFG Ambiguity 3 Exercise: Alternate Question, Battery A third collection of self-practice questions where users determine whether a given string is parsed ambiguously or not. Alternate version. OpenDSA Context-Free Grammar, Ambiguity
338 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
339 Pumping Lemma Example: wwR Programmed Instruction, Proof Visualization Programmed Instruction slideshow showing the pumping lemma proof that the language consisting of a string w followed by the reverse... OpenDSA Non-Regular Language
340 Letter frequency map Code Completion Your task is to produce a map of the frequencies of all letters in a string. Letters are represented as... CodeCheck Tree Structures
341 Letter set Code Completion Your task is to produce a set of all letters in a string. Letters are represented as strings of length... CodeCheck Tree Structures
342 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
343 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
344 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
345 DFA Exercise: Complement No ba Automata Construction Exercise User creates a DFA that accepts the complement of the langugage of strings with a's and b's that does not... OpenDSA Deterministic Finite Automata
346 Turing Machine Exercise: Palindromes Automata Construction Exercise User creates a Turing machine that recognizes the language of palindromes on strings of a's and b's. OpenDSA Turing Machine
347 Annotating Jison Exercise Tracing Exercise A question where users determine the results of parsing a given collection of strings. OpenDSA Parser Generator
348 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
349 Uppercase international letters Code Completion Your task is to find out what happens when you call the toUpperCase method on strings that contain accented characters... CodeCheck Objects
350 Concatenate elements backwards Code Completion Your task is to concatenate all elements in a linked list of strings backwards, starting at the end of the... CodeCheck Linear Data Structures
351 Letter frequency (count) Code Completion Write a method that computes how often each letter A-Z or a-z occurs in a string. Don't distinguish between upper-... CodeCheck Arrays and Array Lists
352 c_upis_reda_na_kraj_datoteke Data je datoteka knjige.txt koja u svakom redu sadrži sljedeće podatke razdvojene zarezom: cijena (realan broj), broj primjeraka (cijeli broj)... PCEX
353 c_pretvaranje_broja_u_slovo Napisati program koji omogućava unos teksta sa maksimalno 1000 karaktera, a zatim u tekstu zamjenjuje sve brojeve sa slovom 'B'.... PCEX
354 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
355 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
356 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
357 Huffman Coding Proficiency Exercise Tracing Exercise Practice profiency exercise for Huffman Coding Trees. User must do actions like show the codes for a string, or vice... OpenDSA Huffman Coding Tree
358 Turing Machines Deciding vs. Accepting Frameset Programmed Instruction Slideshow presenting the distinction between a Turing Machine that decides a language (always halts with a decision) vs. one that... OpenDSA Turing Machine
359 JLinkedListUtil This LinkedListUtil class tests various usages of the LinkedList class. The single param is an array of string. You will... PCEX
360 JLinkedListUtil Challenge This LinkedListUtil class tests various usages of the LinkedList class. The single param is an array of string. You will... PCEX
361 Letter frequency (percentage) Code Completion Write a method that computes the frequency (as a percentage between 0.0 and 1.0) of each letter A-Z or a-z... CodeCheck Arrays and Array Lists
362 Recursive toString for array Code Completion Complete the static mkString method in the MyMethods class so that it formats an array of int values, with the... CodeCheck Recursion
363 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
364 Initials Code Completion Complete the initials method in the class below. For example, the call initials("Harry", "Joseph", "Hacker") should return the string "HJH". CodeCheck Fundamental Data Types
365 Using an Abstract Class Code Completion Light bulbs can be identified by type and can be measured by the amount of lumens produced per watt of... CodeCheck Inheritance
366 Check for Valid Answers Code Completion Consider a program that administers multiple-choice quizzes. The student needs to provide a response such as A or D. Your... CodeCheck Branches
367 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
368 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
369 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
370 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
371 Generic method for filling an array Code Completion The class below has a static method which sets all elements of an array to a value. The method is... CodeCheck Generic Types
372 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
373 Animal Class Hierarchy (Case 2) Suppose we have a class Animal and we want to extend it to produce class Dog. An animal has a... PCEX inheritance
374 Animal Class Hierarchy (Case 2) Suppose we have a class Animal and we want to extend it to produce class Dog. An animal has a... PCEX inheritance
375 371t3 hack3rs Code Completion The "elite hackers" like to make their text look cool by replacing characters with similar-looking symbols: e becomes 3, i... CodeCheck Objects
376 XML Map Labels Code Completion The latitude, longitude and place name are used to label a map. Implement a class with latitude and longitude as... CodeCheck Classes
377 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
378 Middle Letter Code Completion Complete the getMiddle method that gets the middle character from a word if the word length is odd, or the... CodeCheck Branches
379 Remove short words Code Completion Remove all short words (that is, words of length at most 3) from an array. Move down the remaining array... CodeCheck Arrays and Array Lists
380 XML Map Labels convert to decimal degrees Code Completion The latitude, longitude and place name are used to label a map. Implement a class with latitude and longitude as... CodeCheck Classes
381 Make stronger password Code Completion A stronger password can be created by replacing characters with similar-looking symbols: e becomes 3, i becomes 1, a becomes... CodeCheck Objects
382 Array-Based Queue Positions Slideshow Algorithm Visualization Slideshow presenting an initial design for storing a queue in an array. OpenDSA Array-Based Queue
383 List Element Data Slideshow Algorithm Visualization Slideshow discussing the tradeoffs for storing element values in link nodes vs. references to element values. OpenDSA List Element Implementation
384 List Element Type Slideshow Algorithm Visualization Slideshow illustrating the choice between storing non-homogeneous data types in list nodes and limiting to a homogenous data type. OpenDSA List Element Implementation