• 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

Frequently Asked TCS codevita interview questions and answers for freshers

TCS codevita 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 Question Topics

    Category (1)

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

(#M40038316) TCS CODEVITA QUESTION Programming Keep an EYE Keep an eye puzzle Keep an eye puzzle

Raj is a newbie to the programming and while learning the programming language he came to know the following rules:


· Each program must start with '{' and end with '}'.

· Each program must contain only one main function. Main function must start with '<' and end with '>'.

· A program may or may not contain user defined function(s). There is no limitation on the number of user defined functions in the program. User defined function must start with '(' and end with ')'.

· Loops are allowed only inside the functions (this function can be either main function or user defined function(s)). Every loop must start with '{' and end with '}'.

· User defined function(s) are not allowed to be defined inside main function or other user defined function(s).

· Nested loops are allowed.

· Instructions can be anywhere inside the program.

· Number of instructions inside any user defined function must not be more than 100.



If any of the above conditions is not satisfied, then the program will generate compilation errors. Today Raj has written a few programs, but he is not sure about the correctness of the programs. Your task is to help him to find out whether his program will compile without any errors or not.




Input Format:

First line starts with T, number of test cases. Each test case will contain a single line L, where L is a program written by Raj.



Output Format:

Print "No Compilation Errors" if there are no compilation errors, else print "Compilation Errors".



Constraints:


1<=T<=100


L is a text and can be composed of any of the characters {, }, (, ), <, >and P, where P will represents the instruction.


L, comprised of characters mentioned above should be single spaced delimited.


Number of characters in the text, |L| < = 10000




Sample Input and Output

SNo. Input Output
1
3
{ < > ( P ) }
{ < { } > ( { } ) )
{ ( { } ) }


No Compilation Errors
Compilation Errors
Compilation Errors


Asked In TCS codevita shiv pujan (11 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (50)   (27) 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

"Numbers have life ; they are not just symbols on paper"

Sushmitha

If I were again beginning my studies, I would follow the advice of Plato and start with mathematics.

Galileo Galilei

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