Find Interview Questions for Top Companies
CodeClouds IT Solutions Interview Questions and Answers
Ques:- Write sample code for pagination using java script.
Comments
Admin May 17, 2020

<script type="text/javascript"><!--
var pager = new Pager('results', 3);
pager.init();
pager.showPageNav('pager', 'pageNavPosition');
pager.showPage(1);
//--></script>

Admin May 17, 2020

To use my javascript you need to:
1. include the javascript using <script src="pager.js">
in your page header;
2. include a small css to skin the page navigation-bar
(i.e. for emphasizing the selected page using bold and
underline style);
3. define an ID on the table you want to scroll. i.e.
<table id="results"> ;
4. place an empty <div/> in the place you want to display
the navigation bar. i.e. <div id="pageNavPosition"> ;
5. include an initialization script at the bottom of your
page like this:
<script type="text/javascript"><!--
var pager = new Pager('results', 3);
pager.init();
pager.showPageNav('pager', 'pageNavPosition');
pager.showPage(1);
//--></script>
Where 'results' is the id of the table (see step #3), 3 is
the number of records per page, 'pager' is the name of the
variable (in red... that's ugly I agree...), and
pageNavPosition is the ID of the DIV inside of which the
pagination bar will be placed. The showPage(1) indicates
that, when loading the page, the 1st one should be displayed.
Regards
www.jobpuja.com

Ques:- Is it possible to assign a php variable to javascript ? And also is it possible to fetch the page contents if the url is not under our control ?
Comments
Admin May 17, 2020

Yes ,it is possible by doing like the following:
<?php
$x = 'hai!';
echo "<script>var x = '" . $x . "';</script>";
?>

Ques:- What is so special about HTML5?
Right Answer:

HTML5 is special because it introduced powerful new features that made websites more interactive, media-rich, and mobile-friendly. Key highlights:

- Built-in support for audio and video without plugins
- New semantic tags (like <article>, <section>) for better structure
- Improved form controls (date pickers, sliders, etc.)
- Offline storage and faster performance
- Better mobile and cross-platform support

In short: HTML5 made web development cleaner, faster, and more flexible.

Ques:- How do I create a link that opens a new window?
Right Answer:
To create a link that opens a new window, use the following HTML code:

```html
<a href="https://www.example.com" target="_blank">Open Example</a>
```
Ques:- Why we are using javasript in web designing?
Right Answer:
JavaScript is used in web designing to create interactive and dynamic content, enhance user experience, manipulate HTML and CSS, and handle events on web pages.
Ques:- Difference between visibility:hidden and display:none in css?
Right Answer:
`visibility: hidden;` hides the element but still takes up space in the layout, while `display: none;` removes the element from the layout entirely, so it does not take up any space.
Ques:- What is HTML, CSS, Photoshop ?
Right Answer:
HTML (HyperText Markup Language) is the standard language for creating web pages, defining the structure and content. CSS (Cascading Style Sheets) is used to style and layout web pages, controlling the appearance of elements. Photoshop is a graphic design software used for editing and creating images, often used for web graphics and design.
Ques:- What difference between Web Design & Web Development ?
Right Answer:
Web design focuses on the visual aesthetics and user experience of a website, including layout, colors, and typography. Web development involves the technical aspects of building and maintaining the website, including coding, server-side scripting, and database management.
Ques:- Can you name the responsibilities of the user, the customer and the developer in the requirements process?
Right Answer:
**User Responsibilities:** Provide clear and detailed needs, feedback, and participate in discussions.

**Customer Responsibilities:** Define project goals, prioritize requirements, and ensure alignment with business objectives.

**Developer Responsibilities:** Analyze requirements, propose solutions, document specifications, and implement the agreed-upon features.
Ques:- What is the cash to GDP ratio of India?
Right Answer:
As of my last update, the cash to GDP ratio of India is approximately 12-13%. Please verify with the latest data for accuracy.
Ques:- How would you determine a pricing strategy for a hotel chain?
Right Answer:
To determine a pricing strategy for a hotel chain, follow these steps:

1. **Market Research**: Analyze competitors' pricing, market demand, and customer preferences.
2. **Cost Analysis**: Calculate fixed and variable costs to ensure profitability.
3. **Segmentation**: Identify target customer segments (business, leisure, luxury, budget).
4. **Dynamic Pricing**: Implement flexible pricing based on occupancy rates, seasonality, and local events.
5. **Value Proposition**: Highlight unique features and services to justify pricing.
6. **Promotions and Discounts**: Develop special offers to attract different customer segments.
7. **Feedback Loop**: Continuously gather customer feedback and adjust pricing based on market changes and performance metrics.
Ques:- A man works on the 10th floor and takes the elevator down to ground level at the end of the day. Yet every morning, he only takes the elevator to the 7th floor, even when in a hurry. But he goes all the way to the 10th floor when others are in the elevator with him or it is a rainy day. Why?
Right Answer:
The man is short and can only reach the button for the 7th floor. He can reach the button for the 10th floor when others are with him or when it's rainy and he uses an umbrella to press it.
Ques:- You have been called in by an accounting firm that is experiencing declining profitability in its auditing operation. What levers would you push to help improve profitability?
Right Answer:
1. Analyze and streamline processes to reduce inefficiencies.
2. Invest in technology to automate repetitive tasks.
3. Train staff to improve skills and productivity.
4. Review pricing strategies and adjust fees if necessary.
5. Focus on high-value clients and services.
6. Enhance marketing efforts to attract new clients.
7. Monitor and control costs more effectively.
8. Implement performance metrics to track and improve productivity.
Ques:- My grandfather has just died and left me an oil tanker. I need a valuation for tax purposes, and I have hired you to tell me what it’s worth.
Right Answer:

To determine the value of the oil tanker for tax purposes, you should consider factors such as its age, condition, market demand, and recent sales of similar tankers. You may also want to consult a marine surveyor or a professional appraiser who specializes in maritime assets to get an accurate valuation.

Ques:- Our client is the New York City Opera. They want to develop a growth strategy for the next five years. What would you advise them to look at, and what are your recommendations for growth?
Right Answer:
1. **Market Analysis**: Assess the current opera market, audience demographics, and trends in arts consumption.

2. **Audience Engagement**: Develop programs to attract younger audiences, such as educational outreach, community events, and social media campaigns.

3. **Partnerships**: Collaborate with local schools, universities, and cultural organizations to expand reach and resources.

4. **Diverse Programming**: Introduce a mix of traditional and contemporary operas, including new works and collaborations with diverse artists.

5. **Digital Presence**: Enhance online offerings, including streaming performances and virtual experiences to reach a broader audience.

6. **Membership and Subscription Models**: Create flexible membership options and subscription packages to encourage repeat attendance.

7. **Fundraising and Sponsorship**: Strengthen relationships with donors and seek new sponsorship opportunities to increase funding.

8. **Feedback Mechanism**: Implement a system for gathering audience feedback to continuously improve offerings and experiences.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

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