Tata Consultancy Services — TCQ free nqt compiler problem

On 22 November, 2024 TCS nqt Phase 2 held at Ahmedabad at iON Digital Zone, Bopal. we are given total 6 section, including 4 section of mcq and non-mcq type question and remaining were of coding.

In the first coding question, we are ask to take one integer from user and check if the integer is less than 0 then print invalid temp or if less than 15 then print Its cold else print its not cold. Its just a simple if else coding question asked. I have solve it there with in 3-5 min only and the program got compiler in first try. But the testcase got failed so I try to change the code for the same but still the test case failing there. I tried it at my own PC after the exam. it successfully compiled and executed.

Even though the output by the code written by me and the expected output is same as shown in the compiler window, still compiler fails to pass the testcase, not a single test case pass. And the second coding question easily got compiled and executed.

I`m attaching the code I tried at my PC to show the output. Its the same code I have written in exam.

I Hope TCS will find a way to help me.
+1 photos
Was this information helpful?
No (0)
Yes (0)
Tata Consultancy Services customer support has been notified about the posted complaint.
 
Add a Comment

Post your Comment

    I want to submit Complaint Positive Review Neutral Comment
    code
    By clicking Submit you agree to our Terms of Use
    Submit
    Tata Consultancy Services
    customer care contacts
    Customer satisfaction rating Customer satisfaction rating is a complex algorithm that helps our users determine how good a company is at responding and resolving complaints by granting from 1 to 5 stars for each complaint and then ultimately combining them all for an overall score.
    Read more
    19%
    Complaints
    1287
    Pending
    0
    Resolved
    241
    Tata Consultancy Services Phone
    +91 79 6607 1100
    +91 80 6724 7777
    +91 80 6724 6666
    Tata Consultancy Services Address
    No 1, Near Nadigar Sangam, Habibullah Road, T Nagar, Chennai, Tamil Nadu, India - 600017
    View all Tata Consultancy Services contact information