Find Interview Questions for Top Companies
Gaisano malls Interview Questions and Answers
Ques:- Is it a good practice to use item index as ‘key’ of list elements?
Right Answer:
No, it is not a good practice to use the item index as the 'key' of list elements in React.
Comments
Admin Feb 3, 2020

It is not a good practice to use the index of an item as the ‘key’ of the list elements. For example, if the order of the items changes, it will impact negatively and may cause issues with the react component state.

Ques:- Why is a component constructor called only once?
Right Answer:
A component constructor is called only once because it is invoked when the component is first created and mounted to the DOM. Subsequent updates to the component do not recreate it; instead, React updates the existing instance, which is why the constructor is not called again.
Comments
Admin Feb 3, 2020

React’s appeasement algorithm assumes that without any information to the contrary, if a custom component appears in the same place on consequent renders, it’s the same component as before, so reuses the previous instance moderately than making a new one.

Ques:- You have a file called docs.Z but do not know what it is. What is the easiest way to look at the contents of the file?Choose one:a. Use zcat to display its contents.b. Use uncompress to expand the file and then use emacs to display the files contents.c. Copy the file to a floppy disk and uncompress it under Windows.d. Use tar -xt to display the file's contents.
Ques:- You have a file named phonenos containing names and telephone numbers. Each line contains the telephone number followed by the name. You want to sort the file by telephone number in ascending order. Which of the following commands will accomplish this.Choose one:a. sort phonenosb. sort -c phonenosc. sort -n phonenosd. sort -r phonenos
Asked In :- lucid motors, gaisano malls,
Ques:- What is a remote repository? How do you connect to one?
Right Answer:

A remote repository is a version of your project that is hosted on a server, allowing multiple users to collaborate. You connect to a remote repository using Git commands like `git clone` to copy it to your local machine, or `git remote add <name> <url>` to link your local repository to the remote one.

Ques:- What’s the difference between git pull and git fetch?
Right Answer:

`git fetch` downloads changes from the remote repository to your local repository but does not merge them into your working directory. `git pull` does both: it fetches the changes and then merges them into your current branch.

Ques:- How do you undo a commit that hasn’t been pushed yet?
Right Answer:

You can undo a commit that hasn’t been pushed yet by using the command `git reset HEAD~1`. This will remove the last commit while keeping your changes in the working directory.

Ques:- What are tags in Git? How do you create and push them?
Right Answer:

Tags in Git are used to mark specific points in the repository's history, often to denote release versions. To create a tag, use the command `git tag <tag-name>`. To push tags to the remote repository, use `git push origin <tag-name>` or `git push –tags` to push all tags at once.

Ques:- What is the difference between Git and GitHub?
Right Answer:

Git is a version control system that helps manage and track changes in code, while GitHub is a web-based platform that hosts Git repositories and provides collaboration features for developers.

Ques:- You enter the command cat horse | tr 'x' 'X'. What is the purpose of the | character?Choose one:a. The | character is used to send the output from one command to another command as input.b. The | character is used to send the input from one command to another command as output.c. The | character is used to sequentially enter multiple commands.d. The | character is a place holder to tell the shell where one command ends and another begins.
Gaisano Malls, a prominent retail giant in the Philippines, has established itself as a household name synonymous with quality shopping experiences. Founded by Don Carlos Gaisano in 1974, the company has grown from a single department store in Cebu City to a sprawling network of malls across the country. With a commitment to providing diverse retail options and excellent customer service, Gaisano Malls caters to a wide range of consumers, from budget-conscious shoppers to luxury seekers. The company\'s malls offer a comprehensive array of products, including clothing, electronics, household goods, and groceries, ensuring that shoppers can find everything they need under one roof. Beyond shopping, Gaisano Malls also feature entertainment facilities, restaurants, and events, making them popular destinations for families and friends to spend quality time together. In addition to its retail offerings, Gaisano Malls is actively involved in community development initiatives, supporting local businesses and charities. Through its corporate social responsibility programs, the company strives to make a positive impact on the communities it serves. With its commitment to excellence, innovation, and community engagement, Gaisano Malls continues to be a leading force in the Philippine retail industry, enriching the lives of millions of Filipinos nationwide.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users