TCS
30+ Gold Plus Glass Interview Questions and Answers
Given a string ‘STR’ which consists of uppercase and lowercase characters and spaces. Count the number of consonants in the string.
A consonant is an English alphabet character that ...read more
Q2. 1.what is cloud computing?? 2. How many types of clouds? 3. What is Virtualization? 4. Difference between Saas and Paas? 5. What are data types? 6. What is Artificial Intelligence? 7. Write a program to print p...
read moreAnswers to technical questions related to cloud computing, programming, and software development.
Cloud computing is the delivery of computing services over the internet.
There are three types of clouds: public, private, and hybrid.
Virtualization is the creation of a virtual version of something, such as an operating system, server, storage device, or network resource.
SaaS (Software as a Service) provides software applications over the internet, while PaaS (Platform as a Servic...read more
Q3. We use multiple inheritance in C++. Does java supports it? If not then what java used instead of multiple inheritance?
Java does not support multiple inheritance. It uses interfaces to achieve similar functionality.
Java supports single inheritance, where a class can only inherit from one superclass.
To achieve multiple inheritance-like behavior, Java uses interfaces.
Interfaces allow a class to implement multiple interfaces, providing access to multiple sets of methods and constants.
Unlike classes, interfaces cannot be instantiated and can only be implemented by classes.
Example: class A impleme...read more
Q4. What is oops What is dbms Types of computer network Tell me about yourself Tell me about project What is constructor What is switch Real life example of inheritance, data abstraction
Questions related to computer science and programming concepts.
OOPs stands for Object-Oriented Programming which is a programming paradigm based on the concept of objects.
DBMS stands for Database Management System which is a software system used to manage and organize data.
Types of computer networks include LAN, WAN, MAN, PAN, and CAN.
Tell about yourself by highlighting your education, skills, and work experience.
Explain your project by discussing its purpose, methodology, an...read more
What are the crud operations in DBMS?
What are the major types of operating system?
Q7. why is main function required in c program
Main function is required in C program as it is the entry point of the program.
Main function is where the program starts executing.
It contains the code that initializes variables, calls functions, and performs other necessary tasks.
Without main function, the program would not know where to start executing.
Main function must return an integer value to indicate the status of the program execution.
Example: int main() { // code here }
Q8. How much you give yourself in java out of 10?
I would rate myself 8 out of 10 in Java.
I have a strong understanding of core Java concepts such as OOP, data structures, and algorithms.
I have experience in developing Java applications using frameworks like Spring and Hibernate.
I have also worked on projects involving Java-based technologies like JSP, Servlets, and JDBC.
However, there is always room for improvement and I am constantly learning and exploring new features and updates in Java.
Overall, I am confident in my Java...read more
Q9. what is f in printf()? What is conio.h we use in c?
In printf(), f is a format specifier used to display floating-point numbers. conio.h is a header file used for console input and output functions in C.
f in printf() is a format specifier used to display floating-point numbers, like %f for float and %lf for double.
conio.h is a header file used for console input and output functions in C, like getch() and clrscr().
Q10. Types of joins in SQL. What is primary key and foreign key.
Types of joins in SQL and definition of primary key and foreign key.
Types of joins in SQL include inner join, left join, right join, and full outer join.
Primary key is a unique identifier for a record in a table.
Foreign key is a field in a table that refers to the primary key of another table.
Joins are used to combine data from two or more tables based on a related column.
Examples of joins include joining a customer table with an orders table based on a customer ID field.
Anot...read more
Q11. Why java doesn't use pointer?
Java doesn't use pointers for safety and security reasons.
Java uses references instead of pointers to avoid memory leaks and null pointer exceptions.
Pointers can be misused and cause security vulnerabilities.
Java's garbage collector manages memory automatically, reducing the need for pointers.
Java's object-oriented design allows for better encapsulation and abstraction without pointers.
Q12. Write a code in c++ with the help of array to perform sorting.
Code in C++ using array to perform sorting of strings.
Use std::sort() function from algorithm library to sort the array of strings.
Define an array of strings, populate it with strings, and then call std::sort() to sort the array.
Example: std::string arr[] = {"banana", "apple", "cherry"}; std::sort(arr, arr+3);
Q13. function to find the string length in c
The strlen() function is used to find the length of a string in C.
Include the header file
Use the strlen() function with the string as argument
The function returns the length of the string excluding the null character
Q14. How will you install unix in your PC ?
To install Unix on a PC, you need to create a bootable USB or CD and follow the installation process.
Download the Unix distribution you want to install
Create a bootable USB or CD using software like Rufus or UNetbootin
Insert the bootable USB or CD into your PC and restart it
Follow the installation process, selecting the appropriate options
Once the installation is complete, you can boot into Unix by selecting it from the boot menu
Q15. How does google earth work?
Google Earth uses satellite imagery, aerial photography, and GIS data to create a virtual globe that users can explore.
Google Earth collects high-resolution satellite imagery and aerial photography from various sources.
It uses GIS (Geographic Information System) data to overlay maps, terrain, and other geographic information.
Users can navigate the virtual globe by zooming in and out, panning, and tilting to view different locations.
Google Earth also offers features like Stree...read more
Q16. What is the structure of C programming?
C programming has a structured approach with functions, variables, and control structures.
C programs are divided into functions that perform specific tasks.
Variables are declared and defined within the functions.
Control structures like if-else, loops, and switch-case are used to control the flow of the program.
Functions can be called from other functions to reuse code.
C programs have a main() function that is the entry point of the program.
Q17. Write a code in c++ to find out the prime numbers.
Code in C++ to find prime numbers
Use a loop to iterate through numbers and check if each number is prime
A prime number is only divisible by 1 and itself
Start checking from 2 onwards, as 0 and 1 are not prime numbers
Optimize by checking up to square root of the number
Q18. What is list which type of list
A list is a collection of items in a specific order.
Lists can be ordered or unordered
Examples of list types include arrays, linked lists, and queues
Q19. What is tuple which type of tuple
A tuple is a data structure that stores a fixed number of elements of different data types.
Tuples are immutable, meaning their values cannot be changed once they are assigned.
They are ordered collections, meaning the order of elements is preserved.
Example: ('John', 25, 'Male') is a tuple with three elements representing a person's name, age, and gender.
Q20. What are the difference tuple and list
Tuple is immutable and fixed in size, while list is mutable and can change in size.
Tuple is defined using parentheses, while list is defined using square brackets.
Tuple elements cannot be changed, while list elements can be modified.
Tuple is faster than list for iteration and accessing elements.
Example: tuple = (1, 2, 3) and list = [1, 2, 3]
Q21. languages known to me
I am proficient in English and Spanish.
Proficient in English and Spanish
Can read, write, and speak both languages fluently
Q22. Types of SQL queries and ques related to DBMS
Types of SQL queries and DBMS related questions
Types of SQL queries: SELECT, INSERT, UPDATE, DELETE
DBMS related questions: normalization, indexing, transactions
Example: SELECT * FROM table_name WHERE condition
Q23. oops concept explain about and one sample
Oops concept is a programming paradigm that focuses on objects and classes, allowing for code reusability and organization.
Oops concept involves four main principles: encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation refers to the bundling of data and methods that operate on the data within a single unit.
Inheritance allows a class to inherit properties and behavior from another class.
Polymorphism enables objects to be treated as instances of their parent...read more
Q24. Difference between s C ++ and c
C++ is an extension of C with object-oriented programming features.
C++ supports classes and objects while C does not.
C++ has better support for polymorphism and inheritance.
C++ has a standard template library (STL) which provides a collection of classes and functions for common programming tasks.
C++ allows function overloading while C does not.
C++ has better type checking and exception handling compared to C.
Q25. What are the SQL comands
SQL commands are used to interact with databases to perform various operations like querying, updating, and deleting data.
SELECT: Retrieves data from a database
INSERT: Adds new records to a table
UPDATE: Modifies existing records in a table
DELETE: Removes records from a table
CREATE TABLE: Creates a new table in the database
ALTER TABLE: Modifies an existing table structure
DROP TABLE: Deletes a table from the database
Q26. What is OOPS concept?
OOPS concept stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.
OOPS focuses on creating objects that contain both data and methods to manipulate that data.
It emphasizes concepts like encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation refers to bundling data and methods that operate on the data into a single unit.
Inheritance allows one class to inherit properties and behavior from another class.
Poly...read more
Q27. Difference between class and interfaces
Classes can have both implementation and state, while interfaces only have method signatures.
Classes can have constructors, fields, and methods, while interfaces can only have method signatures.
A class can implement multiple interfaces, but can only inherit from one class.
Interfaces are used to achieve abstraction and multiple inheritance in Java.
Example: Class 'Car' can have fields like 'color' and 'model', while Interface 'Drivable' can have method signatures like 'start()'...read more
Q28. function of router
A router is a networking device that forwards data packets between computer networks.
Routes data packets between networks
Uses IP addresses to determine where to send packets
Can be used to create a local network
Can be configured to prioritize certain types of traffic
Examples include Cisco, Netgear, and TP-Link routers
Q29. Types of data types in python
Python has various data types including integers, floats, strings, lists, tuples, dictionaries, and sets.
Integers: whole numbers without decimal points (e.g. 5, -3)
Floats: numbers with decimal points (e.g. 3.14, -0.5)
Strings: sequences of characters enclosed in quotes (e.g. 'hello', '123')
Lists: ordered collections of items (e.g. [1, 'apple', True])
Tuples: ordered, immutable collections of items (e.g. (1, 'banana', False))
Dictionaries: unordered collections of key-value pairs...read more
Q30. What is variable
A variable is a symbol or placeholder that represents a value that can change or vary.
Variables are used in programming to store and manipulate data.
They can hold different types of values such as numbers, strings, or boolean.
Examples: int age = 25; String name = 'John'; boolean isStudent = true;
Q31. What is phishing
Phishing is a type of cyber attack where attackers impersonate legitimate organizations to trick individuals into providing sensitive information.
Phishing emails often contain links to fake websites that mimic real ones
Attackers may use social engineering tactics to manipulate victims into revealing personal information
Common targets of phishing attacks include usernames, passwords, and financial information
Examples of phishing attacks include emails claiming to be from banks...read more
Q32. What is polymorphism
Polymorphism is the ability of a single function or method to operate on different types of data.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example: Inheritance in object-oriented programming languages like Java allows for polymorphism.
Example: A method 'draw()' can be implemented differently in various classes that inher...read more
Q33. Types of hackers
Hackers can be categorized into different types based on their intentions and methods.
White hat hackers - ethical hackers who help organizations by finding security vulnerabilities
Black hat hackers - malicious hackers who exploit vulnerabilities for personal gain
Grey hat hackers - a mix of white and black hat hackers, may break laws but not for malicious purposes
Script kiddies - inexperienced hackers who use pre-written scripts and tools
Hacktivists - hackers who hack for poli...read more
Q34. difficulty faced
I faced difficulty in managing multiple projects simultaneously and prioritizing tasks effectively.
Struggled with time management and balancing competing deadlines
Had difficulty in determining which tasks were most important and needed immediate attention
Found it challenging to stay organized and focused when juggling multiple projects
Implemented a project management tool to help track progress and deadlines
Sought guidance from mentors on prioritization strategies
More about working at TCS
Top HR Questions asked in Gold Plus Glass
Interview Process at Gold Plus Glass
Top Graduate Trainee Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month