Section 1

Preview this deck

D

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

1

All-time users

2

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (128)

Section 1

(50 cards)

D

Front

var arr=[]; arr[0]='a'; arr[1]='b'; arr.foo='c'; alert(arr.length); what value is alerted? A. undefined B. 1 C. 3 D. 2

Back

A

Front

What does an HTML tag do? A) It specifies formatting and layout instructions for your web page B) It hides programming instructions from view C) It determines the organizational structure of your Web site D) It connects your web site to an operating environment

Back

D

Front

What is the correct syntax in HTML for creating a link on a webpage A. <link src="withoutbook.html"> B. <body link="withoutbook.html"> C. <a src="withoutbook.html"> D. <a href="withoutbook.html">

Back

C

Front

Text/Html is called the __________ of the page A) content type B) MIME type C) content type/MIME type D) None of these

Back

C

Front

What is worst way to style an element using CSS? A. External Style Sheet B. Internal Style Sheet C. Inline styling

Back

B

Front

A variable declared outside a function, become___ A. Static B. Global C. Local D. universal

Back

A

Front

What are meta tags used for? A) To store information usually relevant to browsers and search engines B) To only store information usually relevant to browsers C) To only store information about search engines D) To store information about external links

Back

A

Front

JavaScript is designed for following purpose A) To add interactivity to HTML Pages. B) To Execute Query Related to DB on Server C) To Style HTML Pages D) To Perform Server Side Scripting Opertion

Back

D

Front

We can write HTMl code using: A. Microsoft PowerPoint B. SQL Server C. MS excel D. Notepad

Back

A

Front

DOM stands for A) Document object model B) Data object model C) Document Oriented model D) Data oriented model

Back

B

Front

To add a plain color background to your web page use which of the following: A. <body bgcolor="36,24,25"> B. <body bgcolor="#FF0000"> C. <body color="#FF0000">

Back

B

Front

What is the difference between XML and HTML? A) HTML is used for exchanging data, XML is not B) XML is used for exchanging data, HTML is not C) HTML can have user defined tags, XML cannot D) XML can have user defined tags, HTML cannot

Back

B

Front

Which of the following is wrong? A. A regular expression is a sequence of characters that forms a search pattern B. A string in javascript cannot be processed without using regular expression C. A regular expression can be a single character, or a more complicate pattern D. Regular expressions can be used to perform text search and text replace operations

Back

A

Front

What is the use of web font in HTML? A. That enables to use font over the Web without installation B. That is the core font that is used to develop WebPages C. All of the others D. That is the special font that developed by Microsoft Corp

Back

B

Front

What property can you use to set the spacing betweens lines of text? A. Line-spacing B. Line-height C. Letter-spacing D. Spacing

Back

B

Front

What is factory method in AngularJS ? A) It generates the facts and figures B) It is used to create the service C) It is used to calculate the factorial of a number D) All the above

Back

B

Front

The pseudo class: checked will select inputs with type radio or checkbox, but not <option> elements A. True B. False

Back

D

Front

<meta> tag is defined in the ------tag A. Body B. Image C. Font D. Head

Back

B

Front

What is the ouput? <button onclick='getElementById("demo").innerHTML=Date()'>The Time is></button> A. In the example above, the JavaScript code changes the content of every tag B. In the example above, the JavaScript code changes the content of the element with id="demo" C. In the example above, the JavaScript code changes the content of the button

Back

A

Front

Which of the following navigator object properties is the same in both Netscape and IE? A) navigator.appCodeName B) navigator.appName C) navigator.appVersion D) None of the above

Back

C

Front

What is output of "10"+20+30 A.60 B.1050 C.102030 D.50

Back

B

Front

Which of the following is not considered a JavaScript operator? A) new B) this C) delete D) typeof

Back

A

Front

Which of the following is not an example of browser? A. Microsoft Words B. Mozzila Firefox C. Netscape Navigator D. Google Chrome

Back

B

Front

Server controls contain attributes whereas HTML controls have properties only. A) TRUE B) FALSE

Back

A

Front

In what way can you reference CSS for multipile webpage? A. External Style Sheet B. Inline Styling C. Internal Style Sheet D. All the others

Back

B

Front

Which tag is used to display Performmated texts? A. <pref>.....</pref> B. <pre>....</pre> C. <prefor>...</prefor> D. <pre text>...</pre text>

Back

C

Front

What is the correct JavaScript syntax to write "Hello World"? A) System.out.println("Hello World") B) println ("Hello World") C) document.write("Hello World") D) response.write("Hello World")

Back

C

Front

When images are used as links they get a blue border. A. Never B. Always C.Unless border is set to zero

