1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mazyrski [523]
4 years ago
12

Which among the following choices is correct based on the two statements listed below? Statement 1: When the lexical analyzer sc

ans ‘int’ and ‘intvalue’, it is not able to decide whether the int leads to a keyword or an identifier. Statement 2: Longest Match Rule. a. Statement 1 is an assertion, Statement 2 is the reason. b. There is no such Statement 2. c. This is a function of the Syntax Analyzer. d. Statement 1 is an assertion, Statement 2 is the solution. e. This is not a function of the Lexical Analyzer.
Computers and Technology
1 answer:
elena-14-01-66 [18.8K]4 years ago
8 0

Answer: d. Statement 1 is an assertion, Statement 2 is the solution.

Explanation:

The Longest Match rule is a rule which states that whichever lexeme is scanned should always be determined on the support of the longest match available among all the tokens which is accessible. The lexical analyzer used should also follow the rules arrangement, where a reserved word, e.g., a keyword, in a language is given priority over the user input.

You might be interested in
When humans remove vegetation from an area, the water cycle is MOST directly affected in which way?
GaryK [48]
<span>The correct answer is letter C. evaporation in the area will decrease. When humans remove vegetation from an area, the water cycle is MOST directly affected on the evaporation side. The evaporation in that area will decrease because there'll be no more plants that will hasten the evaporation process. This will create an abnormality in the water cycle.</span>
3 0
3 years ago
Read 2 more answers
Which is the following is a valid email id<br><br>​
Minchanka [31]

Answer:

sorry there are no options available

6 0
3 years ago
? Lodo con nutrientes que fertiliza las cosechas¿​
meriva

Answer:

I don't understand sorry

4 0
3 years ago
Given an array of integers a, your task is to calculate the digits that occur the most number of times in the array. Return the
Annette [7]

Answer:

I hope this should be helpful

Explanation:

In Javascript

function solution(numbers) {

   let hashmap = {};

   let ans = [];

   for (let i = 0; i < numbers.length; i++) {

     // check wether it double or single digit

     if (hasOneDigit(numbers[i])) {

       // check if it exists in hashmap

       // if exist add number of occurence

       // check if the occurence is greater than 2

       // add  if > 2 to the answer list

       if (numbers[i] in hashmap) {

         hashmap[numbers[i]] = hashmap[numbers[i]] + 1;

 

         if (hashmap[numbers[i]] = 2 && !ans.includes(numbers[i])) {

           // max_freq = hashmap[numbers[i]]

           ans.push(numbers[i]);

         }

         // else if (max_freq == hashmap[numbers[i]])

         //     ans = min(ans, numbers[i])

       } else {

         hashmap[numbers[i]] = 1;

       }

     } else {

       // change number to string

       number = numbers[i].toString();

       // loop to iterate every single element

       for (let j = 0; j < number.length; j += 1) {

 

         if (+number.charAt(j) in hashmap) {

           hashmap[+number.charAt(j)] = hashmap[+number.charAt(j)] + 1;

 

           if (hashmap[+number.charAt(j)] = 2 && !ans.includes(+number.charAt(j))) {

     

             ans.push(+number.charAt(j));

           }

       

         } else {

             hashmap[+number.charAt(j)] = 1

         }

       }

     }

   }

     return ans.sort();

 }

 

 function hasOneDigit(val) {

   return String(Math.abs(val)).charAt(0) == val;

 }

 console.log(solution([2, 1,42,44, 2, 3,32,7777, 3 , -1]));

 

3 0
2 years ago
A security analyst is performing a BIA. The analyst notes that in a disaster, failover systems must be up and running within 30
arlik [135]

Answer:

D.  A maximum RPO of 60 minutes

Explanation:

Note that an option is not included in this list of options.

The complete list of options is:

A. A maximum MTTR of 30 minutes

B. A maximum MTBF of 30 minutes

C. A maximum RTO of 60 minutes

D.  A maximum RPO of 60 minutes

E. An SLA guarantee of 60 minutes

The Recovery Point Objective tells how old a backup file must be before it can be  recovered by a system after failure.

Since the data in the failover systems described in this question must be backup and recovered after the failure, it will be important to include the Recovery Point Objective (RPO) in the Business Continuity Plan.

Since the failover systems must use back up data that is no older than one hour, the backup of the system data must be done at intervals of 60 minutes or less. Meaning that the maximum RPO is 60 minutes.

Note that RPO is more critical than RTO in data backup

6 0
3 years ago
Other questions:
  • Janeal spends her day looking at the stock and bond markets and evaluating how the portfolios of the businesses she serves will
    5·1 answer
  • What should you do when an error message pops up on the screen?
    9·1 answer
  • Explain the steps you take to complete an Internet search. Do you use a particular search engine every time or do you alternate?
    6·1 answer
  • What allows files containing text, programs, graphics, numerical data and so on to be downloaded off or uploaded onto a network?
    13·1 answer
  • An algorithm is a ________. a. simple thinking strategy for making decisions quickly and efficiently. b. testing method involvin
    6·1 answer
  • What is your favourite video game??​
    5·2 answers
  • Which of the following is considered a benefit of using simulation programs? a. They allow users to experience potentially dange
    10·1 answer
  • Security attacks are classified as either passive or aggressive. True or false
    12·1 answer
  • 5. You have been putting off writing a research paper, and now it's due in two days. You have gathered
    6·1 answer
  • How will you create a blog using Wordpress?​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!