subject

Consider the following code: Token LexicalAnalyzer: : GetToken()
input . GetChar(c);
switch (c) {
case '=':
input . GetChar(c);
if (c = = '=') {
tmp . token_type = EQEQ;
} else if (c = = ' <') {
tmp . token_type = EQLT; }
else if (c = = '>') {
tmp . token_type = EQGT; } else
tmp . token_type = ERROR;
return tmp;
default:
tmp . token_type = ERROR;
return tmp;
1. In the code, input. GetChar() gets the next character from standard input. If GetToken() is called four times, which of the following inputs will return a token whose type is ERROR?
A.
A. =<
B. ===>
C. <==
D. <=
2. If GetToken() is called four times on input <==<==, how many times is ERROR returned?
a. 0
b. 1
c. 2
d. 3

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
List the five on-board vehicle subsystems
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
What is the most important for you to choose before you build a network?
Answers: 1
You know the right answer?
Consider the following code: Token LexicalAnalyzer: : GetToken()
input . GetChar(c);
...
Questions
question
Mathematics, 14.05.2021 01:00
question
Mathematics, 14.05.2021 01:00
Questions on the website: 13722363