CSP - Section 4
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
||||
---|---|---|---|---|---|
Append | concatenate
🗑
|
||||
Capitalize | returns a new string with the first character capitalized
🗑
|
||||
Concatenate | add two strings together using the + symbol
🗑
|
||||
Function | a sub-procedure that returns a value and can take input
🗑
|
||||
Immutable | does not change; example strings
🗑
|
||||
Index | a number associated with the position of a character in a string
🗑
|
||||
Object | can have behavior (things it can do). Ex. strings and turtles
🗑
|
||||
String | a sequence of characters inside a pair of single, double, or triple quotes
🗑
|
||||
Substring | part of a string
🗑
|
||||
find | takes a string as input and returns the index of the first occurence of that string in the string the function is called on
🗑
|
||||
len | takes a string as input and returns the number of characters in the string including any spaces. For example len("Hi there") w
🗑
|
||||
lower | returns a new string with only lowercase letters
🗑
|
||||
slice | uses [start] or [start:end] which will return a substring of the current string starting at the given start position and if an end position is given ending at the character before the end position
🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
Created by:
shoemaker
Popular Computers sets