knowledge-kitchen / course-notes

Exam 1 Practice Questions

Basic concepts

  1. Which of the following is an example of an application?
  1. How are files organized on a computer?
  1. What happens when you double-click a file on a computer?
  1. What is the current working directory?
  1. What is the role of a client computer in a network?
  1. Which of the following is an example of a web server?
  1. What is the purpose of a web browser?
  1. What is the difference between the internet and the web?
  1. Which of the following is an example of a protocol used on the internet?
  1. What is the purpose of uploading data?
  1. What is the purpose of downloading data?
  1. What is the term used to describe a computer that acts as both a client and a server?
  1. Which of the following is an example of a software client?
  1. What is the purpose of a web server?
  1. How are files organized on a computer?
  1. What is the purpose of the File menu in an application?
  1. What is the purpose of the Windows Explorer tool?
  1. What is the purpose of the Mac Finder tool?
  1. What is the purpose of the operating system’s mapping of file extensions to applications?
  1. How are files stored on a computer?
  1. Which of the following are hardware? (select all that apply)
  1. Mac OS X is really an extension of which operating system?
  1. The first “modern” operating system that influenced all others was…
  1. Google’s Android operating system for mobile devices is based on Linux. However, Google does not pay royalties to the creators of Linux. Why is this possible?
  1. Which technology innovator was the first major figure to take a public stand against the free sharing of software?
  1. The Linux operating system was the result of a project to develop a free clone of UNIX spearheaded by
  1. The “Desktop Metaphor” was invented in
  1. Hypertext was first popularized by
  1. The World Wide Web was invented by
  1. GNU stands for:
  1. Using a native email app on an iOS or Android phone is an example of using…
  1. A good filename for any file on any operating system… (select all that apply)
  1. A client computer… (select all that apply)
  1. What does an operating system do? (select all that apply)
  1. Copyleft (select all that apply)
  1. All operating systems include the concept of file permissions
  1. All operating systems include a Graphical User Interface does an operating system do? (select all that apply)
  1. The binary number 101 is the same as the decimal number…

Operating systems

  1. What is the purpose of an operating system?
  1. Which of the following is NOT a common type of operating system?
  1. How do users typically interact with an operating system?
  1. What are some components typically included in an operating system?
  1. What is the significance of GNU in the context of operating systems?
  1. Which of the following statements is true about copyleft?
  1. What is the purpose of the “Overview” section in the document?
  1. What is the main focus of the “Interacting With The OS” section?
  1. Which section of the document discusses the components included in an operating system?
  1. What is the purpose of the “Conclusions” section in the document?

UNIX

  1. In UNIX-based systems, what is the command to view both hidden and non-hidden files?
  1. In UNIX-based systems, which is the correct way to navigate from the current working directory into a subfolder named ‘media’?
  1. The following 5 questions refer to this directory listing
total 24
drwxr-xr-x 11 bartholemu staff 374 Jun 10 13:50 .
drwx------+ 17 bartholemu staff 578 Jun 14 14:56 ..
-rw-r--r--@ 1 bartholemu staff 6148 Jun 10 13:50 .DS_Store
drwxr-xr-x 6 bartholemu staff 204 Jun 1 13:16 examples_060134
drwxr-xr-x 5 bartholemu staff 170 Jun 2 13:10 examples_060234
drwxr-xr-x 5 bartholemu staff 170 Jun 3 12:02 examples_060334
drwxr-xr-x 5 bartholemu staff 170 Jun 4 11:56 examples_060434
drwxr-xr-x 6 bartholemu staff 204 Jun 8 12:48 examples_060834
drwxr-xr-x 7 bartholemu staff 238 Jun 9 12:32 examples_060934
drwxr-xr-x 6 bartholemu staff 204 Jun 10 12:40 examples_061034
-rw-r----- 1 bartholemu staff 700 Jun 9 17:05 student_websites_summer2034.txt
  1. How many directories appear in this listing?
  1. How many of those directories are subdirectories of the displayed directory?
  1. How many hidden files are displayed?
  1. What command was used to generate this listing?
  1. Assuming these files are on a web server within in a directory beneath the web root, would the file, student_websites_summer2034.txt be visible through a web browser?
  1. The command that would be used to alter the answer from the previous question would be:

Remote login

  1. What is the hostname of the web server used for remote login?
  1. Which command is used to remotely log in to the web server?
  1. Where can you find your personal home folder on the web server?
  1. What is the purpose of the public_html folder?
  1. How can you access your web root directory from a web browser?
  1. Which command is used to log in to the web server?
  1. How can you reset your password for the i6 account?
  1. What is the path to the web root directory?
  1. Which type of command shell program is required for remote login?
  1. What should you do after logging in to your account home directory?

