Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Practice Tech Mahindra Essay Topics

341 / 404

Write a program to remove duplicates from a given string

Input : qqq44inttttervvviiewwww

Output :

|  Strings | | | |  Experience, Fresher

Tags:No Tags on this question yet!

342 / 404

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

Input : str1 = q4interview.com

Output :

|  Strings | | | |  Experience, Fresher

Tags:No Tags on this question yet!

343 / 404

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

Input : n = 4294967295, k = 0

Output :

|  Bitwise Operator | | | |  Experience, Fresher

Tags:No Tags on this question yet!

344 / 404

Write an efficient program to set the rightmost unset bit.

Input : 10

Output :

|  Bitwise Operator | | | |  Experience, Fresher

Tags:No Tags on this question yet!

345 / 404

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

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

Output :

|  Bitwise Operator | | | |  Experience, Fresher

Tags:No Tags on this question yet!

346 / 404

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

|  Basics | | | |  Fresher

Tags:No Tags on this question yet!

347 / 404

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 :

|  Strings | | | |  Fresher

Tags:No Tags on this question yet!

348 / 404

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

|  File | | | |  Fresher

Tags:No Tags on this question yet!

349 / 404

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

|  Basics | | | |  Fresher

Tags:Accenture

350 / 404

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 :

|  Array | | | |  Fresher

Tags:Accenture

+ Contribute Programming Qs.

Baig
1