• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • TCS Codevita 13 august 2014

Frequently Asked TCS Codevita 13 august 2014 interview questions and answers for freshers

TCS Codevita 13 august 2014 Select Another Category Select Another Topic

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 261
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70

TCS Codevita 13 august 2014 Question Topics

    Category (1)

Keep an EYE (0)
Solved Question (0) UnSolved Question (1)
Pages: 11
Advertisements

(#M40038314) TCS CODEVITA 13 AUGU QUESTION TCS codevita programming task Keep an EYE Keep an eye puzzle Keep an eye puzzle

this can be asked in any language
Q)In the Byteland country a string "S" is said to super ascii string if and only if count of each character in the string is equal to its ascii value.

In the Byteland country ascii code of 'a' is 1, 'b' is 2 ...'z' is 26.

Your task is to find out whether the given string is a super ascii string or not.


Input Format:

First line contains number of test cases T, followed by T lines, each containing a string "S".



Output Format:

For each test case print "Yes" if the String "S" is super ascii, else print "No"



Constraints:


1<=T<=100


1<=|S|<=400, S will contains only lower case alphabets ('a'-'z').




Sample Input and Output

SNo. Input Output
1
2
bba
scca


Yes
No





Explanation:

In case 1, viz. String "bba" -
The count of character 'b' is 2. Ascii value of 'b' is also 2.
The count of character 'a' is 1. Ascii value of 'a' is also 1.
Hence string "bba" is super ascii.

Asked In TCS Codevita 13 august 2014 shiv pujan (11 years ago)
Unsolved Read Solution (12)
Is this Puzzle helpful?   (39)   (12) Submit Your Solution
Keep an EYE (0)
Solved Question (0) UnSolved Question (1)
Pages: 11
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

Everything in nature adheres to the cone, the cylinder and the cube.

Paul Cezanne

Each and every person in this world are having "constant mind"...DIFFERENTIATE others mind and INTEGRATE urs.MATHEMATICS SIMPLY MAKES YOU UNSTOPPABLE !!!

VIBHAV ANAND

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 5 years ago

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+Engineers
  • 759K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com