【Software tools】Mock Test 2 整理
Software tools的Mock Test的第二次练习
Tools MockTest Part2
Q1.Type the name of the HTML tag used to create a line break without ending the paragraph. (Type no spaces, nor angled brackets.)
line break - 换行符
Answer: br
Q2.Complete the following HTML tag with one word (no spaces or other punctuation)
1 | [a] |
Answer: [a]
Q3.Complete the following HTML tag with one word (no spaces or other punctuation)
<a href = "/dogs">dogs</a>
so that it creates a link that, when clicked, loads the pages /dogs.
Q4.Consider the following sentence: “Click here for more information.” Which of the following HTML snippets would make the word ‘here’ link to the page ‘www.example.com‘?
1 | [a] |
Answer: [c]
Q5.Which of the following is not a property of the CSS Box Model?
column is not a property of the CSS Box Model.
margin, border, padding are all the property.
Q6.Which of the following CSS rules is not correct?
Answer: $div{property: value}
其他正确的:
- #id{property: value}
- .class{property: value}
- tag{property: value}
Q7.Are the following statements about JavaScript variables true or false?
true - [a] Variables with block scope are declared using the let keyword.
true - [b] The keyword const is used to to declare variables that you should not change after they are assigned.
false - [c] A variable declared outside a function definition using the let keyword is a global variable.
true - [d] A variable declared outside a function definition using the var keyword is a global variable.
Q8.Type the output logged to the console when the following code is run. (Do not type any spaces.) var x; console.log(typeof(x));
Undefined
Q9.Given the following JavaScript object, which of the following expressions cannot be used to determine whether the object has the property description?
1 | let flowers = { |
Answer: flowers.contains(description); – This one can not(这个不行)
其他可以用来determine whether the object的:
- flowers.hasOwnProperty(“description”);
- if(flowers.description != undefined);
- if(‘description’ in flowers){ return true;}