Section 1

Preview this deck

The Domain Name System (DNS) is essentially

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (87)

Section 1

(50 cards)

The Domain Name System (DNS) is essentially

Front

A database mapping hostnames to IP addresses

Back

Only GET requests are appropriate to be used on an API

Front

False

Back

Which git command forcibly deletes a branch called 'experiment'?

Front

git branch -D experiment

Back

Communication between two computers across a network requires which two pieces of information

Front

Port number, IP address

Back

Which git command lets you move between branches?

Front

git checkout

Back

Any DOM element may be made to respond to being clicked

Front

True

Back

What sort of JavaScript language constructs should be assigned to a DOM element's .onXYZ properties in order to handle events? (For example, properties such as .onclick, .ondblclick, .onmouseover, etc.)

Front

functions

Back

When associating a JavaScript expression to a DOM element's HTML attribute such as onclick="..." or onchange="...", what does 'this' mean?

Front

'this' is a reference to the DOM element itself

Back

How do I copy one node (and all of its children nodes) in the DOM (the 'target') and place it elsewhere (the 'destination')?

Front

destination.appendChild(target.cloneNode(true));

Back

Which features do Python dictionaries and JSON share in common?

Front

All apply

Back

APIs are primarily intended to be used by

Front

Other programs

Back

A newly created branch is automatically pushed to the remote 'origin' when you run git push

Front

False

Back

Which git command is used to list all branches in your repo, showing which commits belong to which branches?

Front

git show-branch

Back

Which command line tool is used to query the WHOIS database for information about the owner of a domain?

Front

whois

Back

Which of the following exemplifies the Method invocation pattern?

Front

var result = o.f()

Back

Your client wants to see how your project is coming along, but the webapp only works on your laptop. What type of port forwarding will enable your client to connect to your laptop from an external domain?

Front

Remote port forwarding

Back

What is the result of the following JavaScript expression? typeof NaN === "number"

Front

true

Back

Which git command discards all uncommitted changes in the working directory?

Front

git checkout -f

Back

Which JavaScript method attaches a node to the DOM?

Front

.appendChild()

Back

If you are presently on the branch 'master' and then run git checkout -b newBranch git add . git commit -m "fixed a bug", what happened to the commit known as 'master'?

Front

Since you didn't have the 'master' branch checked out it is unaffected

Back

Which git command will quickly show me who wrote which line of code in a file, and how long ago they wrote it?

Front

git blame -- FILENAME

Back

Which of the following exemplifies the Constructor invocation pattern?

Front

var result = new f();

Back

Which git command lists the branches in your repository?

Front

git branch

Back

Which command creates and checks out a new git branch?

Front

git checkout -b

Back

Which command line tool is used to query the Domain Name System?

Front

nslookup

Back

Which kind of port forwarding behaves like a Virtual Private Network (VPN) on an application-by-application basis?

Front

Dynamic port forwarding (SOCKS Proxy)

Back

How do I deeply clone a DOM element (and all of its children nodes) in the DOM (the 'target') and place it elsewhere (the 'destination')?

Front

destination.appendChild(target.cloneNode(true));

Back

Which task is the Secure Shell (SSH) primarily concerned with?

Front

Remote web server administration

Back

Which of the following JS operations perform implicit type conversion?

Front

123 == '123'

Back

Suppose you must access a single service which is behind a firewall (such as a printer on your home network). Which type of port forwarding would you use?

Front

Local port forwarding

Back

Suppose that I accidentally delete a function in my source code, save the file and exit my editor. I cannot use my editor's undo history to recover the missing code. If I haven't committed my mistake to git, what command will I use to recover my missing code?

Front

git checkout -- FILENAME

Back

Which of the following exemplifies the Function invocation pattern?

Front

var result = f();

Back

Which powerful git command will list the log of repository-modifying actions, enabling you to track down commits which do not belong to a named branch?

Front

git reflog

Back

Arrays are basically "glorified" objects in JavaScript

Front

True

Back

Modern web applications take advantage of APIs to maximize

Front

Scalability

Back

SSH replaced older protocols such as Telnet and rsh because

Front

SSH is secure

Back

Why is the result of 123 == '123' true?

Front

Using the == operator converts both operands to the same type before performing the comparison

Back

In order to use an API, what information must a developer know?

Front

What information to put into the HTTP request, Which URLs you can use, Which HTTP request types to use

Back

Which of the following is not a comparison operator in JS?

Front

<==

Back

How many properties does the following JavaScript object contain? var person = { name: ['Bob', 'Smith'], age: 32, gender: 'male', interests: ['music', 'skiing'], bio: function() { alert(this.name[0] + ' ' + this.name[1] + ' is ' + this.age + ' years old. He likes ' + this.interests[0] + ' and ' + this.interests[1] + '.'); }, greeting: function() { alert('Hi! I\'m ' + this.name[0] + '.'); } };

