Interview Questions and Answers for 'CSS' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers for 'CSS' - 13 question(s) found - Order By Newest

Frequently asked to fresh graduates and less experienced.
 Q1. Why do we write public static void main ? Can we use some other syntax too for main ?Core Java
Ans. 1. public is the access modifier that makes the method accessible from anywhere, static is the keyword that makes it accessible even without creating any object, void means it doesn't return anything , String args[] is the array of argument that the method receives.

2. If we use main without the string args , it will compile correctly as Java will treat it as just another method. It wont be the method "main" which Java looks for when it looks to execute the class and hence will throw

Error: Main method not found in class , please define the main method as:
public static void main(String[] args)

3. Main is not a keyword but a special string that Java looks for while initiating the main thread.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   main method     Asked in 4 Companies      basic        frequent

Try 1 Question(s) Test


Very frequently asked in phone and walk in interviews.
  Q2. What are Marker Interfaces ? Name few Java marker interfaces ?Core Java
Ans. An interface without any method declaration is called as marker interface. there are 3 in-built interfaces in JVM i.e. serializable, clonable, remote

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   oops   interfaces   marker interface   serializable   clonable     Asked in 21 Companies      intermediate        frequent

Try 1 Question(s) Test


 Q3. What is the difference between constructor and instance initialization blocks ?Core Java
Ans. Constructor has the same name as class name whereas instance initialization block just have a body without any name or visibility type.

instance initialization blocks are useful if we want to have some code run regardless of which constructor is used or if we want to do some instance initialization for anonymous classes.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     instance initialization blocks  constructor  constructor vs instance initialization blocks     Asked in 2 Companies

Try 1 Question(s) Test


Frequently asked in Accenture.
  Q4. What is your biggest achievement at work ?General
Ans. [Open Ended Answer]

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     general question  non technical question     Asked in 20 Companies        frequent


 Q5. Why did you choose programming ?General
 This question was recently asked at 'HCSS'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q6. Can you create html and css for a rectangular shape button with width 10px.CSS
 This question was recently asked at 'Symantec'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q7. What are the advantages of using cascade style sheets or css ?CSS
Ans. We can enforce consistent UI and can have single point of change for UI components.'

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q8. How can we assign common styling attributes to html tags and how can we do that across different tag types ? CSS
Ans. Using class selector.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q9. How can we align a particular html element to the center using css ?CSS
Ans. By using attribute align:center

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     css  html     Asked in 1 Companies


 Q10. Can we have 2 styling classes with a single div element ? Which class will take precedence in case of conflict in such case ? CSS
 This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q11. What are the difference between "resetting" and "normalizing" CSS?CSS
 This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q12. CSS Box ModelCSS
 This question was recently asked at 'RocketMiles'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q13. What is a pseudo-class?CSS
Ans. It is a CSS technique that sets the style when an element changes its state. E.g. style changes when mouse hover, different styles for visited or unvisited links, etc.

There are four different types of pseudo-classes:

Links: These pseudo-classes are used to style the link both in its normal state by default and when it has already been visited
Dynamic: Dynamic pseudo-classes can be applied to any element to define how they are shown when the cursor is located on them, or by clicking on them or when they are selected
Structural: Structural pseudo-classes allow to style elements based on an exact numerical position of the element
Others: Some elements can be styled differently based on the language or what type of label they are not.
Format
Name
Elements are styled if
Compatibility
Link and Dynamic Pseudo-classes
: link   Link   the value of the href attribute is not in the history   IE4, FF1, O3.5, S1, CSS1
: visited   Link Visited   the value of the href attribute is in the history   IE4, FF1, O3.5, S1, CSS1
: target   Target Link   a targeted link   FF1.3, O9.5, S1.3, CSS3
: active   Active   the element has been clicked   IE7, FF1, O3.5, S1, CSS1
: hover   On   the cursor is over the element   IE4 *, FF1, O3.5, S1, CSS2
: focus   Focus   the element captures the focus of the document   IE7, FF1, O7, S1, CSS2
* Only available for the item before IE7
Structural and Other Pseudo-classes
: root   Root   is the main element of a document   FF1.5, O9.5, S3.1, C3, CSS3
: empty   Empty   does not have child nodes   FF1.5, O9.5, S3.1, C3, CSS3
: only-child   Only son   has no sibling nodes   FF1.5, O9.5, S3.1, C3, CSS3
: only-of-type   Type Only   has a unique selector among its siblings   FF1.5, O9.5, S3.1, C3, CSS3
: first-child   First son   is the first child node of another element   FF1.5, O9.5, S3.1, C3, CSS3
: nth-of-type (n)   Nth of Type   is the nth element with that selector   FF1.5, O9.5, S3.1, C3, CSS3
: last-child   Last son   is the last child node of an element   FF1.5, O9.5, S3.1, C3, CSS3
: first-of-type   First of the Kind   is the first element of its selector type in the parent element   FF1.5, O9.5, S3.1, C3, CSS3
: last-of-type   Last of the Type   is the last element of its selector type in the parent element   FF1.5, O9.5, S3.1, C3, CSS3
: lang   Language   has a specifically defined language code   IE8, FF1.5, O9.5, S3.1, C3, CSS2.1
: not   Denial   you are not using a specific selector   FF1.5, O9.5, S3.1, C3, CSS3

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: