CS Final

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

What are python file extensions labeled?

.py This file extension is used to indicate that the file contains Python source code that can be executed by the Python interpreter. Python source code files are typically named with a .py file extension, though this is not a requirement and the file can have any name as long as it has the correct file extension. For example, a file containing Python code to print "Hello, World!" to the console might be named hello_world.py.

What is your computer's network address called? 1. LAN 2. IP 3. USB 4. HDMI

2. IP

What kind of languages is 'hypertext' an old name for? 1. Programing 2. English 3. Markup 4. Computer

3. Markup

What is an example of a block element? A) paragraphs B) links C) images D) src

A) paragraphs

How do you move a turtle forward 60 units? A. myTurtle.forward(60) B. myturtleforward(60) C. Turtle.forward(60) D. myTurtle.Forward(60)

A. myTurtle.forward(60)

What is the abbreviation of HTML? A) Hypertext marking language B) Hypertext markup language C) Headertext markup language D) Hypertext markdown language

B) Hypertext markup language

What should a style declaration be grouped with? A) brackets [] B) curly braces {} C) chevron < /> D) parenthesis ()

B) curly braces {}

Which tag in HTML does NOT match the given function? ____ A. <ol>, ordered list B. <ul>, list item C. <thead>, table header D. <br>, break

B. <ul>, list item The <ul> tag represents an unordered list, which is a container for a set of list items. The correct function for this tag is "unordered list". A list item is represented by the <li> tag, which is used inside the <ul> container to define individual items in the list.

The tree structure of a webpage is called A. html B. the document object model C. the block element D. the server

B. the document object model (DOM)

A declaration in CSS will be surrounded by what? A.) () B.) {} C.) [] D.) <>

B.) {} A declaration in CSS will be surrounded by curly braces, {}. A declaration typically consists of a property and a value, separated by a colon, and each declaration is separated by a semicolon.

Which of the following is not a kind of selector? A. ID selector B. Type selector C. Input selector D. Class selector

C. Input selector

In HTML, how many levels of headings are there? A.) 7 B.) 8 C.) 6 D.) 5

C.) 6 The headings are represented by the <h1>, <h2>, <h3>, <h4>, <h5>, and <h6> elements, with <h1> being the highest level and <h6> being the lowest level. Headings are used to structure the content of a page and to create a hierarchy of information.

What does CSS stand for?

Cascading Style Sheets

What is the smallest header in the HTML? A) H1 B) H3 C) H5 D) H6

D) H6

How do you order a three number function in python? A. def OrderThreeNumbers() B. def PrintThreeNumbers() C. def ThreePrintNumbers() D. def ThreeOrderNumbers()

D. def ThreeOrderNumbers()

Which command does NOT make myTurtle face north if it is originally facing east? ____ A. myTurtle.left(90) B. myTurtle.right(270) C. for i in range (0,2) myTurtle.left(45) D. myTurtle.left(pi/2)

D. myTurtle.left(pi/2) This command instructs the turtle to turn left by an angle of pi/2 radians, which is equivalent to 90 degrees, which would make it face south, not north.

What does HTML stand for?

Hypertext Markup Language

What numbers does range(10) generate?

Using rang(10) will generate a list from 0 to 9

In HTML, what is the proper way to start a line where you want the text to be the largest default heading size? a) <h1> b) <H1> c) <title> d) <b1>

a) <h1>

Which HTML tag is used to define a heading/title? a) <h1> b) <h2> c) <t1> d) <t2>

a) <h1>

What does <p> mean in HTML? a) Paragraph b) Parentheses c) Part d) a and c

a) Paragraph

How can you link to portions of the local page? a) Using the id attribute b) Using a block level element c) Using an anchor tag d) Using an inline element

a) Using the id attribute In HTML, you can link to a specific section of a page by using the id attribute on the element that defines that section. For example, if you have a <h1> element with an id attribute of section1, you can create a link to that section using the <a> (anchor) tag, like this: <a href="#section1">Link to Section 1</a> When the user clicks on this link, the web browser will scroll to the element with the id attribute of section1. This technique can be useful for creating table of contents or for allowing users to quickly navigate to different sections of a long webpage. The other options are not related to linking to specific portions of a local page.

What is the difference between an HTML unordered and ordered list? a) an unordered list is a bullet list; an ordered list is number or ordered by some sequence b) an unordered list is number or ordered by some sequence; and ordered list is a bullet list c) an unordered list creates a table; an ordered list creates a chart d) there is no difference

