What is the missing word in the following code?
Over120Error(Exception):
pass
O Error
O def
O class
O Exception

Answers

Answer 1

Answer:

class

Explanation:

Answer 2

Answer:

class

Explanation:


Related Questions

Write a program that takes paragraph from the user and prints all unique words in that paragraph in c++

Answers

Answer:

We strongly recommend you to minimize your browser and try this yourself first

The idea is to use map in STL to keep track of words already occurred.

// C++ program to print unique words in a string

#include <bits/stdc++.h>

using namespace std;

  

// Prints unique words in a file

void printUniquedWords(char filename[])

{

    // Open a file stream

    fstream fs(filename);

  

    // Create a map to store count of all words

    map<string, int> mp;

  

    // Keep reading words while there are words to read

    string word;

    while (fs >> word)

    {

        // If this is first occurrence of word

        if (!mp.count(word))

            mp.insert(make_pair(word, 1));

        else

            mp[word]++;

    }

  

    fs.close();

  

    // Traverse map and print all words whose count

    //is 1

    for (map<string, int> :: iterator p = mp.begin();

         p != mp.end(); p++)

    {

        if (p->second == 1)

            cout << p->first << endl;

    }

}

  

// Driver program

int main()

{

    // Create a file for testing and write something in it

    char filename[] = "test.txt";

    ofstream fs(filename, ios::trunc);

    fs << "geeks for geeks quiz code geeks practice for qa";

    fs.close();

  

    printUniquedWords(filename);

    return 0;

}

Output:

code practice qa quiz

Thanks to Utkarsh for suggesting above code.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above

Rated as one of the most sought after skills in the industry, own the basics of coding with our C++ STL Course and master the very concepts by intense problem-solving.

Explanation:

please mark me as brainliest thank you merry Christmas

What is the output of the first and second print statements?

import java.util.ArrayList;

public class addExample
{
public static void main(String[] args) {
ArrayList num1 = new ArrayList ();
ArrayList num2 = new ArrayList ();
num1.add(2);
num1.add(4);

num2.add(10);
num2.add(20);

System.out.println(num1.get(0)+1);
System.out.println(num1.get(1)+ num2.get(0));

}
}

The output of the first print statement is (blank)

and the output of the second statement is (blank).

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

 When you will run the given code of java in this question. You will get an error and nothing will get printed in the response of the result. Because, in Java, you can't add the two array objects. The reason behind it, java does not support operator overloading. You cannot use the plus operator to add two arrays in Java . It will give you the compile-time error.

There is a method to add two arrays in the Java program is to iterate over them and add individual elements and store them into a new array. This also becomes complex, if you having arrays of different sizes.  To go through this method, you have to build a method that will through an illegal exception in case of a mismatch in the sizes of the arrays.

As in the given code, when you execute the first print statement:

System.out.println(num1.get(0)+1);

It will produce error because first type is object and second is int. So, you cannot add object and int value.

When you will execute the given second print statement:

System.out.println(num1.get(1)+ num2.get(0));

it will also produce error, because you cannot add object in Java using + binary operator because in this statement first and second type are both objects.  

which platforms they thinks is better to use for sharing their content,ideas,and stories?

social networking site ? Blogging site?​

Answers

I personally believe a blogging site is better to use to share content, ideas, and stories because the main point of a blogging site is to show your ideas with other people but I also believe social networking site is good too because there’s a lot of people who use social media to share and show what they believe.
Hope this helps
Other Questions
(PLEASE HELP ASAP)Graph: y < 1/3x + 1/2 ((3 + 5)2.7) - 11 - 42 HELP ME THIS IS DUE RN. ILL give 50 points and brainiest. Help me with this homerwork I asked Sam nicely to gimmie the book he borrowed last week, but he brushed me off.Which revised sentence uses standard English?I asked Sam very politely if he could hand over the book he supposedly borrowed, but he blew me off.I asked Sam nicely if he could give me the book he borrowed last week, but he refused.I asked Sam if he ever thought he might be able to kindly get that book back to me quick, but he shined me on.I asked Sam really super cool like to get me the book he borrowed last week, but he snubbed me.PLZ HELP ME :C Patty is a recovering addict. After several years of clean time, Patty completed a 16 week course in addictioncounseling. She now helps fellow addicts at a residential treatment center. Patty is BEST described as a:A) CounselorB) Paraprofessional C) Psychiatric Social WorkerD) Clinical Social Worker Sup, yall better listen to this fire song called Up On The Housetop (Trap Remix) It has 2 Christmas Trees on the front cover I WILL GIVE 20 POINTS PLUS IM GIVING BRAINLIEST!!!!!!! Find the interest : I=Prt; Principal= $3,500, rate, 5%, time, 6 year The diagram below shows the energy conversions of the Krebs cycle, which is part of cellular respiration. The U-shapedarrows that show changes for NAD, FAD, and ADP molecules represent energy conversions. From each glucosemolecule, two acetyl-CoA molecules are made for the Krebs cycle.juNADHNADAcetyl-CoAFADH2CCCOAFADCOA4-carbonCitric AcidcompoundCCCCADPCO2ATP5-carbonNADHcompoundNAD+NADNADHCO2CCCCCco&How many energy conversions occur when both acetyl-CoA molecules go through the kerbs cycle A. 5B. 6C. 10D. 12 please help me with this question.... In Harry Potter, what is the name of The Weasley's house? (2,-5) (origin) slope A rectangular place mat has a length of 3/5 meter and a width of 3/10 meter. What is the area of the place mat? 70 pointsWIll mark as branliest with heart CoyotesPocket gophersSpidersRabbitsSnakesInsect-eatingbirdsGrasses,ShrubsHawksFrogsLiceInsectsSeed-eatingDeer birdsWhich statement regarding organisms in this food web is correct?oThere would be more snakes than pocket gophers,0There would be more coyotes than rabbits.There would be more insects than insect eating birds.There would be more hawks than seed eating birds. PLEASE help a girl out! :)What is the actual area of the room?37 ft2?150 ft250 ft275 ft2 Please help me ????????? Which factor helps determine weather patterns across South America?A. forest canopiesB. elevationC. river basinsD. global warming PLZ HELP FAST (20 points I think)