File transfer

  1. What is the purpose of using a file transfer program?
  1. Which of the following is a recommended file transfer program?
  1. How do you connect to a web server using SFTP?
  1. Where should you place your files on the web server to make them visible through the web URL?
  1. How do you upload files to the web server using a file transfer program?
  1. How can you verify that the files are published on the web?
  1. What is the web URL for a file located at “/home/username/public_html/origami.html” on the server “i6.cims.nyu.edu”?
  1. What should you do if you encounter a permissions error on the server?
  1. Which files must allow others to read them when published to the web?
  1. Which programs/scripts must have execute permissions granted to others on the web server?

Web Architecture

  1. What does HTTP stand for?
  1. Which request type is used when a web client wants to retrieve a specific information resource?
  1. What does the status code range 400 to 499 indicate in a web server response?
  1. Which front-end technology controls the visual style of the content on a web page?
  1. What is the purpose of semantic markup in HTML?
  1. Which CSS code would give all level 2 headings green text?
  1. How can you select only the paragraphs with the class “my_favorite_paragraphs” in CSS?
  1. What is the purpose of the action attribute in an HTML form tag?
  1. Which HTTP request type is used to send data to the web server along with the request?
  1. What is the purpose of CSS Flexbox?
  1. Which front-end framework provides ready-made CSS and JavaScript code for common interface design needs?
  1. What is the purpose of the method attribute in an HTML form tag?
  1. Which HTTP response status code indicates a successful request?
  1. What is the purpose of JavaScript in front-end web development?
  1. Which front-end technology controls the content present on a web page?
  1. What is the purpose of the Content-Type header in an HTTP request?
  1. Which HTTP request type is used to retrieve a specific information resource?
  1. What is the purpose of the Accept-Encoding header in an HTTP request?
  1. Which front-end technology controls the interactive behaviors of a web page?
  1. What is the purpose of the Accept-Language header in an HTTP request?

HTML

  1. What is the purpose of the title element in HTML?
  1. Which element is used to inform the web browser of another file to load?
  1. What does the body tag indicate in HTML?
  1. What is the purpose of tag pairs in HTML?
  1. Which of the following is a self-closing tag in HTML?
  1. What is the purpose of tabs in HTML?
  1. How should elements be formatted to improve code readability?
  1. Which element is used to indicate the main heading of a page?
  1. What is the purpose of attributes in HTML?
  1. Which attribute is required for the img tag?
  1. Which element is used to group content within the body?
  1. How can you test a web page that you have been developing?
  1. What is the purpose of the meta element in the head?
  1. Which element is used to create a numbered list in HTML?
  1. What is the purpose of the form element in HTML?
  1. Which element is used to create a checkbox input in a form?
  1. What is the purpose of the header element in HTML?
  1. How can you run a web server on your own computer using Visual Studio Code?
  1. Which element is used to create a video player in HTML?
  1. Where can you find more information on using HTML elements?
  1. The important distinction when choosing between <ol> and <ul> elements when writing HTML code is…
  1. The HTML element used to indicate a set of navigation links is…
  1. The required attribute of the <a> element is
  1. The acronym, HTML, stands for
  1. Proper indentation of HTML and CSS code is important because… (select all that apply)
  1. Nesting of HTML tags indicates…
  1. The rule in HTML that “all tags that open must close!” is important because (select all that apply)
  1. Which is the correct code for a link from a page hosted on the i6.cims.nyu.edu server to Wikipedia.org’s home page?
  1. So-called “wrapper” or “container” elements are useful in HTML code because they help… (select all that apply)
  1. Without the proper setting for the value of the <meta> tag’s charset attribute, …
  1. The tag used to indicate the most important content on a given web page is…
  1. The tag used to indicate the version of HTML used by any given hypertext document is…
  1. HTML is intended to be used to indicate… (select all that apply)
  1. HTML code is rendered by the…
  1. Web pages are published by…

CSS

  1. Which language is used to style the content of a web page?
  1. What is the philosophy behind the separation of concerns in web development?
  1. Which is the preferred method of including CSS into an HTML document?
  1. How can you select all p elements in CSS?
  1. Which property is used to change the text color in CSS?
  1. What is the purpose of the id attribute in HTML?
  1. How can you select elements with the class even in CSS?
  1. Which property is used to change the width of an element in CSS?
  1. What is the purpose of the margin property in CSS?
  1. Where can you find more information about CSS?
  1. Which selector is used to apply the same set of rules to multiple elements?
  1. How can you select p elements within an article element in CSS?
  1. What is the purpose of the > symbol in CSS?
  1. Which language is used to control the interactive behavior of content on a web page?
  1. What is the purpose of the style element in HTML?
  1. How can you select elements with the class featured in CSS?
  1. Which property is used to change the background color of an element in CSS?
  1. What is the purpose of the padding property in CSS?
  1. Which property is used to change the font size in CSS?
  1. What is the purpose of the border property in CSS?
  1. The hexadecimal code #0000ff represents which color in CSS?
  1. By default, which of the following are default behaviors of all elements with the ‘block’ display setting in CSS? (select all that apply)
  1. By default, which of the following are default behaviors of all elements with the ‘inline’ display setting in CSS? (select all that apply)
  1. The most useful types of elements for creating the structure and general layout of all web pages are:
  1. What visual result will the following style cause…. (select all that apply)
