Quiz
WEB 2.0
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (152)
1• Where in an HTML document is the correct place to refer to an external style sheet?
- A• In the <head> section
- B• In the <body> section
- C• At the end of the document
- D• At the top of the document
2Which HTML tag is used to define an internal style sheet?
- A<style>
- B<body>
- C<head>
- D<script>
3• Which of the following property (CSS) is used to make a font italic or oblique?
- A• font-variant
- B• font-style
- C• font-family
- D• font-weight
4Which of the following property (CSS) is used to align the text of a document?
- Atext-align
- Btext-decoration
- Ctext-transform
- Dtext-index
5Which of the following property (CSS) of a table element controls the placement of the table caption?
- Ao :Empty-cell
- Bo :Caption-side
- Co :Border-spacing
- Do :Border - collapse
6
• Which of the following property (CSS) changes the width of left border?- A• :border-bottom-width
- B• :border-right-width
- C• :border-top-width
- D• :border-left-width
7• Which of the following property (CSS) specifies the top margin of an element?
- A• :margin-top
- B• :margin-left
- C• :margin
- D• :margin-bottom
8• Which of the following (CSS) defines a measurement as a percentage relative to another value, typically an enclosing element?
- A• cm
- B• %
- C• ex
- D• em
9• Which of the following property (CSS) is used to make a font italic?
- A• font-style
- B• font-family
- C• font-weight
- D• font-variant
10Which of the following property (CSS) is used to set the color of a text?
- Acolor
- Bdirection
- Ctext-shadow
- Dtext-decoration
11Which of the following property specifies the width of a border?
- A• :border-color
- B• :border-width
- C• :border-style
- D• :border-bottom-color
12• Which of the following property changes the width of bottom border?
- A• :border-top-width
- B• :border-left-width
- C• :border-right-width
- D• :border-bottom-width
13• Which of the following property (CSS) specifies a shorthand property for setting the margin properties in one declaration?
- A• :margin-top
- B• :margin-left
- C• :margin
- D• :margin-bottom
14• Which of the following property (CSS) is used to set the background color of an element?
- Ao Background-image
- Bo Background-position
- Co Background-repeat
- Do Background-color
15• Which of the following property (CSS) is used to add or subtract space between the words of a sentence?
- Ao Letter-spacing
- Bo Direction
- Co Word-spacing
- Do Color
16• Which of the following property (CSS) is used to set the opacity of an image?
- A• Height
- B• Border
- C• Width
- D• moz-opacity
17• Which of the following property (CSS) specifies whether a border should be solid, dashed line, double line, or one of the other possible values?
- A• :border-width
- B• :border-style
- C• :border-color
- D• :border-bottom-color
18• Which of the following is correct about CSS?
- A• Using CSS, we can view offline websites. The cache also ensures faster loading and better overall performance of the website.
- B• All
- C• CSS can store web applications locally with the help of an offline cache.
- D• Style sheets allow content to be optimized for more than one type of device.
19• Which of the following (CSS) defines a measurement in screen pixels?
- A• vw
- B• px
- C• vmin
- D• vh
20• Which of the following property (CSS) is used as a shorthand to specify a number of other background properties?
- A• background-attachment
- B• background-position
- C• background-repeat
- D• background
21• Which of the following is a component of CSS style rule?
- A• Property
- B• Value
- C• All
- D• Selector
22• Which of the following is a way to associate styles with your HTML document?
- A• Inline CSS -The style Attributes
- B• None
- C• Both of the above
- D• Embedded CSS - The <style> Element
23• Which of the following property (CSS) is used to create a small-caps effect?
- A• font-weight
- B• font-variant
- C• font-style
- D• font-family
24• Which of the following property (CSS) is used to increase or decrease how bold or light a font appears?
- A• font-variant
- B• font-weight
- C• font-style
- D• font-family
25• Which of the following property (CSS) is used to set the text shadow around a text?
- A• text-decoration
- B• text-transform
- C• white-space
- D• text-shadow
26• Which of the following property (CSS) of a table element specifies the width that should appear between table cells?
- A• :Border-spacing
- B• :Caption-side
- C• :Empty-cell
- D• :Border - collapse
27• Which of the following property (CSS) is used to increase or decrease the size of a font?
- A• font-weight
- B• font
- C• font-variant
- D• font-size
28• CSS Comments:
- A• //...
- B• /!.../
- C• *...*
- D• /*...*/
2943. A relative measurement for the height of a font in_____ spaces. This unit is equivalent to the size of a given font. (CSS)
- Ao em
- Bo px
- Co mm
- Do cm
3044. The _______ property specifies the stack order of an element (CSS).
- Ao z-index
- Bo type
- Co p
31• This property is used to capitalize text or convert text to uppercase or lowercase letters.
- A• white-space
- B• font-family
- C• text-decoration
- D• text-transform
32• This property is used to control the flow and formatting of text. (CSS)
- Ao text-decoration
- Bo font-family
- Co white-space
- Do text-transform
33• This property is used to add or subtract space between the letters that make up a word. (CSS)
- A• word-spacing
- B• text-indent
- C• text-align
- D• letter-spacing
34This property is used to set the text shadow around a text.(CSS)
- Ao text-shadow
- Bo word-spacing
- Co text-indent
- Do text-align
35• This property is used to indent the text of a paragraph. (CSS)
- A• letter-spacing
- B• text-align
- C• word-spacing
- D• text-indent
36How do you display a border like this (CSS):
- A• border-width: 11px 51px 21рх 11рх
- B• border-width: 51px 21px 11px 11px
- C• border-width: 11px 11px 51px 21рх
- D• border-width: 11px 21px 51px 11px
37• _____ properties are CSS properties that let you set the values of several other CSS properties simultaneously.
- A• shorthand
- B• id
- C• font
- D• text-indent
38• The _____ is the HTML tag that a style will be applied to. (CSS)
- A• selector
- B• value
- C• property
39• The _____ is an aspect of the HTML tag that will be affected by the stylesheet definition. (CSS)
- A• selector
- B• property
- C• value
40• The _____ that the property of a selector will have. (CSS)
- A• property
- B• selector
- C• value
41• Which stylesheet has the highest priority?
- A• External stylesheets
- B• Inline stylesheets
- C• Internal stylesheets
42• Which stylesheet has the second highest priority?
- A• Internal stylesheets
- B• External stylesheets
- C• Inline stylesheets
43• Which stylesheet has the third highest priority?
- A• External stylesheets
- B• Internal stylesheets
- C• Inline stylesheets
44• An external stylesheet is declared in an external file with a _____ extension.
- A• txt
- B• html
- C• doc
- D• css
45• External stylesheets are called using the ______ tag.
- A• <id>
- B• <class>
- C• <stylesheets>
- D• <link>
46• If you define the position to be it will be calculated from the upper left corner of the page. (CSS)
- Ao normal
- Bo relative
- Co absolute
47• If you define the position to be _____ it will be relative to the position of the tag that carries the style. (CSS)
- A• normal
- B• absolute
- C• relative
48• When using an external stylesheet on a webpage, this attribute takes the value "text/css".
- A• href
- B• rel
- C• type
49• Denotes the name and location of the external stylesheet to be used.
- A• rel
- B• href
- C• с. type
50• ______ stylesheets are declared within individual tags and affect those tags only.
- Ao Inline stylesheets
- Bo Internal stylesheets
- Co External stylesheets
51• We use this pseudo-classes to add special style to an unvisited link. (CSS)
- A• :visited
- B• :hover
- C• :link
- D• :mouse
52• We use this class to add special style to a visited link. (CSS)
- A• :link
- B• :visited
- C• :hover
- D• :mouse
53• We use this class to add special style to an element when you mouse over it. (CSS)
- A• :link
- B• :hover
- C• :visited
- D• :mouse
54• The element is a block-level element that is often used as a container for other HTML elements. (CSS)
- A• <div>
- B• None
- C• <span>
55• The element is an inline element that is often used as a container for some text. (CSS)
- Ao None
- Bo <div>
- Co <span>
56• You can define style rules based on the _____ attribute of the elements. (CSS)
- Ao type
- Bo img
- Co class
57• You can define style rules based on the _____ attribute of the elements. (CSS)
- A• font
- B• id
- C• type
58• How do you display hyperlinks without an underline? (CSS)
- A• {underline: none}
- B• {text-decoration: none}
- C• {text-decoration: underline}
- D• {decoration: no underline}
59• Which is the correct CSS syntax?
- A• {body;color:black;}
- B• {body:color=black(body;}
- C• body:color=black;
- D• body {color: black;}
60• Which HTML tag is used to define an internal style sheet?
- A• <css>
- B• <script>
- C• <stile>
- D• <style>
61• How do you display a border like this (CSS):
- A• border-width: 10px 1px 5px 20px
- B• border-width: 5px 20px 10px 1px
- C• border-width: 10px 2opx 5px 1px
- D• border-width: 10px 5px 20px 1px
62• What is the correct CSS syntax for making all the <p> elements bold?
- A• p {text-size:bold;}
- B• <p style="font-size:bold;">
- C• p {font-weight:bold;}
- D• <p style="text-size:bold;">
63• What is the correct XHTML for referring to an external style sheet?
- A• <stylesheet>style.css</stylesheet>
- B• <script rel="stylesheet" type="text/css" href="style.css"
- C• <style src="style.css"
- D• <link rel="stylesheet" type="text/css" href="style.css">
6470. This property is used to underline, overline, and strike through text (CSS).
- Ao text-decoration
- Bo text-transform
- Co font-family
- Do white-space
65• PHP stands for
- A• Hypertext Preprocessor
- B• Cascading Style Shits
- C• Personal Home Page
66• РНР files have a default file extension of _____.
- A• .php
- B• .html
- C• .ph
- D• .xml
67• PHP is a _____.
- Ao server side language
- Bo scripting language
- Co web language
- Do all
68• Syntax for declaring variables (PHP)
- Ao #varName
- Bo @varname
- Co %varname
- Do $varname
69145. A PHP script begins with ____ and ends with ___. <?php__?>
- ATRUE
- Btrue
70• Single line comments declared with (PHP)
- A• /**/
- B• /
- C• //
71• Multiline comments declared with (PHP):
- A• /
- B• /**/
- C• //
72• You can print text on webpage in PHP using _____ or _____ commands
- Ao output or echo
- Bo printing or print
- Co print or echo
- Do output or printing
73• Are all variable names case-sensitive in PHP?
- A• no
- B• no correct answer
- C• yes
74• Correct syntax for a function (PHP):
- Ao function function_name{ code for function goes here;}
- Bo function function_name(){ code for function goes here;}
- Co function function_name() code for function goes here;
- Do function function_name(){ code for function goes here}
75• То call a function (РНР) _____ (if the function has any parameters)
- Ao refer to the function name
- Bo You do not need call the function in PHP
- Co refer to the function name and pass the appropriate parameter values to it
76• An external file in which a PHP script is declared will be included within the PHP source code of a webpage using the_____ function.
- Ao include()
- Bo php()
- Co external()
- Do insert()
77• For text variables (PHP), the value is surrounded by _____.
- Ao double quotes
- Bo braces
- Co parenthesis
78• You can print variables together (PHP) with regular text using _____.
- Ao parenthesis
- Bo dot
- Co brackets
- Do semicolon
79• Which of the PHP's built-in functions will return the absolute value of a number?
- Ao strupper()
- Bo strrev()
- Co max()
- Do abs()
80• Which of the PHP's built-in functions will returns the highest value from a set of specified numbers?
- Ao strrev()
- Bo abs()
- Co strupper()
- Do max()
81• Which of the PHP's built-in functions will print a text string backwards?
- Ao strrev()
- Bo max()
- Co abs()
- Do strupper()
82• Which of the PHP's built-in functions will print a text string in all uppercase letters?
- Ao strrev()
- Bo abs()
- Co max()
- Do strupper()
83• What will be the output of variable $highest = max(5, 10, 15, 20); (РНР)?
- Ao highest
- Bo 20
- Co max
- Do 50
84• What will be the output of variable $a = abs(-123); (PHP)?
- A• -321
- B• 321
- C• 123
- D• $a
85• Variable names (PHP) can only contain _____.
- Ao letters and numbers
- Bo letters, numbers and &^%$#@ (_) symbol
- Co letters, numbers and the underscore( _) symbol
86• Are all keywords (e.g. if, else, while, echo, etc.) in РНР, classes, functions, and user-defined functions case-sensitive?
- Ao yes
- Bo do not know
- Co no
87• A variable declared _____ a function has a GLOBAL SCOPE. (PHP)
- Ao anywhere
- Bo nowhere
- Co outside
- Do within
88• А variable declared _____ a function has a LOCAL SCOPE. (PHP)
- Ao within
- Bo anywhere
- Co outside
- Do nowhere
89176. In this example variable x has the _____scope. (PHP)
- Aglobal
- Blocal
90177. In this example variable x has the _____scope.(PHP)
- Aglobal
- Blocal
91160. The ____ keyword is used to access a global variable from within a function. (PHP)
- A$GLOBALS
- B$LOCALS
92• РНР stores all _____ in an array called $GLOBALS[index]
- A• types
- B• indexes
- C• global variables
93• When we want a local variable NOT to be deleted, use the _____ keyword when you first declare the variable. (PHP)
- Ao static
- Bo local
- Co include
- Do global
94• The PHP _____ function returns the data type and value.
- A• include()
- B• var_dump()
- C• abs()
- D• max()
95• A _____ is a number with a decimal point or a number in exponential form. (PHP)
- Ao float
- Bo array
- Co integer
- Do string
96Syntax for array (PHP):
- A$cars = array("Volvo","BMW","Toyota");
- B$cars = "Volvo", "BMW", "Toyota";
- C$cars = array["Volvo", "BMW", "Toyota"];
97• Array indexes (PHP) start at _____.
- Ao 0
- Bo -1
- Co 1
98• To access a numeric arrays element, refer to the array (PHP) with _____.
- Ao appropriate index number in brackets
- Bo appropriate index number with dots
- Co appropriate index number without brackets
99• The _____ is an array which associates an index value (instead of a number) to a certain value.(PHP)
- Ao associative array
- Bo dot
- Co string
- Do class
100• Syntax for associative array (РНР):
- Ao $arrayName(index_value) = value;
- Bo $arrayName[index_value] = value;
- Co arrayName[index_value] = value;
- Do $arrayName["index_value"] = value;
101• The _____ function is used to return the length (the number of elements) of an array (PHP).
- Ao return length()
- Bo array()
- Co count()
- Do length()
102____________ executes some code if one condition is true.(PHP)
- Ao if ...else statement
- Bo if statement
- Co switch statement
- Do if...elseif...else statement
103• _____ executes some code if a condition is true and another code if that condition is false. (PHP)
- Ao if...else statement
- Bo if statement
- Co if...elseif...else statement
- Do switch statement
104• _____ executes different codes for more than two conditions. (PHP)
- Ao if ...else statement
- Bo switch statement
- Co if statement
- Do if...elseif...else statement
105PHP server scripts are surrounded by delimiters, which?
- A<?php…?>
- B<&>...</&>
- C<?php>...</?>
- D<script>...</script>
106What does PHP stand for?
- APersonal Hypertext Processor
- BHypertext Preprocessor
- CPersonal Home Page
- DPrivate Home Page
107How do you write "Hello World" in PHP
- ADocument.Write("Hello World");
- Becho "Hello World";
- C"Hello World";
108• All variables in PHP start with symbol:
- A• !
- B• &
- C• $
- D• %
109What is the correct way to end a PHP statement?
- A.
- B;
- CNew line
- D</php>
110In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
- Atrue
- Bfalse
111• The PHP _____ function counts the number of words in a string.
- Ao str_word_count()
- Bo strlen()
- Co strops()
- Do strrev()
112• PHP _____ function searches for a specific text within a string.
- A• strops()
- B• strrev()
- C• strlen()
- D• str_word_count()
113• The PHP _____ function reverses a string.
- Ao strops()
- Bo strrev()
- Co str_word_count()
- Do strlen()
114• РНР _____ function returns the length of a string.
- Ao strops()
- Bo str_word_count()
- Co strlen()
- Do strrev()
115• РНР _____ function replaces some characters with some other characters in a string.
- Ao strops()
- Bo strlen()
- Co str_word_count()
- Do str_replace()
11610. To create a constant (PHP), use
- Ao define(name, value, case-insensitive)
- Bo constant(name, value, case-insensitive)
- Co constant(name, value)
- Do constant( value)
117• The while loop executes a block of code as long as the specified condition is _____. (РНР)
- Ao false
- Bo do not know
- Co no answer
- Do true
118• The loop will always execute the block of code once, it will then check the condition, and repeat the loop whilethe specified condition is true.
- Ao while
- Bo do...while
- Co foreach
- Do for
119• Which of the following is correct about features of JavaScript?
- Ao JavaScript is designed for creating network-centric applications.
- Bo JavaScript is complementary to and integrated with Java
- Co JavaScript is a lightweight, interpreted programming language.
- Do all
120• Which of the following type of variable is visible everywhere in your JavaScript code? (JavaScript)
- Ao local variable
- Bo global variable
- Co both
- Do none
121Which built-in method adds one or more elements to the end of an array and returns the new length of the array? (JavaScript)
- Alast()
- Bput()
- Cpush()
- DNone of the above.
12273. Which built-in method returns the calling string value converted to upper case? (JavaScript)
- Ao toUpperCase()
- Bo toUpper()
- Co changeCase()
- Do none
123Which of the following function of String object returns the character at the specified index?
- AcharAt()
- BcharCodeAt()
- Cconcat()
- DindexOf()
124• Which of the following function of String object executes the search for a match between a regular expression and a specified string? (JavaScript)
- Ao concat()
- Bo replace()
- Co match()
- Do search()
125• Which of the following function of String object creates an HTML anchor that is used as a hypertext target? (JavaScript)
- Ao blink()
- Bo link()
- Co anchor()
- Do big()
126• Which of the following function of String object causes a string to be italic, as if it were in an <i> tag? (JavaScript)
- Ao fontcolor()
- Bo fixed()
- Co italics()
- Do fontsize()
127• Which of the following function of Array object returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found? (JavaScript)
- Ao lastIndexOf()
- Bo map()
- Co index0f()
- Do join()
128• Which of the following function of Array object adds and/or removes elements from an array? (JavaScript)
- Ao toSourse()
- Bo sort()
- Co splice()
- Do unshift()
129• Which of the following function of String object returns a string representing the specified object?
- Ao toUpperCase()
- Bo toLocaleUpperCase()
- Co toString()
- Do substring()
130• Which of the following function of String object creates an HTML hypertext link that requests another URL? (JavaScript)
- Ao link()
- Bo small()
- Co sub()
131• Which of the following function of Array object joins all elements of an array into a string? (JavaScript)
- Ao pop()
- Bo join()
132• Which of the following function of Array object sorts the elements of an array? (JavaScript)
- Ao unshift()
- Bo toSourse()
- Co sort()
- Do toString()
133• Which of the following is an advantage of using JavaScript?
- Ao increased interactivity
- Bo all
- Co immediate feedback to the visitors
- Do less server interaction
13486. How can you get the type of arguments passed to a function? (JavaScript)
- Ao using typeof operator
- Bo using getType function
- Co none
- Do both
13587. Which built-in method returns the length of the string? (JavaScript)
- Ao length()
- Bo size()
- Co index()
- Do none
13688. Which of the following function of Number object returns the number's value? (JavaScript)
- Ao valueOf()
- Bo toString()
- Co toLocaleString()
- Do toPrecision()
137• Which of the following function of String object creates a string to be displayed in a big font as if it were in a tag? (JavaScript)
- Ao anchor()
- Bo big()
- Co italics()
- Do blink()
138• Which of the following function of Array object returns true if every element in this array satisfies the provided testing function? (JavaScript)
- Ao some()
- Bo every()
- Co push()
- Do concat()
139• Is JavaScript a case-sensitive language?
- Ao true
- Bo false
- Co not given
140• Which of the following function of Boolean object returns a string containing the source of the Boolean object? (JavaScript)
- Ao toString()
- Bo none
- Co toSource()
- Do valueOf()
14193. Which of the following function of String object returns the index within the calling String object of the last occurrence of the specified value? (JavaScript)
- Ao lastIndexOf()
- Bo search()
- Co indexOf()
- Do substr()
14294. To access an HTML element, JavaScript can use the ___________ method.
- A• document.getElementById(id)
- Bo var
- Co sort
- Do map
14395. You declare a JavaScript variable with the ______ keyword
- Ao document.getElementById(id)
- Bo var
- Co sort
- Do map
14496. To assign (JavaScript) a value to the variable, use the sign
- Ao =
- Bo ++
- Co /
- Do #
14597. Once you create an _______, you can create new objects (JavaScript) of the same type.
- Ao object constructor
- Bo link
- Co map
- Do array
14698. A JavaScript ______ is a block of JavaScript code, that can be executed when "asked" for
- Ao function
- Bo constant
- Co link
- Do map
14799. External JavaScript files have the file extension _____
- Ao js
- Bo doc
- Co jpg
148100. Can functions return a value? (JavaScript)
- Ao true
- Bo false
149101. JavaScript objects are containers for _____________
- Ao named values and methods
- Bo link
- Co fils
- Do maps
150• You can access object properties (JavaScript) in two ways
- Ao objectName or [“propertyName”]
- Bo objectName.propertyName or objectName[“propertyName”]
- Co objectName or propertyName
- Do none
151• You access an object method (JavaScript) with the following syntax
- Ao none
- Bo objectName()
- Co objectName.methodName()
- Do methodName()
152• HTML DOM methods are _____ you can perfonn (on HTML Elements). (Javascript)
- Ao values
- Bo links
- Co actions
- Do constants
Informationen
- Beschreibung
- added and fixed some questions
- Autor
- Hello World
- Sprache
- English
- Aufrufe
- 195
- Schlagwörter
- Bewertung
- 5,0 von 5 · 1 Bewertung Bewerte dieses Quiz