Computer Science, asked by tannishadeb, 5 months ago

4 points
7) What will variable A represent after execution of the following procedure on the "Paragraph Words"
dataset?
Step 1. Arrange all cards in a single pile called Pile 1
Step 2. Maintain two variables A, B and initialize them to 0
Step 3. If Pile 1 is empty then stop the iteration
Step 4. Read the top card in Pile 1
Step 5. If part of speech is "Verb" then increment B
Step 6. If the word does not end with a full stop then execute step 9
Step Z. If the word ends with a full stop and B is equal to 1 then increment A
Step 8. Reset the variable B to O
Step 9. Move the current card to another pile called Pile 2 and repeat from step 3
Total number of verbs in the dataset
Total number of sentences with only one verb in it
Total number of sentences in the dataset
Total number of sentences with at least one verb in it
None of the above​

Answers

Answered by ridersr9
18

Answer:

option 2

Explanation:

Answered by ShivamK8
0

Answer: Total number of sentences with only one verb in it

Option-B

Explanation:

  • Initialize A  and B to 0,A=0,B=0.
  • A increments only when it encounters the word with a full stop given the condition that B was already 1 and not when it encounters a verb with a full stop. Nowhere do the steps mention a verb with a full stop.
  • It says if the word doesn't have a full stop skip to the 9th step.
  • Input and output refer to the communication between a computer programme and its user. As input, the user provides something to the programme, and as output, the software provides something to the user.
  • As a result, a software programme is always created to generate some sort of output, which might be textual or graphical in the form if the output is displayed on a screen.

Go through the following link to know more about  "Pile" question:

https://brainly.in/question/26740470?referrer=searchResults

https://brainly.in/question/6708745?referrer=searchResults

#SPJ3

Similar questions