Find Interview Questions for Top Companies
Palle technologies Interview Questions and Answers
Ques:- Given a text file (FILE1) with lots of words (ex, an ebook), and another file (FILE2) with a list of blacklist words (slangs, porn, etc.), write a program to find the top 100 words(most frequent 100 words) from FILE1 which are not present in FILE2.
Comments
Admin May 17, 2020

Steps to solve this.
1. open FILE1 in read mode
2. read content by using read()
3 split content by using
so that you can get lines
4 split lines by split(' ') so that you can get words
5 repeat above 4 lines with file FILE2
6 iterate words list and create dictionary word and frequency as key values.
skip the value if it is found in file2 key words.
7 sort dict by using x= list(sorted(wordsarr.items(),wordsarr.get, reverse=true)
so that we can get sorted dict in desc order.
8 return top 100 words by using print(x[:101])

Ques:- List out the advantages of Python?
Comments
Admin Feb 2, 2020

<strong>Interpreted:</strong> Python is an interpreted language. It does not require a prior accumulation of code and it executes instructions directly.

Free and open-source: It is an open-source project which is publicly available to use. It can be downloaded free of cost.

<strong>Portable:</strong> Python programs can run on various platforms without affecting its performance.
<strong>
Extensible:</strong> It is highly flexible and extensible with any module.

<strong>Object-oriented:</strong> Python permits to implement the Object-Oriented concepts to build an application solution.

Built-in data structure: List, Tuple, and Dictionary are useful integrated data structures that are provided by Python.

Ques:- What is the difference between CSS and CSS3?
Right Answer:
CSS (Cascading Style Sheets) is the original styling language used for web design, while CSS3 is the latest version that includes new features and modules, such as advanced selectors, animations, transitions, and improved layout techniques like Flexbox and Grid.
Ques:- How Do You Manage The Complete Site In Center Of The Browser, Which Is Completely Using Divs Using The Help Of Css2 Or Css3?
Right Answer:
To center a site using divs in CSS, you can use the following CSS rules:

```css
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* Full viewport height */
margin: 0; /* Remove default margin */
}

.container {
width: 80%; /* Set a width for the container */
max-width: 1200px; /* Optional max width */
}
```

Wrap your content in a div with the class `container`. This will center the site both vertically and horizontally in the browser.
Ques:- What is the other name of combined selector in CSS3 and what is it used for?
Right Answer:
The other name of a combined selector in CSS3 is a "combinator." It is used to select elements based on their relationship to other elements, such as descendant, child, adjacent sibling, or general sibling relationships.
Ques:- What is Grouping in CSS3?
Right Answer:
Grouping in CSS3 refers to the practice of combining multiple selectors that share the same styles into a single rule set, allowing you to apply the same styles to different elements without repeating the code. This is done by separating the selectors with commas.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

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