CTS Interview Questions For UI Developer Position (2-3 Years Experience) - Crazy Coder
CTS Interview Questions For UI Developer Position (2-3 Years Experience) - Crazy Coder
CTS Interview Questions For UI Developer Position (2-3 Years Experience) - Crazy Coder
Dear friends ,
I have recently attended CTS interview on november 8, 2014.
Interview process was quite easy. First round is technical face to face discussion second round is system test
third one is HR. I got selected and waiting for my offer letter
iii) Using sprite images instead of multiple images. Sprite image is a collection of images
put together in a single image file. Respective image can be called using css background position property
https://vandanasrivastava.wordpress.com/2014/11/17/cts-interview-questions-for-ui-developer-position/ 1/8
7/28/2021 CTS Interview questions for UI Developer position (2-3 years experience) | Crazy Coder
2) What is bootstrap ?
Bootstrap is CSS framework for developing responsive, mobile first projects on the web. Current version of bootstrap is v3.3.6. Bootstrap also
comes with two preprocessors: less and saas.
Bootstrap uses 12 column grid system. Bootstrap’s grid system is responsive, and the columns will re-arrange depending on the screen size
HTML5 tag are called as semantic tags. A semantic element clearly describes its meaning to both the browser and the developer. Using semantic
tags you could provide better structure in your document, and provide contextually rich information to robots, page readers, and potentially,
search engines. Some of the sematic tags are given below.
<article>
<aside>
https://vandanasrivastava.wordpress.com/2014/11/17/cts-interview-questions-for-ui-developer-position/ 2/8
7/28/2021 CTS Interview questions for UI Developer position (2-3 years experience) | Crazy Coder
<details>
<figcaption>
<figure>
<footer>
<header>
<main>
<mark>
<nav>
<section>
<summary>
<time>
Non-semantic elements tells nothing about its content.
https://vandanasrivastava.wordpress.com/2014/11/17/cts-interview-questions-for-ui-developer-position/ 3/8
7/28/2021 CTS Interview questions for UI Developer position (2-3 years experience) | Crazy Coder
ii) box-shadow
.box_shadow{
background-color: #EEEEEE;
box-shadow:3px 3px 3px 2px #797979;
height: 50px;
width: 100px;
}
https://vandanasrivastava.wordpress.com/2014/11/17/cts-interview-questions-for-ui-developer-position/ 4/8
7/28/2021 CTS Interview questions for UI Developer position (2-3 years experience) | Crazy Coder
1 .container {
2 background: url(image/bg1.png) 0 0 no-repeat,
3 url(image/bg2.png) 100% 0 no-repeat;
4 }
We don’t have support for older versions of IE browser. We need to provide a fallback for the browsers which don’t provide support for multiple
backgrounds.
1 .container {
2 /* fallback */
3 background: url(image/bg1.png) no-repeat;
4
5 /* modern browsers */
6 background: url(image/bg1.png) 0 0 no-repeat,
7 url(image/bg2.png) 100% 0 no-repeat;
8 }
v) Transition
We can add animation to an element using transition. We need to specify these parameters.
transition-property
transition-duration
transition-timing-function
transition-delay
https://vandanasrivastava.wordpress.com/2014/11/17/cts-interview-questions-for-ui-developer-position/ 5/8
7/28/2021 CTS Interview questions for UI Developer position (2-3 years experience) | Crazy Coder
1 div {
2 width: 150px;
3 height: 150px;
4 background: red;
5 /* For Safari 3.1 to 6.0 */
6 -webkit-transition-property: height;
7 -webkit-transition-duration: 2s;
8 -webkit-transition-timing-function: ease-in-out;
9 -webkit-transition-delay: 1s;
10 /* Standard syntax */
11 transition-property: height;
12 transition-duration: 2s;
13 transition-timing-function: linear;
14 transition-delay: 1s;
15 }
16
17 div:hover {
18 height: 300px;
19 }
11) what is closest in jquery ? What’s the difference between .closest() and .parents(‘selector’)?
.closest() method begins its search with the element itself before progressing up the DOM tree, and stops when current element matches the
selector.
.parents() Begins with the parent element, get the parent of each element in the current set of matched elements
https://vandanasrivastava.wordpress.com/2014/11/17/cts-interview-questions-for-ui-developer-position/ 6/8
7/28/2021 CTS Interview questions for UI Developer position (2-3 years experience) | Crazy Coder
Eg: http://www.abcs.com/example.php?callback=simplecallback
Whenever the server receives the callback it will return the data. The data can be accessed using that call back function.
A simple implementation of JSONP request.
https://vandanasrivastava.wordpress.com/2014/11/17/cts-interview-questions-for-ui-developer-position/ 7/8
7/28/2021 CTS Interview questions for UI Developer position (2-3 years experience) | Crazy Coder
1 (function($){
2 $.fn.showLinkLocation = function() {
3 return this.filter('a').each(function(){
4 $(this).append(
5 ' (' + $(this).attr('href') + ')'
6 );
7 });
8 };
9 }(jQuery));
10
11 // Usage example:
12 $('a').showLinkLocation();
18) List out some CSS Frameworks for creating responsive templates?
Bootstrap
-> Bootstrap is mobile first framework. It includes predefined classes for easy layout options, as well as powerful mixins for generating more
semantic layouts.
Foundation 3
-> Foundation 3 is built with Sass, a powerful CSS preprocessor. “Pricing Tables” is an interesting componenet in foundation 3. Pricing tables are
suitable for marketing site for a subscription-based product. It also offers super cool features like Right-to-left text direction support.
Skeleton
Skeleton is a small collection of CSS files that can help to rapidly develop sites that look beautiful at any size, be it a 17″ laptop screen or an iPhone.
YAML 4
YAML 4 is built on SAAS. You can check the documentation in the above link.
ResponsiveAeon
Responsive Aeon is a simple, fast, Intuitive css framework. It contains almost 120 lines of code and only 1kb minified.
https://vandanasrivastava.wordpress.com/2014/11/17/cts-interview-questions-for-ui-developer-position/ 8/8