Quiz
Full-stack-quiz
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (9)
1Select the correct description for the following CSS selector combination: div > p
- ASelects all div elements that are descendants of paragraph elements.
- BSelects all paragraphs that are descendants of div elements.
- CSelects paragraphs that are direct children of div elements.
- DSelects div elements that are direct children of paragraph elements.
- ESelects paragraphs that are siblings of div elements.
2Select the correct syntax to include a CSS stylesheet (style.css) in an html page in the head section.
- A<css rel="stylesheet" type="text/css" href="style.css" />
- B<link rel="stylesheet" type="text/css" href="style.css" ></link>
- C<script rel="stylesheet" type="text/css" href="style.css" />
- D<link rel="stylesheet" type="text/css" href="style.css" />
- E<link rel="stylesheet" type="text/css" src="style.css" />
3What is string interpolation in JavaScript? Select all that apply.
- AStrings and placeholders get passed to default function, which in turn performs interpolation
- BPlaceholders are embedded expressions delimited by dollar sign and curly braces
- CApproximation of two or more strings
- DMerging a third string into two existing strings
- EStrings with substitution of placeholders
- FMathematical approximation of two or more values returned as a string
4What does a specificity value of 0100 mean?
- AAn inline style is used for the CSS rule
- BA class selector is used for the CSS rule
- CAn id selector is used for the CSS rule
- DIt does not mean anything unless there are at least two 1 values
- EA element selector is used for the CSS rule
5What is the rgb() function in CSS? Select all that apply.
- AEach parameter (red, green, blue) defines intensity of that color by specifying a percent value (0 - 100%)
- Brgb(red, green, blue) notation is alternative way of writing colors
- CEach parameter (red, green, blue) defines intensity of that color by specifying a value between 0 and 255
- DFunction of CSS grids, stands for row grid borders
- EThis function does not exist, only the rgba() function exists
6How do you combine the two strings "string1" and "string2" with a blank space in the middle resulting in one line of output in JavaScript? Select all that apply.
- AUsing the & operator:
console.log("string1" & " " & "string2"); - BAnswer,
Using the double pipe:
console.log("string1" || " " || "string2"); - CUsing the + (plus) operator:
console.log("string1" + " " + "string2"); - DUsing the double ++ (plus) operator since single plus is reserved for addition:
console.log("string1" ++ " " ++ "string2"); - EUsing the backward slash operator when written on multiple lines in source code:
console.log("string1 \
\
string2"); - FUsing the tickmark (`):
console.log(
);
- AUsing the & operator:
7When talking about CSS grids, what is a track? Select all that apply.
- ALines between rows or columns
- BSpace between two adjacent grid lines
- CTotal space surrounded by four grid lines
- DDividing lines that make up the structure of grid
- EA row or a column
- FSingle “unit” of grid
8Select the correct CSS rule for specifying the font color to red of a paragraph element with id of pMain.
- ApMain { color: red;}
- B#pMain {fontColor: red; }
- C.pMain {color: red;}
, Not Selected - D#pMain {font-color: red; }
- E#pMain {color: red;}
9What does the following CSS shorthand rule mean: border-width: 1em 2em 3em
- ATop and bottom border widths = 1em, left border widths = 2em, right border width = 3em
- BLeft and right border widths = 1em, top border width = 2em, bottom border width = 3em
- CAll four border widths (top, right, bottom, left) can be either 1em, 2em or 3em depending on space constraints
- DTop border width = 1em, left and right border widths = 2em, bottom border width = 3em
- EError: Shorthand rules cannot have 3 values
Informações
- Descrição
- Quiz sobre Full-stack-quiz, criado por Lidia Perzyna em 01-03-2023.
- Autor
- Lidia Perzyna
- Idioma
- English
- Visualizações
- 0
- Avaliação
- Ainda sem avaliações Avalie este quiz