Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

SIKSHAPATH

SIKSHAPATH Logo SIKSHAPATH Logo

SIKSHAPATH Navigation

  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
  • About
    1. Asked: November 18, 2021In: Programming Language

      Given two strings first and second, consider occurrences in some text of the form “first second third”, where second comes immediately after first, and third comes

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 18, 2021 at 12:19 am

      class Solution { public: vector findOcurrences(string text, string first, string second) { vector res, words; istringstream iss(text); string t; while (iss >> t) { int n = words.size(); if (n >= 2 && words.back() == second && words[n - 2] == first) res.push_back(t); words.puRead more

      
      class Solution {
      public:
          vector findOcurrences(string text, string first, string second) {
              vector res, words;
              istringstream iss(text);
              string t;
              while (iss >> t) {
                  int n = words.size();
                  if (n >= 2 && words.back() == second && words[n - 2] == first) res.push_back(t);
                  words.push_back(t);
              }
              return res;
          }
      };
      
      See less
        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    2. Asked: November 17, 2021In: Data Structure

      Explain the terms infix expression, prefix expression, and postfix expression. Convert the following infix expressions to their postfix equivalents: (A) …

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 18, 2021 at 12:03 am

      Infix: The typical mathematical form of expression that we encounter generally is known as infix notation. In infix form, an operator is written in between two operands. For example:  An expression in the form of A * ( B + C ) / D is in infix form.     Prefix: In prefix expression, an operRead more

      Infix: The typical mathematical form of expression that we encounter generally is known as infix notation. In infix form, an operator is written in between two operands.

      For example: 

      An expression in the form of A * ( B + C ) / D is in infix form.

       

       

      Prefix: In prefix expression, an operator is written before its operands. This notation is also known as “Polish notation”.

      For example, The above expression can be written in the prefix form as / * A + B C D.

       

      Postfix: In postfix expression, an operator is written after its operands. This notation is also known as “Reverse Polish notation”.

      For example, The above expression can be written in the postfix form as A B C + * D

       

      THE FULL ANSWER IS IN THE ATTACHMENT:

       

      See less
      Attachment

        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    3. Asked: November 17, 2021In: Programming Language

      Create a class Doctor with attributes id, name, age and department. Initialize values through parameterized constructor. If age of Doctor is not in between 25 and 65 then generate user-defined exception “AgeNotWithinRangeException”. If name contains numbers or special symbols raise exception “NameNotValidException”.

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 17, 2021 at 11:43 pm

      System.out.println("Enter Id , Name , Age , Department"); r=Integer.parseInt(br.readLine()); n=br.readLine(); a=Integer.parseInt(br.readLine()); c=br.readLine()..................... TAP ON ATTACHMENT FOR YOUR ANSWER:

      System.out.println("Enter Id , Name , Age , Department");
      
      r=Integer.parseInt(br.readLine());
      n=br.readLine();
      a=Integer.parseInt(br.readLine());
      c=br.readLine().....................
      
      TAP ON ATTACHMENT FOR YOUR ANSWER:
      See less
      Attachment

        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    4. Asked: November 17, 2021In: DBMS

      Compare the deferred-modification and immediate-modification version of the log-based recovery schemes, in terms of ease of implementation and overhead cost.

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 17, 2021 at 10:57 pm

      The deferred-modification technique ensures transaction atomicity by recording all database modifications in the log, but deferring all write operations of a transaction until the transaction partially commits (i.e., once the final action of the transaction has been executed). Then the information iRead more

      The deferred-modification technique ensures transaction atomicity by recording all database modifications in the log, but deferring all write operations of a transaction until the transaction partially commits (i.e., once the final action of the transaction has been executed). Then the information in the logs is used to execute the deferred writes. If the system crashes or if the transaction aborts, then the information in the logs is ignored.

       

       

      The immediate-update technique allows database modifications to be output to the database while the transaction is still in the active state. These modifications are called uncommitted modifications. In the event of a crash or transaction failure, the system must use the old-value field of the log records to restore the modified data items.

      See less
        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    5. Asked: November 17, 2021In: Data Structure

      Write a PL/SQL program to check whether a date falls on weekend i.e. SATURDAY or SUNDAY.

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 17, 2021 at 10:43 pm

      get_day VARCHAR2(15); BEGIN get_day := RTRIM(TO_CHAR(dt1, 'DAY')); IF get_day IN ('SATURDAY', 'SUNDAY') THEN . . . .. .  . . .. .   THE ANSWER IS IN THE ATTACHMENT:

      get_day VARCHAR2(15);

      BEGIN

      get_day := RTRIM(TO_CHAR(dt1, ‘DAY’));

      IF get_day IN (‘SATURDAY’, ‘SUNDAY’) THEN

      . . . .. .  . . .. .

       

      THE ANSWER IS IN THE ATTACHMENT:

      See less
      Attachment

        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    6. Asked: November 16, 2021In: DBMS

      Create a package which contains function to ask the user to enter the student’s marks and determine the GRADE according to the following criteria. >90 A >80AND 70AND 60 AND<70 D <60 F

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 16, 2021 at 11:30 pm

      https://sikshapath.in/question/create-a-package-which-contains-function-to-ask-the-user-to-enter-the-students-marks-and-determine-the-grade-according-to-the-following-criteria-90-a-80and-70and-60-and70-d-6/

      Create a package which contains function to ask the user to enter the student’s marks and determine the GRADE according to the following criteria. >90 A >80AND 70AND 60 AND<70 D <60 F

      See less
        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    1 … 115 116 117 118 119 … 122

    Sidebar

    store ads

    Stats

    • Questions 1k
    • Answers 1k
    • Posts 149
    • Best Answers 89
    • This Free AI Tool Translates Entire Books in Minute !
    • AI News: 🎬 Hollywood’s AI Studios, 🎓 OpenAI’s Latest Gift to Educators, 🚚 Class8 Bags $22M, 🧠 Google Gemini’s Memory Upgrade
    • AI NEWS: Legal Action Against OpenAI, $16M Paid, & Elon Musk’s Praise from Investor 🤖💰📑 | AI Boosts Cloud Seeding for Water Security 🌱💧
    • AI News: 🎬AI Video Tool Scam Exposed🤯, 🛰️ AI-Powered Drones to Ukraine 😱, Google’s $20M AI Push, Sam Altman Joins SF’s Leadership Team
    • AI News: 🤝 Biden Meets Xi on AI Talks, 💡 Xavier Niel’s Advice for Europe, ♻️ Hong Kong’s Smart Bin Revolution, 🚀 AI x Huawei

    Explore

    • Recent Questions
    • Questions For You
    • Answers With Time
    • Most Visited
    • New Questions
    • Recent Questions With Time

    Footer

    SIKSHAPATH

    Helpful Links

    • Contact
    • Disclaimer
    • Privacy Policy Notice
    • TERMS OF USE
    • FAQs
    • Refund/Cancellation Policy
    • Delivery Policy for Sikshapath

    Follow Us

    © 2021-24 Sikshapath. All Rights Reserved