Back

A

Front

How would you style table row to have alternating background colors? A.tr:nth-child(even){background-color:#CCC;} B.td:even{background-color:#CCC;} C.tr:even{background-color:#CCC;} D.td:nth-child(even){background-color:#CCC;}

Back

D

Front

Which one of the following is not used to generate dynamic web pages ? A) PHP B) ASP.NET C) JSP D) none of the mentioned

Back

C

Front

A piece of icon or image on a web page associated with another webpage is called ? A) url B) plugin C) hyperlink D) none of the mentioned

Back

A

Front

A world wide web contains web pages A) residing in many computers linked together using HTML. B) with links to other web pages. C) residing in many computers. D) created using HTML.

Back

B

Front

Which of the following cannot be done with client-side JavaScript: A.None of the others B. Storing the form's contents to a database file on the Server C. Validating a form D. Sending a form's contents by email

Back

D

Front

What is the correct syntax in HTML for creating a text input field? A. <textinput type="text"/> B. <textfield/> C. <input type="textfield"/> D. <input type="text"/>

Back

A

Front

How can you make a list that lists the items with bullets? A. <ul> B. <dl> C. <li> D. <list>

Back

A

Front

Server control events are handled in the server whereas HTML control events are handled in the page A) TRUE B) FALSE

Back

B

Front

Which class provides an interface for invoking JavaScript methods and examining JavaScript properties. A) ScriptObject B) JSObject C) JavaObject D) Jobject

Back

B

Front

function f(str){ return/^\d{3,}$/.test(str); } A. Returns the array with numbers. B. Makes sure that the string contains only three or more digits C. Counts the number of 'd' characters in the string

Back

D

Front

How do you find out which character occurs at the 5th possition in a string "How are you?" A. IndexOf(5) B. String(5) C. subString(5) D. charAt(5)

Back

D

Front

What CSS property is used to set the horizontal alignment of a text? A. Align B. H-alignment C. Text-hr-align D. Text-align

Back

A

Front

What is mean by "this" keyword in javascript? A) It refers current object B) It referes previous object C) It is variable which contains value D) None of the above

Back

C

Front

Which tags are most commonly used by search engines? A. Paragraph B. All of the others C. Title D. heading

Back

A

Front

Which of the following is added to prefs.js,when open a dialog box each time an error occurs? A) user_pref("javascript.classic.error_alerts", true); B) user_pref("javascript.classic.error_alerts ", false); C) user_pref("javascript.console.open_on_error ", false); D) user_pref("javascript.console.open_on_error ", true);

Back

A

Front

Each list item in an ordered or unordered list has which tag? A. Li tag B. List tag C. Is tag D. Ol tag

Back

B

Front

Which of the following can't be done with client-side JavaScript? A) Sending a form's contents by email B) Storing the form's contents to a database file on the server C) Validating a form D) None of the above

Back

E

Front

What does "margin-left:auto;margin-right:0px;" do? A. vertically aligns an element to the bottom of the page B. horizontally aligns an element to the center of the page C. horizontally aligns an element to the left of the page D. vertically aligns an element to the top of the page E. horizontally aligns an element to the right of the page

Back

D

Front

How to set a picture as a background of web page? A <background="bgimage.gif"> B <body background image="bgimage.gif"> C <body bground="bgimage.gif"> D <body background="bgimage.gif">

Back

B

Front

How do you put a message in the browser's status bar ? A) status("put your message here") B) window.status = "put your message here" C) statusbar = "put your message here" D) window.status("put your message here")

Back

C

Front

function f(arr){ return arr.slice(0).sort() } A.Returns only the first, smallest, element of the array B. Sort the original array C. Returns the sorted copy of array

Back

A

Front

Which tag is used to display the numbered list? 1) <ol> </ol> 2) <li></li> 3) <ul> </ul> 4) <dl> </dl> A) 1 B) 2 C) 3 D) 4

Back

Section 2

(50 cards)

A

Front

HTML: <div style="display: none;"> <img src="mypic.jpg" alt="My photo"> </div> Does the HTML above trigger a http request when the page first loads? A. Yes B. No

Back

B

Front

<ul class="shopping-list" id="awesome"> <li><span>Milk</span></li> <li class="favorite" id="must-buy"><span class="highlight">Sausage</span></li> </ul> CSS: ul li { color: red; } #must-buy { color: blue; } What is the color of the text Sausage ? A. Red B. Blue C. Neither

Back

B

Front

<ul class="shopping-list" id="awesome"> <li><span>Milk</span></li> <li class="favorite" id="must-buy"><span class="highlight">Sausage</span></li> </ul> CSS: .shopping-list .favorite { color: red; } #must-buy { color: blue; } What is the color of the text Sausage ? A. Red B. Blue C. Neither

Back

A

Front

In a HTML document, the pseudo class :root always refers to the <html> element. A. true B. false

Back

B

Front

Does setting padding-top and padding-bottom on an inline element add to its dimensions? A. Yes B. No

Back

B

Front

<ul class="shopping-list" id="awesome"> <li><span>Milk</span></li> <li class="favorite" id="must-buy"><span class="highlight">Sausage</span></li> </ul> CSS: ul { color: red; } li { color: blue; } What is the color of the text Sausage ? A. Red B. Blue C. Neither

Back

A

Front

HTML: <article> <a href="#"> <h1>Hello</h1> <p>I am some text</p> </a> </article> Does HTML5 support block-level links? A. Yes B. No

Back

C

Front

How to create Date object in JavaScript? A. dateObjectName := new Date([parameters]); B. dateObjectName Date([parameters]); C. dateObjectName = new Date([parameters]); D. dateObjectName.new Date([parameters]);

Back

B

Front

The translate() function can move the position of an element on the z-axis. A. true B. false

Back

B

Front

What is the correct HTML for making a radio buttons? A. <input type="radiobox"/> B. <input type="radio"/> C. <radio> D. <input type="radionbutton"/>

Back

B

Front

HTML: <head> <link href="main1.css" rel="stylesheet"> <link href="main2.css" rel="stylesheet"> </head> Does main1.css have to be downloaded and parsed before main2.css can be fetched? A. Yes B. No

Back

A

Front

HTML: <head> <link href="main1.css" rel="stylesheet"> </head> <body> <p>Paragraph 1</p> <p>Paragraph 2</p> <link href="main2.css" rel="stylesheet"> </body> Does main2.css have to be downloaded and parsed before Paragraph 1 is rendered on the page? A. Yes B. No

Back

A

Front

HTML: <figure> <img src="myimage.jpg" alt="My image"> <figcaption> <p>This is my self portrait.</p> </figcaption> </figure> Is the above HTML valid? A. Yes B. No

Back

B

Front

In what situation should you use the <small> tag? A. When you want to create subheading after a <h1> element B. When you want to add copyright information inside a <footer> C. Both situations

Back

A

Front

Is <keygen> a valid HTML5 tag? A. Yes B. No

Back

B

Front

"1" + 2 + "3" + 4; What does the above statement evaluate to? A. 10 B. 1234 C. 37

Back

C

Front

Which of the following is not a mouse event? A. onmouseover. B. onclick C. onmousescroller D. onmousemove

Back

A

Front

HTML 1.<div> 2. <p>I am floated</p> 3. <p> So am I</p> 4.</div> CSS: div{ overflow:hidden; } p{ float:left; } Does overflow:hidden create a new block formatting context? A. Yes B. No

Back

B

Front

<ul class="shopping-list" id="awesome"> <li><span>Milk</span></li> <li class="favorite" id="must-buy"><span class="highlight">Sausage</span></li> </ul> CSS: ul#awesome { color: red; } ul.shopping-list li.favorite span { color: blue; } What is the color of the text Sausage ? A. Red B. Blue C. Neither

Back

D

Front

Cascading Style Sheet define style and appearance using: A. techniques with block and inline elements B. heuritics with rules and maps C. functions with parameters and return values D. rules with selectors, properties and their values

Back

A

Front

HTML: <div id="test1"> <span id="test2"></span> </div> CSS: #test2 { background-image: url('mypic.jpg'); display: none; } On page load, will mypic.jpg get downloaded by the browser? A. Yes B. No

Back

B

Front

If you have a page of search results and want to highlight the search term, what HTML tag would you use? A. <strong> B. <mark> C. <em> D. <highlight>

Back

B

Front

<ul class="shopping-list" id="awesome"> <li><span>Milk</span></li> <li class="favorite" id="must-buy"><span class="highlight">Sausage</span></li> </ul> CSS ul.shopping-list li .highlight { color: red; } ul.shopping-list li .highlight:nth-of-type(odd) { color: blue; } What is the color of the text Sausage ? A. Red B. Blue C. Neither

Back

A

Front

Does setting padding-top and padding-bottom on an inline element add to its dimensions? A. No B. Yes

Back

B

Front

Which field can hold information that does not show? A. invisible field B. Hidden field C. Frame field D. Text field

Back

A

Front

CSS: @media only screen and (max-width: 1024px) { margin: 0; } What is the use of the only selector? A. Stops older browsers from parsing the remainder of the selector B. Apply the style for screen only and ignore the device max-width C. It does nothing

Back

A

Front

HTML: <head> <link href="main1.css" rel="stylesheet"> <script> alert('Hello World'); </script> </head> Does main1.css have to be downloaded and parsed before Hello World is alerted? A. Yes B. No

Back

A

Front

Most search engines gives serious importance to meta tags when ranking websites in their listing? A. False B. It depends on the keywords C. True

Back

B

Front

If you want to put an HTMl element at a certain position on the page regardless of the other elements, what value would you give the position property? A. Static B. Absolute C. Relative D. Fixed

Back

A

Front

<ul class="shopping-list" id="awesome"> <li><span>Milk</span></li> <li class="favorite" id="must-buy"><span class="highlight">Sausage</span></li> </ul> #awesome .favorite:not(#awesome) .highlight { color: red; } #awesome .highlight:nth-of-type(1):nth-last-of-type(1) { color: blue; } What is the color of the text Sausage ? A. Red B. Blue C. Neither

Back

B

Front

HTML: <div id="test1"> <span id="test2"></span> </div> CSS: #i-am-useless { background-image: url('mypic.jpg'); } Are unused style resources still downloaded by the browser? A. Yes B. No C. Sometimes

Back

B

Front

You can use_________to change the inner HTML of an element. A. element.style.property= B. element.innerHTML= C. element.attribute= D. document.getElementById()=

Back

B

Front

CSS: @media only screen and (max-width: 1024px) { margin: 0; } Does the screen keyword apply to the device's physical screen or the browser's viewport? A. Device's physical screen B. Browser's viewport

Back

A

Front

To set the color for the table border use_______? A. Bordercolor="red" B. Bgcolor="red" C. TableBgcolor="red" D. Bgimage="red"

Back

B

Front

Does setting margin-top and margin-bottom have an affect on an inline element? A. Yes B. No

Back

B

Front

HTML: <div id="test1"> <span id="test2"></span> </div> CSS: #test1 { display: none; } #test2 { background-image: url('mypic.jpg'); visibility: hidden; } On page load, will mypic.jpg get downloaded by the browser? A. Yes B. No

Back

A

Front

Does the <bdo> tag change the direction of text? A. Yes B. No

Back

A

Front

<p id="example">Hello</p> CSS: #example { margin-left: -5px; } What will happen to the position of #example? A. It will move 5px left B. All elements preceding #example with move 5px to the right C. Neither

Back

A

Front

<img src="mypic.jpg" style="visibility: hidden" alt="My picture"> Does the HTML above trigger a http request when the page first loads ? A. Yes B. No

Back

B

Front

HTML 1.<div id="test1"> 2. <span id="test2"></span> 4.</div> CSS: #iamuseless{ background-images:url('mypic.jpg'); } Are unused style resources still downloaded by the browser? A. Sometimes B. No C. Yes

Back

C

Front

Which of the following is correct change font face in Web Page A. <fontface="font name">... B. <font="font name">... C.<font face="font name">...</font> D. <font name="font name>...</font>

Back

B

Front

If a web page contains organic, multiple <h1> tags, will it affect the SEO negativley? A. Yes B. No

Back

A

Front

<script> document.write(navigator.appCodeName); </script> A. get code of the browser of a visitor B. set code of the browser of a visitor C. None of the others

Back

B

Front

If you have a <p> element with font-size: 10rem, will the text be responsive when the user resizes / drags the browser window? A. Yes B. No

Back

B

Front

HTML: <p id="example">Hello</p> CSS: #example { margin-bottom: -5px; } What will happen to the position of #example? A. It will move 5px downwards B. All elements succeeding #example with move 5px upwards C. Neither

Back

C

Front

How to embedded Audio Files in HTML? A. <audio source ="mysong.mp3"/> B. <embed sound="mysong.mp3"/> C. <audio src="mysong.mp3"/> D. <embed audio="mysong.mp3"/>

Back

D

Front

How do you display hyperlinks without an underlined A. A{text-decoration:underlined;} B. A{font-decoration:none;} C. A{text-decoration:no underlined;} D. A{text-decoration:none;}

Back

C

Front

4 + 3 + 2 + "1" What does the above statement evaluate to? A. 10 B. 4321 C. 91

Back

B

Front

How do you call a function? A. Result = myfunction B. Result = myfunction() C. Result myfunction() D. call myfunction()

Back

B

Front

(true + false) > 2 + true; A. true B. false

Back

Section 3

(28 cards)

A

Front

String('Hello') === 'Hello'; What is the result? A. true B. false C. TypeError

Back

A

Front

