Prog string --- Introduction ---

This modules gathers 50 interactive programming exercises, variable and configurable, on the processing of strings. The software can ask you to produce an algorithm to count or modify the string according to various formulas. It will then compile your submitted code and test it on randomly generated strings for the validity of the code. The easiest case is here.

Transform: Modif-batch I

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Transform: Modif-batch II

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Transform: Modif-batch by word

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Characterize: Given letter

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count: Given letter

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Insert: Double characters

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: Designated character

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: Head of the string

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: Marker I

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: Marker II

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: Middle of the string

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: Parity of position

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: End of the string

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: Type of characters

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: Word of référence

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: Repetitions

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count: Sum of digits

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Insert: Fixed character

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Insert: To the beginning

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Insert: To marker I

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Insert: To marker II

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Insert: To the middle

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Insert: To the end

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count: Length

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Transform: Marker I

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Transform: Marker II

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count: Position of marker I

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count: Position of marker II

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: Spacing characters

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Reorder: Parity of position

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Reorder: Type of characters

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Transform: Positional modif.

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Characterize: Repeated characters

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count: Repeated characters

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Reorder: Order reversal

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Reorder: Shift

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


No title

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Reorder: Swap by marker I

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Reorder: Swap by marker II

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Transform: By table

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Cut: Trim

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count: Type of characters I

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count: Type of characters II

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count: Characters per word

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Transform: Upper or lower case

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count: Nombre de words

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count: Number of words II

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Characterize: Min-Max of words

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:

It gives , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Transform: Case exchange

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Transform: Exchange of letters

a function which takes a string of characters , and [ ]


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the following string of characters:
Original string
Your result
The good result

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:

The most recent version


This page is not in its usual appearance because WIMS is unable to recognize your web browser.

In order to access WIMS services, you need a browser supporting forms. In order to test the browser you are using, please type the word wims here: and press ``Enter''.

Please take note that WIMS pages are interactively generated; they are not ordinary HTML files. They must be used interactively ONLINE. It is useless for you to gather them through a robot program.

Description: programming exercises on string processing. interactive exercises, online calculators and plotters, mathematical recreation and games

Keywords: interactive mathematics, interactive math, server side interactivity, algorithmics, programming, programming, c, pascal, perl, characters, string, letters, digits