TCS
Flexiware Solutions Interview Questions and Answers
Q1. Write a code on Fibonacci series,
Code for Fibonacci series
Use recursion or iteration to generate the series
Start with 0 and 1, then add the previous two numbers to get the next
Can be optimized using memoization or dynamic programming
Q2. differents between c language and java?
C is a procedural language while Java is an object-oriented language.
C is compiled while Java is interpreted.
C has pointers while Java does not.
Java has automatic garbage collection while C does not.
Java has platform independence while C does not.
Java has built-in exception handling while C does not.
Q3. Write Palindrome programme. Print Star pattern.
Answer to a Software Developer fresher's interview question on writing a Palindrome program and printing a star pattern.
To write a Palindrome program, reverse the given string and compare it with the original string.
To print a star pattern, use nested loops to print the required number of stars in each row.
For example, to print a right triangle of stars with 5 rows, use two nested loops, one for rows and one for columns.
Q4. 1) Opps Concept 2) Java vs Phython
Opps concept and comparison between Java and Python
OOPs concept is a programming paradigm that focuses on objects and their interactions
Java is a statically typed language with strong OOPs support and is used for enterprise applications
Python is a dynamically typed language with OOPs support and is used for scripting and data analysis
Java has a larger community and is more suitable for large-scale projects
Python has a simpler syntax and is more suitable for small-scale projec...read more
Q5. Top 5 booming technologies,
Top 5 booming technologies are AI, Blockchain, Cloud Computing, IoT, and Cybersecurity.
AI - Artificial Intelligence is being used in various industries like healthcare, finance, and retail.
Blockchain - It is used for secure and transparent transactions in industries like finance and supply chain management.
Cloud Computing - It provides on-demand access to computing resources and is used by businesses of all sizes.
IoT - Internet of Things is used in industries like manufacturi...read more
Q6. 3) Hashtable vs Hashmap
Hashtable and Hashmap are both implementations of Map interface in Java.
Hashtable is synchronized while Hashmap is not.
Hashtable does not allow null keys or values while Hashmap allows one null key and any number of null values.
Hashtable is slower than Hashmap due to synchronization.
Hashtable is thread-safe while Hashmap is not.
Hashtable is considered legacy while Hashmap is the preferred implementation.
More about working at TCS
Top HR Questions asked in Flexiware Solutions
Reviews
Interviews
Salaries
Users/Month