var foo = function foo() { console.log(foo === foo); }; foo(); What is printed in the console? A. true B. false C. ReferenceError

Back

B

Front

function foo(a, b) { arguments[1] = 2; alert(b); } foo(1); What value is alerted? A. 2 B. undefined C. ReferenceError

Back

B

Front

NaN === NaN; What is the result? A. true B. false C. TypeError

Back

A

Front

Number("1") - 1 == 0; What is the result? A. true B. false C. TypeError

Back

A

Front

new Array(5).toString(); What is the result? A. ",,,," B. [] C. "[]"

Back

D

Front

var x = 4, obj = { x: 3, bar: function() { var x = 2; setTimeout(function() { var x = 1; alert(this.x); }, 1000); } }; obj.bar(); What value is alerted? A. 1 B. 2 C. 3 D. 4 E. undefined

Back

A

Front

[] + [] + 'foo'.split(''); What is the result? A. "f, o, o" B. TypeError C. ["f", "o", "o"] D. [][]["f", "o", "o"]

Back

B

Front

10 > 9 > 8 === true; What is the result? A. true B. false

Back

A

Front

var myArr = ['foo', 'bar', 'baz']; myArr[2]; console.log('2' in myArr); What is the result of console.log? A. true B. false C. ReferenceError

Back

A

Front

var foo = 1; function bar() { foo = 10; return; function foo() {} } bar(); alert(foo); What is alerted? A. 1 B. 10 C. Function D. undefined E. Error

Back

E

Front

var x = 3; var foo = { x: 2, baz: { x: 1, bar: function() { return this.x; } } } var go = foo.baz.bar; alert(go()); alert(foo.baz.bar()); What is the order of values alerted? A. 1, 2 B. 1, 3 C. 2, 1 D. 2, 3 E. 3, 1 F. 3, 2

Back

C

Front

var foo = function bar() {}; alert(typeof bar); What value is alerted? A. function B. object C. undefined

Back

B

Front

(true + false) > 2 + true; What is the result? A. true B. false C. TypeError D. NaN

Back

B

Front

function bar() { return foo; foo = 10; function foo() {} var foo = 11; } alert(typeof bar()); What is alerted? A. number B. function C. undefined D. Error

Back

A

Front

function foo(){} delete foo.length; alert(typeof foo.length); What value is alerted? A. number B undefined C. object D. Error

Back

B

Front

function foo(a) { arguments[0] = 2; alert(a); } foo(1); What value is alerted? A. 1 B. 2 C. undefined

Back

C

Front

var x = 0; function foo() { x++; this.x = x; return foo; } var bar = new new foo; console.log(bar.x); What is printed on the console? A. ReferrenceError B. TypeError C. undefined D. 0 E. 1

Back

D

Front

var bar = 1, foo = {}; foo: { bar: 2; baz: ++bar; }; foo.baz + foo.bar + bar; What is the result? A. ReferenceError B. TypeError C. undefined D. NaN E. 4 F. 5

Back

B

Front

function bar() { return foo; foo = 10; function foo() {} var foo = '11'; } alert(typeof bar()); What is alerted? A. number B. function C. undefined D. string E. Error

Back

E

Front

var x = 3; var foo = { x: 2, baz: { x: 1, bar: function() { return this.x; } } } var go = foo.baz.bar; alert(go()); alert(foo.baz.bar()); What is the order of values alerted? A. 1, 2 B. 1, 3 C. 2, 1 D. 2, 3 E. 3, 1 F. 3, 2

Back

A

Front

new String("This is a string") instanceof String; What is the result? A. true B. false C. TypeError

Back

B

Front

x = 1; function bar() { this.x = 2; return x; } var foo = new bar(); alert(foo.x); What value is alerted? A. 1 B. 2 C. undefined

Back

C

Front

function foo(a) { alert(arguments.length); } foo(1, 2, 3); What value is alerted? A. 1 B. 2 C. 3 E. undefined

Back

B

Front

"This is a string" instanceof String; What is the result? A. true B. false C. TypeError

Back

D

Front

function aaa() { return { test: 1 }; } alert(typeof aaa()); What does the above alert? A. function B. number C/ object D. undefined

Back

D

Front

var myArr = ['foo', 'bar', 'baz']; myArr.length = 0; myArr.push('bin'); console.log(myArr); What is printed in the console? A. ['foo', 'bar', 'baz'] B. ['foo', 'bar', 'baz', 'bin'] C. ['bin', 'foo', 'bar', 'baz'] D. ['bin']

Back

B

Front

"1" - - "1"; What is the result? A. 0 B. 2 C. 11 D. "11"

Back