Criado por Andrew Lewis
quase 4 anos atrás
|
||
Questão | Responda |
In pseudocode, how would you display the first character in the string variable "str"? | Display str[0] |
In pseudocode, how would you display the last character in the string variable "str"? | Display str[length(str) - 1] |
In pseudocode, how would you use the insert function to change "berry" to "blackberry" for the string variable "str"? | insert(str, 0, "black") |
In pseudocode, how would you use the delete function to change "Redmond" to "Red" for the string variable "str"? | delete(str, 3, 6) |
What will the following pseudocode result in? Declare String name = "Sall" Set name [4] = "y" | An error will occur. |
Using a subscript to access a specific character of a string is known as _____. | Subscript Notation |
Quer criar seus próprios Flashcards gratuitos com GoConqr? Saiba mais.