a) an unordered list is a bullet list; an ordered list is number or ordered by some sequence

What kind of brackets do HTML tags use? a. < > b. { } c. [ ] d. ( )

a. < >

Which of the following is the correct way to create tags in HTML for a body? a. <body></body> b. </body><body> c. <body/><body> d. <body><body/>

a. <body></body>

Which tag is used to center text in HTML? a. <center> b. <c> c. <mid> d. <cent>

a. <center>

When writing HTML code, what is the tag for a division? a. <div> b. <division> c. <DIV> d. <DIVISION>

a. <div>

Which HTML header would you use if you wanted a very large title? a. <h1> b. <h3> c. <h5> d. <h7>

a. <h1>

Which tag is used to insert image in HTML? a. <img> b. <li> c. <head> d. <html>

a. <img>

What tag do you use to use CSS? a. <style> b. <css> c. <formatting> d. <htmlstyle>

a. <style>

What is the correct way to code a title for your project? a. <title> insert title here</title> b. <title> c. *Title* <insert here> d. "Title"

a. <title> insert title here</title> In HTML, the title element is used to define the title of a document. The title element should be placed inside the head element of an HTML document. The text you want to use as the title of your project should be placed between the opening and closing title tags.

What are the 2 kinds of tags in HTML? a. Block elements and inline elements b. Syntax element and online element c. Tag elements and block elements d. Syntax element and tag elements

a. Block elements and inline elements In HTML, block elements create a rectangular area on the page and typically start on a new line. Examples of block elements include headings (<h1>, <h2>, etc.), paragraphs (<p>), and divs (<div>). In contrast, inline elements do not create a new rectangular area on the page and can be used within block elements. Examples of inline elements include links (<a>), emphasis (<em>), and images (<img>). The other options do not accurately describe the kinds of tags in HTML.

What does CSS stand for? a. Cascading Style Sheets b. Computer Software System c. Computer Software Sheets d. Chrome Software Sheets

a. Cascading Style Sheets

What is the difference between Class and ID a. Class: Category of tags. ID: A unique tag b. Class: program of events. ID: unique tag c. Class: Category of tags. ID: A general name d. Class: Program of events. ID: A general name

a. Class: Category of tags. ID: A unique tag

How do you set the source of an image to a previously downloaded jpeg file in html? a. Img src = file.jpeg b. Image source = file.jpeg c. Image src = file.jpeg d. Img source = file.jpeg

a. Img src = file.jpeg

What can a server respond with? a. Text files, HTML files, JSON files b. Image files, HTML files, JSON files c. Folder files, HTML files, JSON files d. Test files, HTML files, JSON files

a. Text files, HTML files, JSON files A server is a computer program that responds to requests from clients, typically over the internet. When a client (such as a web browser) makes a request to a server, the server can respond with a variety of different types of files, including text files, HTML files, and JSON files. Text files contain plain text and can be displayed by any text editor or web browser. HTML files contain hypertext markup language and are used to create the structure and content of web pages. JSON files contain data in JavaScript Object Notation format and are often used to transmit data between a server and a web application.

What is a good way to think of IP addresses that we learned in lecture? a. Your computer's phone number on the internet b. A tool similar to Microsoft Word c. A tool to access the internet (like a search engine) d. A nickname

a. Your computer's phone number on the internet

Which python command allows you to define a numerical sequence? a. range() b. input() c. print() d. while

a. range() In Python, the range function is used to generate a sequence of numbers within a specified range. For example, range(5) would generate the sequence 0, 1, 2, 3, 4. This sequence can then be used to control the number of times a loop repeats or to iterate over the elements of a list or array. The range function does not accept any input, so it is not related to the input function. The print function is used to print output to the console, and the while keyword is used to create a while loop in Python.

The HTML attribute used to define the inline styles is? a. style b. styles c. class d. None of the above

a. style The HTML attribute used to define inline styles is style. This attribute is used to specify CSS styles for a specific HTML element. Inline styles are applied directly to the HTML element using the style attribute, and take precedence over styles defined in the <head> section of the HTML document or external style sheets. The class attribute is used to define a class for an HTML element, which can then be used to apply styles to multiple elements on a page.

What is the purpose of CSS? a) For coding websites b) For stylizing HTML files c) For displaying 0's and 1's d) For processing True and False statements

b) For stylizing HTML files

