SI 364 Week 1 Quizzes
What CSS selector would style a tag that looks like this: < ... class="puppy">
.puppy { ...
Which command do you use to exit the SQLite comand line tool?
.quit
What is the start of an HTML comment?
<!--
Which of the following statements are true?
A "class" attribute can be used many times in an HTML file An "id" attribute should only be used once in an HTML file
What is the purpose of the admin site in a Django project?
A site that lets you add, change, and delete data items
What can you do in the Django Shell that you can't do in the Python Shell?
Access a Django model
What does the "b" in "bash shell" stand for?
Bourne
What do you put at the beginning of an HTML file to inform the browser which variant of HTML you will be using in this document?
DOCTYPE
In the bash shell, what is the tab used for?
File and folder completion
The Linux command to search files for a particular string is "grep". What does "grep" stand for?
Global Regular Expression Print
For the following HTML, which description of the "style=" attribute is most accurate?
It allows the application of the specified CSS rule to the content of the paragraph
What is the most commonly used operating system for production servers in the cloud.
Linux
What operating system are you using in PythonAnywhere when you open a Bash shell?
Linux
Which command prompt generally ends in dollar sign ($)?
Linux shell
Which command prompt uses three chevrons (>>>)?
Python shell
In the bash shell, what are the arrow keys used for?
Scolling up and down in commands you previously typed
What is true about the following HMTL? <a href="http://www.dr-chuck.com/page2.htm">Second Page</a>
The reference is an absolute reference
Why is there more than one font listed in the following CSS rule?
They are listed in descending preference order if fonts are not present in the browser
In the mysite/urls.py file, what is the basic idea of "include"?
To make it easy to plug-and-play URLs
Which of the following is not a way to include CSS in an HTML page?
Using the <font> tag to enclose other tags
What organization is responsibile for standards for HTML and the web.
World Wide Web Consortium
What does it mean when you see the "..." command in the command line interface?
You are writing a multi-line Python statement
In HTML, what attribute is used to indicate text that will be shown if an image is not loaded or read to a user that is using a screen reader? [_____]
alt
What is the preferred tag in modern HTML to indicate that text is to be shown in italics format?
em
Which of these CSS rules make text appear in a bold face font?
font-style: bold
Which CSS selector controls how a link (anchor tag) looks while the user mouses over the link (i.e. while hovering)? [_____]
hover
Which is the correct ordering of opening tags in a well formed html document?
html head title body h1
What is the HTML tag for an item in a bulletted list?
li
What tag is used to import a style sheet into an HTML document? [_____]
link
Which of the following CSS selectors is between the content area and the border? (CSS box model)
padding
What command do we run on PythonAnywhere instead of "python manage.py runserver"?
python manage.py check - and then reload the web application
What command is used to add a new application to a Django project?
python manage.py startapp
Which command do you use to exit the Django Shell?
quit()
Which of the following commands will exit the Python Shell?
quit()
Which of these is a reserved word in the SQL (database) language?
select
What character is the SQLite command line tool looking for when you see the '...>' prompt?
semicolon
Which HTML tag does nothing to the text it surrounds and has as its sole purpose to create a "handle" so as to be able to apply CSS to the text. [_____]
span
What is the preferred tag in modern HTML to indicate that text is to be shown in bold format?
strong
What is the tag that is used in a document's <head> area to set the text shown in the tab of the browser or title bar? [_____]
title
What CSS rule allows you include a tag in markup but hide it from view in the browser?
visibility: hidden;
Which of these commands must be typed when you start a new shell to activate your virtual environment to make sure you have the correct versions of Python and Django.
workon django4