Question 1 of 10
What is "net" + "work"?
- A. worknet
- B. net+work
- C. network
- D. net work
What is "net" + "work"?
Inclusive 1-based substring: what is substring("PYTHON", 2, 5)?
substring(s, start, end) returns the characters from index start through index end, inclusive, with the first character at index 1. What is displayed?
x ← "AIR"
y ← "PLANE"
DISPLAY (x + substring(y, 1, 5))
substring(s, start, end) returns the characters from index start through index end, inclusive, with the first character at index 1. A coder extracts a character with substring(full, 6, 6) from full ← "Ada M Lee". What character is returned?
| Index | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|
| Char | A | d | a | M | L | e | e |
Which expression produces "YES"?
Trace with inclusive substring.
w ← "BOARD"
DISPLAY (substring(w, 1, 1) + substring(w, 4, 5))
For text ← "QUIZ", which call returns "UI"?
substring(s, start, end) returns the characters from index start through index end, inclusive, with the first character at index 1. What is "A" + "B" + "C" + substring("DEF", 1, 1)?
If first ← "data" and second ← "base", what is first + second?
A form builds initials. Given name ← "Kai" and using inclusive substring, which expression yields "K" + "i"?