Click To Get Off-Campus Placement Jobs Info !!!

Programs Questions and Answers

    341 / 375

    Write a program to remove duplicates from a given string

    Input : qqq44inttttervvviiewwww


    Output : q4intervw

    View Answer |  Strings |  Practice Program | Add to Reading List To Reading List | Asked In |  Experience, Fresher
    Please Login to view the answer

    Tags:No Tags on this question yet!

    342 / 375

    Write an efficient program to remove characters from the first string which are present in the second string

    Input : str1 = q4interview.com mask = iewc


    Output : q4ntrv.om

    View Answer |  Strings |  Practice Program | Add to Reading List To Reading List | Asked In |  Experience, Fresher
    Please Login to view the answer

    Tags:No Tags on this question yet!

    343 / 375

    Write an efficient program to toggle all the bits of a number except k-th bit.

    Input : n = 4294967295, k = 0


    Output : 1

    View Answer |  Bitwise Operator |  Practice Program | Add to Reading List To Reading List | Asked In |  Experience, Fresher
    Please Login to view the answer

    Tags:No Tags on this question yet!

    344 / 375

    Write an efficient program to set the rightmost unset bit.

    Input : 10


    Output : 11

    View Answer |  Bitwise Operator |  Practice Program | Add to Reading List To Reading List | Asked In |  Experience, Fresher
    Please Login to view the answer

    Tags:No Tags on this question yet!

    345 / 375

    Write an efficient program to toggle the bits in the given range

    Input : Number n = 17 range l = 2, r = 5


    Output : 23

    View Answer |  Bitwise Operator |  Practice Program | Add to Reading List To Reading List | Asked In |  Experience, Fresher
    Please Login to view the answer

    Tags:No Tags on this question yet!

    346 / 375

    Find all the Word Greater or equals to 3 characters and for Every Character Write The ASCII of First and Last alphabet . Total it and Check Whether the Number is Prime or not. Example : ASCII of R : 82 ASCII of M : 77 ASCII of B : 66 ASCII of y : 121 Sum up All these and check Wether its Prime or Not ?

    Input : NA


    Output : NA

    View Answer |  Basics |  Practice Program | Add to Reading List To Reading List | Asked In |  Fresher
    Please Login to view the answer

    Tags:No Tags on this question yet!

    347 / 375

    WAP to Input a String either in C/JAVA . Find all the Words Less than 3 Characters. Example : Input : Ram is a Boy The Words Less than 3 Characters: is a The Word Greater or equals to 4 characters: Ram and Boy

    Input : Ram is a Boy


    Output : The Words Less than 3 Characters: is a The Word Greater or equals to 4 characters: Ram and Boy

    View Answer |  Strings |  Practice Program | Add to Reading List To Reading List | Asked In |  Fresher
    Please Login to view the answer

    Tags:No Tags on this question yet!

    348 / 375

    WAP in C/JAVA taking Input from a File and Counting the Number os Spaces , Capital Letters, Small Letters , Vowels , Special Characters etc.

    Input : NA


    Output : NA

    View Answer |  File |  Practice Program | Add to Reading List To Reading List | Asked In |  Fresher
    Please Login to view the answer

    Tags:No Tags on this question yet!

    349 / 375

    Write a program to find the nth number from series if the x is even and mth number from series, if the x is, was odd. Series: 1^m + x or 1^n + x

    Input : NA


    Output : NA

    Please Login to view the answer

    Tags:Accenture

    350 / 375

    Given a list of the array, sort the array in descending order with the frequency of elements.

    Input : [2, 5, 6, 2, 3, 5, 5]


    Output : [5, 5, 5, 2, 2, 6, 3]

    Please Login to view the answer

    Tags:Accenture