codebypc
2.09K subscribers
210 photos
59 videos
160 files
250 links
Html, css3, javascript, reactjs, express, Fullstack, backend, Bootstrap, mongodb
Download Telegram
here are 50 CSS interview questions that can help prepare for a CSS-related job interview:

1. What is CSS and why is it used?
2. Explain the difference between inline, internal, and external CSS.
3. What are the advantages and disadvantages of using CSS preprocessors?
4. How do you include a CSS file in your HTML document?
5. What is the box model in CSS?
6. Explain the concept of specificity in CSS.
7. How do you center a div horizontally and vertically?
8. What is the difference between margin and padding?
9. What are pseudo-classes and pseudo-elements in CSS?
10. How do you use media queries in CSS?
11. What is Flexbox and how does it work?
12. What is CSS Grid and how does it differ from Flexbox?
13. How can you create a responsive design using CSS?
14. What are CSS variables and how do you use them?
15. How do you create animations in CSS?
16. Explain the concept of the CSS cascade.
17. What are the different types of positioning in CSS?
18. How do you use the float property in CSS?
19. What is the z-index and how does it work?
20. How do you use the :nth-child selector in CSS?
21. What is the difference between the visibility and display properties?
22. How do you create a CSS transition?
23. What are the different types of CSS units?
24. How do you style a form using CSS?
25. What is the difference between block and inline elements?
26. How do you use the overflow property in CSS?
27. What are the different ways to apply CSS styles to an element?
28. How do you create a CSS gradient?
29. What is the purpose of the !important declaration in CSS?
30. How do you use the calc() function in CSS?
31. What is the difference between em and rem units?
32. How do you use the @keyframes rule in CSS?
33. What is the purpose of the display property in CSS?
34. How do you create a sticky footer using CSS?
35. What is the difference between absolute and relative positioning?
36. How do you style links using CSS?
37. What is the purpose of the content property in CSS?
38. How do you create a responsive navigation menu using CSS?
39. What is the difference between CSS Grid and traditional layout techniques like floats and tables?
40. How do you handle browser compatibility issues with CSS?
41. What are CSS frameworks and which ones have you used?
42. How do you use the :hover pseudo-class in CSS?
43. What is the purpose of the clip-path property in CSS?
44. How do you create a tooltip using CSS?
45. What are the different ways to hide an element using CSS?
46. How do you create a responsive image gallery using CSS?
47. What is the purpose of the clear property in CSS?
48. How do you use the @media rule in CSS?
49. What is the difference between the ::before and ::after pseudo-elements?
50. How do you create a CSS-only dropdown menu?
👍6
List of 15+ Most used Array method in JavaScript
2👍2
👍2
Full Detailed Answer PDF 👇🏻👇🏻👇🏻
👍3
🥰3
👍2🔥1
🔥1
10 JavaScript MCQs
### Question 1:
What is the correct syntax to print a message in the console in JavaScript?

a) console.log("Hello World");
b) print("Hello World");
c) echo "Hello World";
d) console.print("Hello World");

Answer: a) console.log("Hello World");

### Question 2:
Which of the following is not a valid JavaScript variable name?

a) 2names
b) _name
c) firstName
d) name2

Answer: a) 2names

### Question 3:
What is the output of typeof NaN in JavaScript?

a) number
b) undefined
c) NaN
d) object

Answer: a) number

### Question 4:
Which built-in method removes the last element from an array and returns that element?

a) last()
b) get()
c) pop()
d) None of the above

Answer: c) pop()

### Question 5:
How do you write a comment in JavaScript?

a) <!-- This is a comment -->
b) // This is a comment
c) /* This is a comment */
d) Both b) and c)

Answer: d) Both b) and c)

### Question 6:
Which method is used to create a new array from an existing array with only elements that pass a test provided by a function?

a) reduce()
b) filter()
c) map()
d) forEach()

Answer: b) filter()

### Question 7:
What will the following code output? console.log(0.1 + 0.2 == 0.3);

a) true
b) false
c) undefined
d) NaN

Answer: b) false

### Question 8:
Which of the following is a JavaScript library ?

a) Django
b) Rails
c) React
d) Laravel

Answer: c) React

### Question 9:
How do you declare a JavaScript variable?

a) var carName;
b) variable carName;
c) v carName;
d) carName;

Answer: a) var carName;

### Question 10:
Which operator is used to assign a value to a variable in JavaScript?

a) *
b) =
c) -
d) x

Answer: b) =
👍74👏1
100+ JavaScript projects 👇👇👇 for beginners to advanced..
👍2