Shared Flashcard Set

Details

Frontend Interview questions
Common Frontend interview Questions
11
Software
Beginner
02/22/2019

Additional Software Flashcards

 


 

Cards

Term
How would you optimize a website’s assets/resources
Definition
  • minimize http requests
  • use a CDN
  • utilize browser caching
  • prioritize visible content (loading resources for visible then using JS to load remaining)
  • lazy loading
  • use sprites (collection of images put in a single img)
  • concat and minify files
Term
How many resources will a browser download from a given domain at a time
Definition
6-8 depending on browser
Term
decrease page load
Definition
  • Optimize images
  • browser caching
  • compression
  • optimize and minimize CSS
  • place JS files at bottom of page

 

Term
flash of unstyled content (FOUC)
Definition
When a page appears briefly with default browser styling bc the styling resources have not yet been loaded.
Term
Accessible Rich Internet Applications (ARIA)
Definition

set of attributes that define ways to make web pages more accessible to users with disabilities

 

Term
GraphQL
Definition
  • Query language for APIs and a runtime for filling those queries with your existing data.
  • queries define how data is recieved
  • Get many resources in a single request
  • typesystem
Term
CORS
Definition
  • Cross origin resource sharing
  • restricts request from a different domain than the domain from which the first asset was served
Term
bubble sort
Definition

worst case complexity  O(n²)

best O(n)

avg O(n²)

iterates through array swapping values arr[i] & arr[i+1] until list is sorted

Term
Selection Sort
Definition

best/worst/avg O(n²)

 

each loop removes one element and adds to sorted portion of array

Term
Merge Sort
Definition

divide and conquer

O(nlogn)

  1. continuously divide the list until you have N sublists, where each sublist has one unsorted element, and N is the number of elemnts in the array
  2. Merge the lists together, 2 at a time to produce new sorted sublists, until all elements have been merged into a single sorted array

 

 

Term
Merge Sort
Definition

divide and conquer

O(nlogn)

  1. continuously divide the list until you have N sublists, where each sublist has one unsorted element, and N is the number of elemnts in the array
  2. Merge the lists together, 2 at a time to produce new sorted sublists, until all elements have been merged into a single sorted array

 

 

Supporting users have an ad free experience!