Front

6

Back

Which git command safely deletes a branch called 'experiment'?

Front

git branch -d experiment

Back

If you discard your uncommitted changes using the above command, git is able to recover them for you.

Front

False

Back

Why might a modern web app use an API?

Front

Leverage 3rd-party services, Division of labor

Back

What does git revert master~6 do?

Front

Creates and commits a change which undoes the change introduced by the 6th ancestor of the master branch

Back

There is only one authoritative DNS server in the world

Front

False

Back

What does a port number identify?

Front

A service on a machine

Back

The acronym API stands for

Front

Application Programming Interface

Back

Only <input> elements may respond to a mouse click

Front

False

Back

If HEAD refers to the currently checked-out commit, what does HEAD~4 refer to?

Front

The 4th ancestor (great-great grandparent) of the currently checked-out commit

Back

The following JS expression prints "Hello World" to the console. print("Hello World");

Front

False

Back

Section 2

(37 cards)

You can use the v-on directive to listen to DOM events and run some JavaScript when they're triggered.

Front

True

Back

You can use the v-for directive to render a list of items based on an array or an object.

Front

True

Back

What does this refer to when a function is called using the Function invocation pattern?

Front

The global object, which is 'window' in a web browser

Back

The best defense against hackers is to

Front

Think like a hacker

Back

As its name implies, fetch() cannot be used to upload data to a server, as in a POST request

Front

False

Back

A v-else element must immediately follow a v-if or a v-else-if element - otherwise it will not be recognized.

Front

True

Back

The value of this within a function defined with the Arrow syntax depends upon the invocation pattern used at the time it is called.

Front

False

Back

What is a red team?

Front

Professional attackers hired to break into a system to discover weaknesses

Back

In the Vue configuration object created() is a lifecycle hook, which is a function that is called automatically by Vue with its this object pointing to the Vue instance creating it.

Front

True

Back

fetch() returns a Promise object.

Front

True

Back

What is a White Hat hacker?

Front

An attacker who is motivated by a sense of altruistic duty and is just trying to help

Back

The Vue() constructor takes what as an argument?

Front

A configuration object

Back

What is Reflected Cross-Site Scripting?

Front

JavaScript code embedded in a URL

Back

What is a blue team?

Front

Professionals tasked with keeping attackers out of a system

Back

Vue is a client-side web application framework. This means that it executes code on the server to generate custom webpages on-the-fly.

Front

False

Back

In the Vue configuration object, which property denotes the DOM element which is to be associated with the Vue instance?

Front

el

Back

Why does Security Through Obscurity offer false hope?

Front

Once a system is breached the secret is lost; there is no going back

Back

fetch() is an alternative to which JavaScript feature?

Front

XMLHttpRequest

Back

The first argument to fetch() is

Front

The URL to make a GET request of

Back

By returning a Promise object from the callback passed to the .then() method, and subsequently calling .then() we can force asynchronous API calls into ordered synchronicity.

Front

True

Back

You may define functions within the methods property of the Vue configuration object.

Front

True

Back

Why is it important to prevent sensitive data from being committed into a git repository (e.g. with a .gitignore file?)

Front

Even script kiddies can find your secrets with readily-available programs; Once the data has been pushed to GitHub it is as good as public

Back

What does XSS stand for?

Front

Cross-Site Scripting

Back

What is white box hacking?

Front

Discovering weaknesses in a system with the aid of source code

Back

Which are NIST recommended best-practices regarding selecting a secure password?

Front

Don't rely on 'special' characters to your password; Avoid using passwords from dictionaries; Longer is better

Back

Since you can expect users of your website to behave predictably, it is a waste of time and money to account for deviations from your intended use-cases.

Front

False

Back

In Vue's template language interpolating text within HTML attributes (such as style="" or action="") works the same as interpolation outside of attributes; that is, by using brackets.

Front

False

Back

The @ symbol is a shorthand for v-on:.

Front

True

Back

Input validation should be handled either on the client side or on the server side, but not both

Front

False

Back

When a Vue instance is created, it adds all the properties found in its data object to Vue's reactivity system. When the values of those properties change, the view will "react", updating to match the new values.

Front

True

Back

What is black box hacking?

Front

Discovering weaknesses in a system without the aid of source code

Back

By default, Vue uses which symbols to denote text interpolation in its template language?

Front

{{ }}

Back

What does this refer to when a function is called using the Method invocation pattern?

Front

The object which the function is a property of

Back

Your system doesn't have to be the most secure thing in the world; it only needs to be secure enough to make attackers pass on to easier targets.

Front

True

Back

A Promise in JavaScript is an object representing the eventual completion or failure of an asynchronous operation

Front

True

Back

Code which is triggered by a v-on directive must be declared within the methods property of the Vue configuration object.

Front

False

Back

What is a Black Hat hacker?

Front

An attacker who is motivated by malice or personal gain

Back