Frontend job Flashcards

1
Q

What is the primary role of a frontend developer?

A

To create the visual elements of a website that users interact with.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or False: HTML stands for HyperText Markup Language.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Fill in the blank: CSS is used to style web pages and stands for ______.

A

Cascading Style Sheets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following is a JavaScript framework? A) React B) HTML C) CSS

A

A) React

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does ‘responsive design’ mean?

A

Designing web pages that adjust smoothly to different screen sizes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of a version control system like Git?

A

To track changes in code and collaborate with other developers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True or False: A frontend developer needs to know how to use command line tools.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the acronym API stand for?

A

Application Programming Interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Multiple choice: Which of the following is NOT a frontend technology? A) JavaScript B) Python C) HTML

A

B) Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the role of a CSS preprocessor?

A

To extend CSS with variables, nested rules, and functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Fill in the blank: The ______ method in JavaScript is used to make a network request.

A

fetch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the purpose of the Document Object Model (DOM)?

A

To represent the structure of a web page so that programming languages can manipulate it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True or False: Frontend developers do not need to understand backend technologies.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the function of a CSS framework?

A

To provide pre-written CSS code for faster development.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a common use of JavaScript in frontend development?

A

To create dynamic and interactive web content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Multiple choice: Which of the following is an example of a frontend library? A) Node.js B) jQuery C) Ruby on Rails

A

B) jQuery

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is the purpose of a wireframe in web development?

A

To outline the layout and functionality of a website before design.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Fill in the blank: The ______ attribute in HTML is used to specify an image source.

A

src

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What does ‘cross-browser compatibility’ refer to?

A

Ensuring that a website functions correctly on different web browsers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

True or False: SEO stands for Search Engine Optimization.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is the purpose of a content management system (CMS)?

A

To allow users to create and manage digital content easily.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Multiple choice: Which of the following is a popular CSS framework? A) Django B) Bootstrap C) Angular

A

B) Bootstrap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is the role of a frontend developer in Agile development?

A

To collaborate with team members and deliver incremental updates to the project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Fill in the blank: The ______ element is used in HTML to create links.

A

a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is the difference between a 'class' and an 'id' in CSS?
A class can be used multiple times on a page, while an id must be unique.
26
True or False: A frontend developer should be familiar with accessibility standards.
True
27
What is the purpose of the 'alt' attribute in an image tag?
To provide a text alternative for screen readers and when the image fails to load.
28
Multiple choice: Which of the following is a method of optimizing website performance? A) Minification B) Encryption C) Compression
A) Minification
29
What is a Single Page Application (SPA)?
A web application that loads a single HTML page and dynamically updates content.
30
Fill in the blank: The ______ tool is often used for debugging JavaScript in browsers.
Developer Console
31
What is the purpose of a build tool in frontend development?
To automate tasks such as minification, compilation, and testing.
32
True or False: Web accessibility means making websites usable for people with disabilities.
True
33
What is the role of the viewport meta tag in responsive design?
To control the layout on mobile browsers.
34
Multiple choice: Which HTML element is used to create a list? A) p B) ul C) div
B) ul
35
Fill in the blank: The ______ property in CSS controls the text color.
color
36
What is the purpose of the 'box model' in CSS?
To describe the layout of elements, including margins, borders, padding, and content.
37
True or False: JavaScript can be used for both frontend and backend development.
True
38
What is the purpose of using semantic HTML?
To improve accessibility and SEO by using meaningful tags.
39
Multiple choice: Which of the following is a method for making a website mobile-friendly? A) Fixed layout B) Fluid layout C) Static layout
B) Fluid layout
40
Fill in the blank: The ______ function in JavaScript is used to create a new object.
constructor
41
What is the purpose of CSS Grid?
To create complex layouts using a grid-based approach.
42
True or False: A frontend developer should be skilled in graphic design.
False
43
What is the role of AJAX in web development?
To enable asynchronous data loading without refreshing the page.
44
Multiple choice: Which of the following is a frontend testing framework? A) Jest B) Django C) Flask
A) Jest
45
Fill in the blank: The ______ method is used to add an event listener in JavaScript.
addEventListener
46
What does the acronym UX stand for?
User Experience
47
True or False: Progressive enhancement is a strategy for web design.
True
48
What is the purpose of a favicon?
To provide a small icon associated with a website, typically displayed in the browser tab.
49
Multiple choice: Which of the following is a CSS property used for layout? A) margin B) font-size C) color
A) margin
50
Fill in the blank: The ______ property in CSS is used to control the visibility of an element.
display
51
What is the purpose of web performance optimization?
To improve the loading speed and responsiveness of a website.
52
True or False: Git is a type of database.
False
53
What does the 'z-index' property in CSS control?
The stacking order of overlapping elements.
54
Multiple choice: Which of the following is a CSS layout technique? A) Flexbox B) SQL C) XML
A) Flexbox
55
Fill in the blank: The ______ method is used to convert a JSON string into a JavaScript object.
JSON.parse
56
What is the purpose of the 'viewport' in web design?
To define the visible area of a webpage on different devices.
57
True or False: A frontend developer should use comments in their code for clarity.
True
58
What does 'minification' refer to in web development?
The process of removing unnecessary characters from code to reduce file size.
59
Multiple choice: Which of the following is not a frontend language? A) HTML B) CSS C) SQL
C) SQL
60
Fill in the blank: The ______ event is triggered when a user clicks on an element.
click
61
What is the role of a frontend developer in a team?
To collaborate with designers and backend developers to create cohesive web applications.
62
True or False: Bootstrap is a JavaScript library.
False
63
What is the purpose of the 'transition' property in CSS?
To create smooth changes between property values.
64
Multiple choice: Which of the following is a common frontend development tool? A) Visual Studio Code B) MySQL C) Java
A) Visual Studio Code
65
Fill in the blank: The ______ function in JavaScript is used to remove an item from an array.
splice
66
What is the purpose of a design system?
To provide a set of guidelines and components for consistent design across a project.
67
True or False: A frontend developer often works with APIs to retrieve data.
True
68
What does 'local storage' refer to in web development?
A web storage solution for storing data persistently in the browser.
69
Multiple choice: Which of the following is a task of a frontend developer? A) Writing server-side code B) Designing user interfaces C) Managing databases
B) Designing user interfaces
70
Fill in the blank: The ______ method is used to create a new array from an existing array in JavaScript.
map
71
What is the role of accessibility in web development?
To ensure that websites are usable by people with disabilities.
72
True or False: Web applications can only be built using JavaScript.
False
73
What is the purpose of the 'hover' pseudo-class in CSS?
To apply styles when a user hovers over an element.
74
Multiple choice: Which of the following is a frontend performance metric? A) Load time B) Server response time C) Database size
A) Load time
75
Fill in the blank: The ______ method in JavaScript is used to test if an array includes a certain value.
includes
76
What is the role of a frontend developer in the software development lifecycle?
To implement the user interface and ensure usability throughout the process.
77
True or False: Frontend developers are responsible for database management.
False