Skip to content

This warmup covers topics that we have learned in the past three weeks

Notifications You must be signed in to change notification settings

rithmschool/week-three-conceptual-warmup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Conceptual Warmup - Week 3

Instructions

  • Fork and clone this repository
  • Place your answers inside of this markdown file (answers should be about 1-3 sentences each)
  • Submit a pull request to submit the assignment

Questions

  1. What is Big-O Notation?

  2. What does it mean when an algorithm is O(n) time and O(1) space?

  3. What is specificity in CSS?

  4. How does CSS Bootstrap work? (In other words, how do you setup and use bootstrap?)

  5. What does AJAX stand for and what does it do?

  6. What is a Promise in JavaScript?

  7. What is hoisting?

  8. Define closure, and give an example of closure in JavaScript or Python.

  9. What is the difference between a Python dictionary and a JavaScript object?

  10. Show an example of string interpolation in both JavaScript and Python.

  11. When would you use *args and **kwargs in Python, what is the difference between them?

  12. What is OOP?

  13. What is an instance method in Python?

  14. Write a Python equivalent for each of the following three JavaScript functions:

    I.

    javascript

    function filterAndSquareEvenNumbers(nums) {
      return nums.filter(num => num % 2 === 0).map(num => num ** 2);
    }

    python

    # your code goes here

    II.

    javascript

    function filterOutFalsyValues(arr) {
      return arr.filter(val => val);

    python

    # your code goes here

    III.

    javascript

    function swapKeysAndValues(obj) {
      const newObj = {};
      for (k in obj) {
        newObj[obj[k]] = k;
      }
      return newObj;
    }

    python

    # your code goes here

BONUS QUESTIONS

  1. When you type google.com into your browser's URL bar and hit enter, what happens?
  2. Compare and contrast imperative versus declarative styles of programming.

About

This warmup covers topics that we have learned in the past three weeks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published