h1 {
  text-align: center;
}
  1. What visual result will the following style cause…. (select all that apply)
p#second {
  font-family: sans-serif;
}
  1. What elements could potentially be styled by the following CSS code? (select all that apply)
p#second a {
  font-family: sans-serif;
}
  1. Which type of HTML element(s) could the following CSS code select for?
header div.pub h1#magazine_heading {
  /*...*/
}
  1. Which type of HTML element(s) could the following CSS code select for?
header,
div.pub,
h1#magazine_heading {
  /*...*/
}
  1. What will be the effect of the following CSS code on how <p> elements are rendered by the web browser?
p {
  padding: 10px;
}
  1. The difference between serif and sans-serif fonts is… (select all that apply)
  1. The hexadecimal color code “#00ff00” represents the color:
  1. The hexadecimal number 1b is the same as the decimal number…
  1. The <div class="clear"> element requires the following CSS rule to be applied to it, in order for it to serve its intended purpose:
  1. Which two of the following CSS rules would be required to be applied to the <div class="container"> element, in order to illustrate its two main purposes in web page design? … (select two responses)
  1. The float property is used…

CSS Layout

  1. What CSS property can be used to restrict the width of a page?
  1. How can you center the contents of a container element?
  1. What happens if you set the height of an element to a fixed size?
  1. What is the width of an element calculated as?
  1. Which CSS display value is used for block elements?
  1. Which elements are commonly set to display: block by default?
  1. What is the behavior of block elements?
  1. Which elements are commonly set to display: inline by default?
  1. What is the behavior of inline elements?
  1. What are div and span used for?
  1. What is the purpose of the .container class in CSS layout?
  1. Which CSS position value should be used for general web page layout?
  1. What is the main purpose of CSS Grid?
  1. What is the main purpose of CSS Flexbox?
  1. Which CSS property is used to adjust the width of a container in CSS Grid?
  1. Which CSS property is used to adjust the width of a container in CSS Flexbox?
  1. What is the purpose of the gap property in CSS Flexbox?
  1. Which CSS property is used to justify the inner elements within a Flexbox container?
  1. What is the purpose of the header element in HTML?
  1. What is the purpose of the nav element in HTML?

JQuery

  1. Which browser is currently the most popular by market share?
  1. Who invented JavaScript?
  1. Which browser was considered a pariah by many developers from the 1990’s thru the 2010’s?
  1. Which framework can be used to smooth out browser implementation differences?
  1. What type of events can JavaScript respond to?
  1. How can you handle a click event using JQuery?
  1. How can you handle a mouseover event using JQuery?
  1. How can you handle a mouseout event using JQuery?
  1. How can you perform an action after a certain period of time has passed using JQuery?
  1. How can you hide an element using JQuery?
  1. How can you show a hidden element using JQuery?
  1. How can you change the text nested within an element using JQuery?
  1. How can you change the style of an element using JQuery?
  1. How can you modify an element’s class using JQuery?
  1. How can you change the value of an attribute using JQuery?
  1. How can you animate an element using JQuery?
  1. Which browser is currently the second most popular by market share?
  1. Which browser is currently the third most popular by market share?
  1. Which browser was first released in 2011?
  1. Which browser attempts to offer an alternative funding model for websites?
  1. What is the purpose of copyright?
  1. What is copyleft?
  1. Who is the creator of the Linux operating system?
  1. What is the origin of Linux?
  1. What is the GNU organization?
  1. What is the purpose of the GNU General Public License (GPL)?
  1. What is the difference between copyright and copyleft?
  1. What is the significance of the GNU project in the development of Linux?
  1. What is the relationship between Linux and Unix?
  1. What is the role of the Free Software Foundation (FSF) in the GNU project?
  1. What is the purpose of the Creative Commons licenses?
  1. What is the difference between open source and free software?
  1. What is the purpose of the Creative Commons Attribution license?
  1. What is the significance of the GNU General Public License (GPL) in the open source community?
  1. What is the purpose of the GNU Lesser General Public License (LGPL)?
  1. What is the difference between the GNU General Public License (GPL) and the GNU Lesser General Public License (LGPL)?