In python, what is the correct syntax for a list? a) list = {} b) list = [] c) list = <> d) list

b) list = [] The correct syntax for a list in Python is list = []. In Python, square brackets [] are used to create a list.

What symbol is used in HTML to indicate the end of a tag? a. : b. / c. \ d. <

b. /

What declaration must all HTML documents start with? a. <head> b. <!DOCTYPE> c. <body> d. <html>

b. <!DOCTYPE>

What is the correct HTML element for inserting a line break? a. <lb> b. <br> c. <break> d. <brk>

b. <br>

What command indicates an ordered list? a. <ul> b. <ol> c. <lo> d. <ul>

b. <ol>

When writing a block of text, which tag should you use? a. <t> </t> b. <p> </p> c. <br/> d. p!

b. <p> </p>

Which of the following is NOT a table tag in HTML? a. <thead> b. <tback> c. <tbody> d. <tfoot>

b. <tback> HTML includes a number of tags that can be used to create and structure tables, including <table>, <thead>, <tbody>, and <tfoot>.

What is Bulma in CSS? a. A function that tells the browser which element(s) to apply the style declarations b. A framework that makes layout and common web styling easier c. A framework that describes what the content should look like and how it should be displayed

b. A framework that makes layout and common web styling easier

What is the Python type for storing true and false values? a. Loop b. Boolean value c. String d. Tag

b. Boolean value

What does the <br> function do in HTML? a. Bold b. Break a line c. Brown color d. Bridge gap

b. Break a line

How do you input the physical image into your code? a. Copy link address and paste it into code with <img src= "insert link" b. Copy image address and paste it into code with <img src="insert link" c. Download the image and insert it into the code d. Moving the file onto the coding

b. Copy image address and paste it into code with <img src="insert link"

What does an href do in HTML? a. Bolds the text b. Creates a link to another page c. Moves you to a specific part on the page d. References where the information comes from

b. Creates a link to another page In HTML, the href attribute is used to create a link to another page. When the link is clicked, the user will be taken to the URL specified in the href attribute. <a href="https://www.example.com">Click here to go to example.com</a>

What type of resources can a server respond with? a. Iphone Files b. JSON Files c. APEX Files d. Index Files

b. JSON Files

A _____ is a sequence of characters. a. Algorithm b. String c. Flowchart d. Variable

b. String

What does CSS allow one to add to an HTML? a. Description b. Style c. Numbers d. Texture

b. Style

How do you create a numbered list in HTML? a. use the unordered list tag <ul> </ul> b. use the ordered list tag <ol> </ol> c. use the numbered list tag <nl> </nl> d. use the character list tag <cl> </cl>

b. use the ordered list tag <ol> </ol>

How are commands for styling in CSS enclosed? a. ( ) b. { } c. [ ] d. < >

b. { }

When using CSS to style, what do you put to separate each command? a.) , b.) ; c.) > d.) <

b.) ;

How can you bold text when using HTML? a.) <bold< b.) <b> c.)<//b//> d.)<break>

b.) <b>

How do you end a line of code in Java? a) : b) - c) ; d) }

c) ;

How must a tag be nested? a) (item) (/item) b) </item> <item> c) <item> </item> d) [/item] [item]

c) <item> </item>

Which of the following symbols is used to group multiple style declarations to a selector in CSS? a) () b) [] c) {} d) <>

c) {}

In HTML, CSS, and Java Script, how can exclude a particular line of code? a. class = exclude b. class = /* c. /*_______________*/ d. */_______________*/

c. /*_______________*/

How to create a hyperlink in HTML? a. <a link = "www.gamingcenter.com"> gamingcenter.com </a> b. <a> www. gamingcenter.com <gamingcenter.com /a> c. <a href = "www.gamingcenter.com"> gamingcenter.com </a> d. <a url = "www. gamingcenter.com" gamingcenter.com /a>

c. <a href = "www.gamingcenter.com"> gamingcenter.com </a> To create a hyperlink in HTML, you can use the <a> element with an href attribute. The href attribute specifies the destination URL for the link.

Which of the following is a break tag? a. <b> </b> b. <break> </break> c. <br> d. <br> <br>

c. <br> In HTML, the <br> tag is used to insert a line break, which is different from a paragraph break (<p>) or a horizontal rule (<hr>). The <br> tag does not have an end tag, so you would not use </br> as shown in the third option. The first and second options are not valid HTML tags.

