Skip to main content

Posts

Showing posts from November, 2022

Part 2 : TCS DCA python coding questions

TCS wings1 DCA python coding TCS elevate wings1 coding questions This post contains only coding questions asked in TCS digital wings1 or tcs elevate wings1 exam. If anyone want coding answer of these questions please comment me or reach me through email provided. Given a string str which consists of only 3 letters representing the color,(H) Hue, (S) Saturation, (L) Lightness, called HSL colors. The task is to count the occurrence of ordered triplet “H, S, L” in a given string and give this count as the output. This question was asked in April 21 Digital Capababilty Assessment Examples: A) Input HHSL Output 2 Explanation : There are two triplets of RGB in the given string: H at index O, S at index 2 and Lat index 3 forms one triplet of HSL. H at index 1, S at index 2 and Lat index 3 forms the second triplet of HSL. B) Input:   SHL Output: 0 Explanation : No triplets exists. In this 3 Palindrome, Given an input string word, split the string into exactly 3 palindromic substrings. Work...

Part 1 : TCS DCA python coding questions

TCS wings1 DCA python coding TCS elevate wings1 coding questions This post contains only coding questions asked in TCS digital wings1 or tcs elevate wings1 exam. If anyone want coding answer of these questions please comment me or reach me through email provided. Find how many Sexy Prime Numbers in a given range k and p.  Sexy prime means the prime numbers that differ from each other by 6. Where difference between two sexy prime numbers is 6. Constraint: 2 <=p<k<= 1000,000,000. Sample Input: 4  40 Output: 7 Explanation: [5,11] [7,13] [11,17] [13,19] [17,23]  [23,29] [31,37] Problem Description -: Given two non-negative integers n1 and n2, where n1 For example: Suppose n1=11 and n2=15. There is the number 11, which has repeated digits, but 12, 13, 14 and 15 have no repeated digits. So, the output is 4. Example1: Input: 11 — Vlaue of n1 15 — value of n2 Output: 4 Example 2: Input: 101 — value of n1 200 — value of n2 Output: 72 Consider the string S1 = 321 All char...

C Interview Questions

If you’re preparing for C programming interview questions, then you are at the right site. Here are the best common interview questions on c to help you get going for that job interview. Who Invented C Language?  C was originally developed at Bell Labs by Dennis Ritchie between 1972 and 1973 to construct utilities running on Unix. What is the objective of the main () function in C? main() function is starting point of program execution. When program execution start the control of the program is directed towards the main() function. It is mandatory that every C language program has a main () function. What is difference between variables and constant? The value assigned to variable can be changed in-between execution but value assigned to constant remains changed during entire program. Can a C program compile without the main() function ? Yes, a C program can be compiled even without adding the main() function in a program but, it will not execute without the main() function. What a...

TCS Interview Experience

TCS interview experience. TCS Interview Questions and Answers for Freshers  TCS Interview Experience By Ganesh Jondhalekar is selected for the Ninja package in TCS. Name: Ganesh Jondhalekar Time: 8 December 2020 9:30 Am. Type: Technical+ HR + Personal Technical Questions- Three interviewers joined the meeting ,one mam and two sir and start the interview. Introduction. 2. Explain projects done. I explain my third-year project “Attendance System Using Face Recognition“ 3. Technologies used in the project. 4. Your role in the project. I told them I worked as a Backend Developer. So They ask me that you worked as a backend developer so you know SQL. I said Yes. Then they ask me to follow two commands on SQL. 5. SQL query to print the highest salary from emp table. I answer this command in the chatbox properly. 6. SQL query to print second highest salary from emp table. I get stuck and wait for 10 seconds. I did not answer that query properly but I told them I can use a nested query her...