Vigyata.AI
Is this your channel?

TCS Coding Questions Asked on 1st April | TCS NQT Actual Coding Solutions | TCS NQT 2026

4.4K views· 59 likes· 9:04· Apr 3, 2026

🛍️ Products Mentioned (1)

#TCS #tcsnqt TCS NQT Mock Test + Sheet (COUPOUN : TCSNQT) : https://knacademycourses.graphy.com/courses/TCS-NQT-Mock-test--677fe71c30656545a7e88eaa TCS Preparation Playlist : https://www.youtube.com/playlist?list=PLGFjgYQtw1UhARTmPa_gnnn_n9Z-j3FlC #TCS #nqt TCS NQT Verbal Ability TCS NQT Results 2026 TCS Ninja Trainings TCS Ninja Bond Service Agreement TCS Employee Life Life at TCS 2025 TCS Projects TCS Coding questions TCS NQT 2026 tcs nqt 2025 coding questions with answers tcs nqt preparation 2026 tcs nqt coding questions tcs nqt coding with solution tcs nqt coding previous year

About This Video

हाय एवरीवन, इस वीडियो में मैंने 1st April वाले TCS NQT के actual coding questions को detail में discuss किया है और दोनों का solution वहीं पर solve करके दिखाया है। पहला question दिखने में बहुत simple था—minimum required charge (जैसे 5%) दिया है और एक array में अलग-अलग laptops की battery percentage है; आपको बस count करना है कितने laptops का charge n से greater है। Logic तो straight है (arr[i] > n पर count++), लेकिन असली challenge input था, क्योंकि array string format में दिया था (space-separated). यहीं पर बहुत सारे बच्चे अटक गए, और मैंने वही exact तरीका बताया जो मैं पहले भी videos और sheet में cover कर चुका हूँ—Python (split + map int), Java (nextLine + split + parseInt), और C++ (getline + stringstream). दूसरा question iterations वाला था: initially n लोग happy हैं, हर iteration में 70% happy sad बनते हैं, 30% happy रहते हैं; और sad में से 50% sad रहते हैं, 50% happy बनते हैं। मैंने step-by-step समझाया कि 4 iterations तक कैसे newHappy = 0.3*happy + 0.5*sad और newSad = 0.7*happy + 0.5*sad update करके final happy/sad निकालते हैं। Takeaway यही है: TCS NQT में कई बार logic से ज्यादा input handling और clean simulation matter करती है, इसलिए practice tests और similar pattern वाली sheet आपकी preparation में काफी help करती है।

Frequently Asked Questions

🎬 More from KN ACADEMY