You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var galaxies = {"Milky Way", "Whirlpool", "Andromeda"};
Q27. Which description correctly describes the initial values of flex items if the only thing you have done is apply display: flex to their parent?
Items display in a row, lined up at the start, and do not stretch to fill the container
Items display in a column, lined up at the start, and do not stretch to fill the container
Items stay in a column until you add some flex properties.
Items display in a row, lined up at the start, and stretch to fill the container
Q28. Which line of code, if applied to all flex items in a flex container, would cause each flex item to take up an equal share of the total width of the container? For example, if there are four items, they would get 25% of each/
flex: 1 0 0;
flex: initial;
flex: 1 1 auto;
flex: 1 0 auto;
Q29. A video on your webpage does not display and the console shows an error about mixed content. What is happening?
The webapge is using a DOCTYPE, which renders it incapable of displayed video in addition to other web content.
Your browser does not support HTML5 video.
The video is from a source that cannot be displayed in your location for legal reasons.
The page is loaded via HTTPS, but the video is being served insecurely as HTTP and the browser is blocking it.
Q30. What will this loop print?
let max = 3;
for (i = 0; i > max; i++) {
document.write("skrt ");
}
skrt skrt skrt
skrt skrt
skrt skrt skrt skrt
nothing
Q31. You have placed an image in a directory named images and want to reference it from a page located in the root of your site. Which choice would correctly display the image on the page?
< img src="image.jpg">
< a href="images/image.jpg">
< img src="images/image.jpg">
< img href="image.jpg">
Q32. Which choice is a correct use of the parseInt() function in Javascript that parses a string and return an integer?
parseInt("six");
parse_int('6');
parseInt("6");
parseint("6");
Q33. How can you rewrite this function using arrow function syntax?
let product => (x,y) { x * y; }
let product = (x,y) => x*y;
let product => x*y;
let product = (x,y) -> x*y;
Q34. Lighthouse is a tool for auditing your website. Which choice is not a category of report offered by Lighthouse?
performance
UX design
accessibility
SEO
Q35. In the context of this code, how would you describe user?
Q39. You have a set of images that are slightly different sizes and aspect ratios. You don't mind if you crop off some of the image, but you want each image to completely fill a square box without being distorted. Which property and value would achieve this?
object-fit: contain
object-fit: stretch
object-fit: all
object-fit: cover
Q40. what does the CSS selector a[href$="org"] select?
all <a> tags whose href attribute begins with "org"
all <a> tags whose href attribute equals "org"
all <a> tags whose href attribute ends with "org"
all <a> tags whose href attribute contains "org"
Q41. Which choice is not of invoking strict mode in JavaScript?
it eliminates some JavaScript silent errors by changing them to throw errors.
it prohibits some syntax likely to be defined in future versions of ECMAScript.
it forces the writing of valid HTML and CSS.
it fixes mistakes that make it difficult for JavaScript engines to perform optimizations.
Q45. _____ moves an element completely out of the page's normal layout flow, like it is sitting on its own separate layer. From there, you can fix it in a position relative to the edges of the page's element (or its nearest positioned ancestor element)?
Sticky positioning
Absolute positioning
Relative positioning
Fixed positioning
Q46. You have created a box that has a height set with CSS. Which line of CSS would add scroll bars if the content is taller than the box, but leave no visible scroll bars if the content fits into the box?
.box { overflow: scroll; }
.box { overflow: scroll-x; }
.box { overflow: auto; }
.box { overflow: none; }
Q47. Which array method should you apply to run a function for every item within an array, returning an array of all items for which the function is true?