Note 1

Take Note:

Take a note while surfing.





Note With Ink

Give your Note a Colorful Tag.




Easy to Access

Stay on same information and in Sync wherever you are.

Note 2

Take Note:

Organize your information,It may take Shape.





Think With Ink

Differ your Content by Color.




Easy to Access

Easy to pull up your content from anywhere anytime.

Note 3

Take Note:

Don't Let information to miss,Because it take shape





Note With Ink

Simple an Easy Way to take a note.




Easy to Access

Get the same in next visit.

Programs Questions and Answers



  • 1. Write a program to convert uppercase to lower case and vice versa of a given string or sentence

    Input : WhAT iS YouR nAme?,   Output : wHat Is yOUr NaME?

  • Answer In: C++   JAVA   PHP  
     
    import java.util.*;
    import java.lang.*;
    import java.io.*;


    class LowerToUpper
    {
        public static void main (String[] args)
        {
            int i,len;
            char ch;
            Scanner sc=new Scanner(System.in);
            System.out.println("Enter String: ");
            String str=sc.nextLine();
            len=str.length();
            for(i=0;i<len;i++)
            {
                ch=str.charAt(i);
                if(Character.isUpperCase(ch))
                    System.out.print(Character.toLowerCase(ch));
                else
                    System.out.print(Character.toUpperCase(ch));
            }
        }
    }
    Tags:

    IBM Global Edge 

  • 2. Write a program to find the number is power of 2 or not.

    Input : ,   Output :

  • Answer In: C   C++  
     
    #include<stdio.h>
    #include<iostream>
    using namespace std;
    #define bool int
    /* Function to check if x is power of 2*/
    bool isPowerOfTwo (int x)
    {
    /* First x in the below expression is for the case when x is 0 */
    return x && (!(x&(x-1)));
    }
    /*Driver program to test above function*/
    int main()
    {
    isPowerOfTwo(31)?cout<<"Yes\n": cout<<"No\n";
    isPowerOfTwo(16)? cout<<"Yes\n": cout<<"No\n";
    return 0;
    }
    Tags:

    PEOL Global Edge 

  • 3. Write a program to delete the node in single circular linklist. when address of any node is given.

    Input : ,   Output :

    View Answer View Answer | Program Topics Basics | Write Your Program Discuss in Forum | Add to Reading List To Reading List | Tag to companies Asked In | Level Experience, Fresher
  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 4. Write a program to sort an array into two halves, one half ascending and second half descending. 

    Input : ,   Output :

    View Answer View Answer | Program Topics Array | Write Your Program Discuss in Forum | Add to Reading List To Reading List | Tag to companies Asked In | Level Experience, Fresher
  • Answer In:
     No Discussion on this question yet!
    Tags:

    TCS Global Edge 

  • 5. Define a macro which gives greatest number out of 3 numbers.

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 6. Write a function to implement strcasecmp().

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 7. Write recursive function for reversing a string.

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 8. Write a function to implement strncpy using recursion.

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 9. Write a function to check the divisibility by 8.

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 10. Write a logic for Matrix multiplication.

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge