





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
CSCI 1103 PROGRAMMING EXAM 2025 STUDY GUIDE QUESTIONS AND ANSWERS
Typology: Exams
1 / 37
This page cannot be seen from the preview
Don't miss anything!






























◉Which CSS layout method is best suited to achieve this layout?. Answer: flex ◉Which css grid property establishes a 3 equal column layout? columns: .33 .33. row: 3 3 3 grid-template-columns: 1fr 1fr 1fr child: 1em 1em 1em. Answer: grid-template-columns: 1fr 1fr 1fr ◉Website colors can be specified in
format as a 6 digit
number. Answer: RGB hex
◉The following css: .special { color: green; margin: 0 0 0 12px; } Makes all paragraphs green with 12px margin bottom Makes paragraphs green with an optional 12px margin. Makes class special elements green with 12px left margin. Makes id special elements green with 12 px margin bottom. Answer: Makes class special elements green with 12px left margin. ◉Which of the following CSS selects all links that are nested inside a list item? ul .a {...} a:hover ul.li {...} a:link list-item {...} li a {....}. Answer: li a {....} ◉In CSS which selectors allow you to target multiple elements on the page?
headers lists. Answer: paragraphs headers lists ◉To horizontally center block elements use: padding-left-right: auto padding: auto margin: 0 auto block: center. Answer: margin: 0 auto ◉Which of the following are css selectors? element class tag id. Answer: id element class ◉html tags used to create sections of the page
. Answer: element Update displays "Update" as a link to update.html displays "update.html" as an attribute of Update displays "update" as plain text
.menu class.menu. Answer: .menu ◉A web design approach that creates dynamic changes to the apprearance of a website based on the screen size of the device used to view it. Question options: search engine optimization cross-browser compatibility user accessibility responsive web design. Answer: responsive web design ◉The HTML element that contains content displayed in the browser: Question options: section element body element main element div element. Answer: body element ◉Which type of element is displayed on a new line? Question options: all types
inline block semantic. Answer: block ◉Which CSS snippet would set the border radius for a div element as shown in this screenshot? Question options: border-radius: 20px; border-radius: 0 20px 10px; border-radius: 30px 10px 20px 10px; border-radius: 10px 100px;. Answer: border-radius: 10px 100px; ◉What elements would the style rule that follows apply to? .red { color: red; } Question options: The only element with an id of red All elements with an id of red The only element with a class named red All elements with the class named red. Answer: All elements with the class named red ◉Which form method attribute sends data along with the page URL.
◉This attribute specifies the action to be performed after a form is submitted. Question options: action method task source. Answer: action ◉_______ elements do not start on a new line. They only take up as much width as necessary. Question options: outline inline block semantic. Answer: inline ◉What is HTML and what is its role in web development? Question options: A high-level programming language interpreted by a browser. The standard markup language used for creating web pages and web applications. Html is a client-side markup language processed by the web browser.
An object-oriented language to be compiled with an html compiler.. Answer: The standard markup language used for creating web pages and web applications. Html is a client-side markup language processed by the web browser. ◉What is the purpose of the alt attribute in the img tag? Question options: specify an alternate address for accessing the image specify an alternate image if the image is not found specify an alternate path to the image specify an alternate text for an image that is required for screen readers. Answer: specify an alternate text for an image that is required for screen readers ◉Used to collect data from users on a webpage: Question options: entry input_el drop_box form. Answer: form ◉Full addresses to the destination page/link. Question options:
addr href src. Answer: href ◉Which form method attribute transfers information in the request body: Question options: GET PUT POST SEND. Answer: POST ◉___________ level elements always start on a new line with some space before and after the element, always takes up the full width available. Question options: outline inline block semantic. Answer: block ◉How do you create hyperlinks in HTML? Question options:
anchor tag hyper tag link tag underline tag. Answer: anchor tag ◉part of the html tag used to specify additional style or information about the html tag, Question options: sources attributes meta items. Answer: attributes ◉When a browser makes a request for a static web page, the web server Question options: returns the HTML for the page and the browser renders it renders the HTML for the page and returns it to the browser generates the HTML for the page and returns it to the browser finds the HTML for the page and renders it. Answer: returns the HTML for the page and the browser renders it ◉html tags
◉How do you create an ordered list and an unordered list in HTML? Question options: ....../ul> ....../ulist>
. Answer: ....../ul> ◉Inline elements: Question options: always starts on a new line does not start on a new line takes the full width of the container takes the full width of the page only takes up as much width to hold the element. Answer: does not start on a new line only takes up as much width to hold the element ◉html specifies _______ levels of headings Question options: 4 5
as many as you specify. Answer: 6 ◉Because applications like Google and Bing rank the pages of a website, a web developer needs to be concerned with Question options: search engine optimization cross-browser compatibility user accessibility responsive web design. Answer: search engine optimization ◉A JavaScript runtime that executes code outside of the browser. Question options: node.js code assist jsRun codelens. Answer: node.js ◉Node.js uses a ____________ architecture. (Check all that apply.) Question options: nonblocking blocking
◉With express, we have access to two object parameters, _________ and _________. Question options: request and response get and put get and post send and receive. Answer: request and response ◉We retrieve items with an Http ________ request. Question options: POST GET RESP RET. Answer: GET ◉app.listen(5000, () => { console.log("What does this callback do?") }) What does this code do? Question options:
Listens to pending requests on the database for 5000 ms. Listens for requests in the UI (frontend) on port 5000. Listens for requests on the backend (server) on port 5000. Listens for user input to the app and invokes the event handler.. Answer: Listens for requests on the backend (server) on port 5000. ◉What is Node.js? Question options: A JavaScript runtime that allows you to execute JS outside of a browser. A framework for Express.js which in turn is a JavaScript runtime. A programming language that allows you to directly interact with databases. A frontend development environment for rendering component interfaces.. Answer: A JavaScript runtime that allows you to execute JS outside of a browser. ◉What is Express.js? Question options: A JavaScript runtime that allows you to execute JS code outside of a browser. A framework for React.js. A framework for Node.js A templating engine for frontend development.. Answer: A framework for Node.js