Which of the following is a proper header tag for HTML a. /head><head> b. [head][head] c. <head></head> d. "head"(head

c. <head></head>

Which of the following will draw a horizontal line across your webpage? a. <li> b. <br> c. <hr> d. <ul>

c. <hr>

How do you write ordered lists in HTML? a. Bullet points b. <il> c. <ol> d. <li>

c. <ol>

What HTML tag do you use to make an unordered list? a. <unordered> b. <unorderedlist> c. <ul> d. <list>

c. <ul>

What must all HTML documents start with? a. A <head> tag b. A <br> tag c. A <!DOCTYPE> declaration d. The table header <thead>

c. A <!DOCTYPE> declaration

A(n) _____ is a set of well-defined logical steps that must be taken to perform a task. a. Float b. Boolean c. Algorithm d. Operands

c. Algorithm

What type of selectors are there in CSS? a. Type selectors b. Class selectors c. Both a and b d. None of the above

c. Both a and b

What does DOM stand for in HTML? a. Direction of Motion b. Digital Output Module c. Document Object Model d. Data Output Message

c. Document Object Model In HTML, the DOM (Document Object Model) is a tree-like structure that represents the hierarchical organization of elements in an HTML document. The DOM allows developers to programmatically access and manipulate the contents of an HTML page, which can be useful for creating interactive websites and applications.

What is the tree structure of a webpage called a. Type selectors b. Tag c. Document Object Model (DOM) d. DOCtype

c. Document Object Model (DOM) In HTML, the tree-like structure of a webpage is called the Document Object Model (DOM). The DOM represents the hierarchical organization of elements in an HTML document, such as headings, paragraphs, and links. The DOM allows developers to programmatically access and manipulate the contents of a webpage, which can be useful for creating interactive websites and applications. The DOM is not related to type selectors, tags, or the DOCTYPE declaration in HTML.

Which of the following is not a programing language? a. Python b. C++ c. HTML d. Java

c. HTML It is a markup language, not a programming language.

Where is the best place to add style declarations for your webpage? a. In the header for HTML as, color = red b. In the body of HTML as, color = red c. In CSS as, "color: red;" d. In CSS as, color red;

c. In CSS as, "color: red;"

What does IP stand for? a. Internet Portal b. Internet Proxy c. Internet Protocol d. Internet Parameter

c. Internet Protocol

What does the <h1></h1> element do? a. Prints h1 b. It displays regular text c. It is the most important and largest heading d. It is the least important and smallest heading

c. It is the most important and largest heading

Which choice is a list in python? a. List = 5 b. List = "this" + "list" c. List = ["this", "is", "a", "list"] d. List = true

c. List = ["this", "is", "a", "list"]

Which of the following options are not contained in the <table> element in HTML? a. A number of table cells b. A number of table rows that organize table cells c. Microsoft Excel table management tools d. All of the above are contained in the table element

c. Microsoft Excel table management tools

In python, using the input() command returns what type of value? a. Integer b. List c. String d. Dictionary

c. String In python, using the input() command returns a string value. This means that whatever the user types in response to the input() prompt will be interpreted as a string, even if it contains numbers. For example, if the user types the number 42 in response to an input() prompt, it will be stored as the string "42", not the integer 42. If you want to get a numerical value from the user, you will need to convert the string to a number using the appropriate type conversion function. For example, you can use the int() function to convert a string to an integer, or the float() function to convert a string to a floating-point number.

What does the document model object (DOM) do? a. The DOM uses angle brackets to identify HTML tags b. The DOM creates a link between two resources c. The DOM determines the structure of the content on the page d. The DOM links to portions of the local page

c. The DOM determines the structure of the content on the page Stands for document object model

Choose a CORRECT one from below about LIST in HTML a. Ordered List: <ol> <list> item 1 <list> item 2 </ol> b. Ordered list: <li> <ol> item 1 </ol> <ol> item 2 </ol> </li> c. Unordered list: <ul> <li> item 1 </li> <li> item 2 </li> </ul> d. Unordered list: <li> <ul> item 1 </ul> <ul> item 2 </ul> </li>

c. Unordered list: <ul> <li> item 1 </li> <li> item 2 </li> </ul>

What symbols do you use while adding style to your webpage? a. <> b. () c. {} d. []

c. {} The value of the style attribute is a set of style rules, enclosed in curly braces ({}).

A server cannot respond with which one of the following resources? a. HTML Files b. JSON Files c. Text Files d. .R Files

d. .R Files A server cannot respond with .R files. .R files are a type of script file used by the R programming language, which is typically used for statistical computing and data analysis.

How many kinds of tags are in HTML? a. 1 b. 2 c. 3 d. 4

d. 4 Think HTML, Head, Title, Body. HTML uses four types of tags: opening tags, closing tags, empty elements, and attribute tags. Opening and closing tags are used to mark the beginning and end of an HTML element, and are indicated by a less-than sign (<) and a greater-than sign (>), respectively. Empty elements are self-closing and do not require a closing tag. Attribute tags are used to add additional information to an HTML element.

What must all HTML documents start with? a. a title b. your name c. <head> d. <!DOCTYPE> Declaration

d. <!DOCTYPE> Declaration

Which of the following is NOT part of making a list in HTML? a. <ol></ol> b. <li></li> c. <ul></ul> d. <nl><nl>

d. <nl><nl> In HTML, there are two main types of lists: ordered lists and unordered lists. Ordered lists are created using the <ol> (ordered list) element, and each item in the list is defined using the <li> (list item) element. Unordered lists are created using the <ul> (unordered list) element, and each item in the list is again defined using the <li> element. The <nl> element does not exist in HTML, so it is not used for creating lists.

Which of the following is NOT part of a table in HTML? a. <table></table> b. <th></th> c. <tr></tr> d. <tc></tc>

d. <tc></tc> In HTML, tables are created using the <table> element. Within a <table> element, rows are defined using the <tr> (table row) element, and cells within a row are defined using the <td> (table cell) element. The <th> (table header) element is used to define cells that contain column or row labels. The <tc> element does not exist in HTML, so it is not part of a table.

In CSS, there are multiple kinds of selectors. Which of the following is not a kind of selector? a. Type selector b. Class selector c. ID selector d. Bulma Selector

d. Bulma Selector In CSS, there are three main types of selectors: type selectors, class selectors, and ID selectors. Type selectors match elements based on their type, such as p for paragraph elements or a for anchor elements. Class selectors match elements based on the value of their class attribute, and ID selectors match elements based on the value of their id attribute.

The correct sequence of HTML tags for starting a webpage is a. Head, Title, HTML, body b. HTML, Body, Title, Head c. HTML, Head, Title, Body d. HTML, Head, Title, Body

d. HTML, Head, Title, Body

Which one of the following is not a block element? a. Paragraphs b. Lists c. Table cells d. Links

d. Links "links" is not a block element. In HTML, a block element is a type of element that is used to create a visible "block" on a web page. This means that it occupies its own space on the page, separate from other elements, and typically takes up the full width of its container. Block elements include elements such as paragraphs, headings, lists, and table cells, which are all visible blocks of content that can be formatted and styled independently.

Which of the following is not a way in which CSS can style an image? a. Opacity b. Borders c. Rounded corners d. None of the above

d. None of the above They all can be used to style an image.

Which of the following is not a kind of selector a. Type selector b. Class selector c. ID selector d. Star selector

d. Star selector

Which one of the following describes kinds of selectors INCORRECTLY? a. Type selectors: Type selectors are existing html tags. b. Class selectors: Category of tags which are already defined by users. c. ID selectors: A unique individual tag. d. Style selectors: The style that has been adopted in html.

d. Style selectors:

Which of the following isn't an attribute of an IP address? a. It's your computer's phone number b. They are assigned by the router c. The DNS keeps track of all of them d. They are installed on an app in your phone

d. They are installed on an app in your phone *Note: The Domain Name System (DNS) is a hierarchical and distributed naming system for computers, services, and other resources in the Internet or other Internet Protocol networks.

What is NOT an example of a resource that a server can respond with on HTML? a. Media (images, movies) b. HTML files c. JSON files d. Website links

d. Website links

A CSS declaration is surrounded by a. ( ) b. [ ] c. < > d. { }

d. { }

How can you add comments on HTML? a.) <! !> b.) # c.) // d.) <!>

d.) <!>

What is the abbreviation for table cell in HTML? a.) <tr> b.) <th> c.) <tc> d.) <td>

d.) <td>


संबंधित स्टडी सेट्स

EMT chapter 26- Soft Tissue Injuries 2

View Set

PARA 470: Test #4 (Social Security)

View Set

BUS 134-70 - TEST 2 - Chapters 4 through 7

View Set