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: December 3, 2021In: Other

      What is Directx? Is it related to Microsoft?

      ADMIN 2
      ADMIN 2
      Added an answer on December 3, 2021 at 4:24 pm

      DirectX is a collection of APIs(Application Programming Interfaces). It is used to handle tasks related to multimedia components, graphics, videos in Windows-based software. It is a Microsoft framework property. It is also known as Microsoft DirectX.

      DirectX is a collection of APIs(Application Programming Interfaces). It is used to handle tasks related to multimedia components, graphics, videos in Windows-based software. It is a Microsoft framework property. It is also known as Microsoft DirectX.

      See less
        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    2. Asked: November 30, 2021In: Programming Language

      Create a class called Person with a member variable name. Save it in a file called Person.java Create a class …

      ADMIN 2
      ADMIN 2
      Added an answer on November 30, 2021 at 1:13 pm

      YOUR ANSWER : JUST TAP ON ATTACHMENT LINK:

      YOUR ANSWER :

      JUST TAP ON ATTACHMENT LINK:

      See less
      Attachment

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

      ABC International School wants to computerize students details. The school maintains a database of students in Oracle. The student table …

      ADMIN 2
      ADMIN 2
      Added an answer on November 30, 2021 at 12:59 pm

      import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) throws SQLExcepRead more

      import java.sql.Connection;
      import java.sql.DriverManager;
      import java.sql.PreparedStatement;
      import java.sql.SQLException;
      import java.util.ArrayList;
      import java.util.Arrays;
      import java.util.List;
      import java.util.Scanner;
      
      public class Main {
      
      public static void main(String[] args) throws SQLException {
      Scanner sc = new Scanner(System.in);
      Connection conn = null;
      PreparedStatement pstmt = null;
      
      try {
      Class.forName("oracle.jdbc.driver.OracleDriver");
      conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521", "scott", "tiger");
      } catch (ClassNotFoundException e) {
      e.printStackTrace();
      } catch (SQLException e) {
      e.printStackTrace();
      }
      
      int rollno = 0;
      do {
      System.out.print("Enter rollno: ");
      String rollstr = sc.nextLine();
      
      try {
      rollno = Integer.parseInt(rollstr);
      if (String.valueOf(rollno).length() != 4) rollno = 0;
      } catch (Exception e) {}
      } while (rollno == 0);
      
      String studentName = "";
      boolean lowercasefound;
      do {
      System.out.print("Enter name: ");
      studentName = sc.nextLine();
      
      lowercasefound = false;
      for (int i = 0; i < studentName.length(); i++) {
      if (Character.isLowerCase(studentName.charAt(i))) {
      lowercasefound = true;
      break;
      }
      }
      
      } while (studentName.length() > 20 || lowercasefound);
      
      String standard = "";
      String[] standards = {"I", "II", "III", "IV", "V", "Vi", "VII", "VIII", "IX", "X"};
      List<String> list = new ArrayList<>(Arrays.asList(standards));
      do {
      System.out.print("Enter standard: ");
      standard = sc.nextLine();
      } while (!list.contains(standard));
      
      
      
      // inserting data into db
      String sql = "INSERT INTO stdnt VALUES(?, ?, ?)";
      try {
      pstmt = conn.prepareStatement(sql);
      pstmt.setInt(1, rollno);
      pstmt.setString(2, studentName);
      pstmt.setString(3, standard);
      
      pstmt.executeQuery();
      System.out.println("Student added successfully");
      } catch (SQLException e) {
      e.printStackTrace();
      System.out.println("Error");
      pstmt.close();
      conn.close();
      } 
      
      sc.close();
      }
      
      }
      See less
        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    4. Asked: November 30, 2021In: Programming Language

      A integer array is given as input. find the difference between each element. Return the index of the largest element …

      ADMIN 2
      ADMIN 2
      Added an answer on November 30, 2021 at 12:48 pm

      package com.example;// Java program to find Maximum difference // between two elements such that larger // element appears after the smaller number import java.io.*; class GFG { /* The function assumes that there are at least two elements in array. The function returns a negative value if the arrayRead more

      package com.example;// Java program to find Maximum difference
      // between two elements such that larger
      // element appears after the smaller number
      
      import java.io.*;
      
      class GFG {
          /* The function assumes that there are
          at least two elements in array. The
          function returns a negative value if the
          array is sorted in decreasing order and
          returns 0 if elements are equal */
          static int maxDiff(int arr[], int n)
          {
              // Initialize Result
              int maxDiff = -1;
      
              // Initialize max element from right side
              int maxRight = arr[n-1];
      
              for (int i = n-2; i >= 0; i--)
              {
                  if (arr[i] > maxRight)
                      maxRight = arr[i];
                  else
                  {
                      int diff = maxRight - arr[i];
                      if (diff > maxDiff)
                      {
                          maxDiff = diff;
                      }
                  }
              }
              return maxDiff;
          }
      
          /* Driver program to test above function */
          public static void main (String[] args) {
              int arr[] = {2,3,4,2,3};
              int n = arr.length;
      
      // Function calling
              System.out.println ("Maximum difference is " + maxDiff(arr, n));
          }
      //This code is contributed by Tushil..
      }
      See less
      Attachment

        • -1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    5. Asked: April 29, 2023In: Programming Language

      How to Swap Two Numbers in C without Using Third Variable: 3 Simple Methods

      ADMIN 2
      Best Answer
      ADMIN 2
      Added an answer on November 13, 2021 at 2:09 am
      This answer was edited.

      C program using + and - operators to swap two numbers without using a third variable #include<stdio.h> int main() { int a = 10, b = 40; printf("Before swap: a = %d ; b = %d\n", a, b); a = a + b; // a = 50 b = a - b; // b = 10 a = a - b; // a = 40 printf("After swap: a = %d ; b = %d\n", a, b);Read more

      C program using + and – operators to swap two numbers without using a third variable

      #include<stdio.h>
      int main()
      {
      int a = 10, b = 40;
      printf("Before swap: a = %d ; b = %d\n", a, b);
      a = a + b; // a = 50
      b = a - b; // b = 10
      a = a - b; // a = 40
      printf("After swap: a = %d ; b = %d\n", a, b);
      return 0;
      }
      See less
        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    6. Asked: November 9, 2021In: Mathematics

      Find the missing entry in the following table x 0 1 2 3 4 yx 1 3 9 – 81

      ADMIN 2
      ADMIN 2
      Added an answer on November 9, 2021 at 8:25 pm

      ANSWER-

      ANSWER-

      Find the missing entry in the following table x 0 1 2 3 4 yx 1 3 9 – 81 Answer

      See less
        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    1 … 33 34 35

    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