Consider the following code:
Token LexicalAnalyzer: : GetToken()
input . GetChar(c);
...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 08.01.2021 17:40 kayla2945
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](/tpl/images/cats/User.png)
Answers: 3
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 11:00
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 19:50
Which feature is selected to practice and save the timing of a presentation
Answers: 1
You know the right answer?
Questions
![question](/tpl/images/cats/istoriya.png)
History, 23.09.2019 07:30
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 23.09.2019 07:30
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 23.09.2019 07:30
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 23.09.2019 07:30
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/en.png)
English, 23.09.2019 07:30
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 23.09.2019 07:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 23.09.2019 07:30
![question](/tpl/images/cats/mat.png)
Mathematics, 23.09.2019 07:30
![question](/tpl/images/cats/istoriya.png)
History, 23.09.2019 07:30