CS202 – Fundamentals of Front End Development: Midterm Important MCQs (145 Solved Questions)
Computer Science • Read every solved MCQ with its verified answer key directly on this page. Free, no login required.
All 664 Midterm Packs · CS202 Course Page · CS202 Subjective Pack (35 Q&As)
-
What does HTML stand for?
Topic: HTML Fundamentals & Document Structure
- Hyper Text Markup Language ✓ Correct answer
- Hyperlinks and Text Markup Language
- Home Tool Markup Language
-
Who is making the Web standards?
Topic: HTML Fundamentals & Document Structure
- Microsoft
- The World Wide Web Consortium ✓ Correct answer
- Mozilla
-
Choose the correct HTML element for the largest heading:
Topic: HTML Fundamentals & Document Structure
- <h1> ✓ Correct answer
- <h6>
- <head>
- <heading>
-
Which character is used to indicate an end tag?
Topic: HTML Fundamentals & Document Structure
- ^
- / ✓ Correct answer
- <
- *
-
Which HTML element defines the title of a document?
Topic: HTML Fundamentals & Document Structure
- <head>
- <title> ✓ Correct answer
- <meta>
-
Which doctype is correct for HTML5?
Topic: HTML Fundamentals & Document Structure
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">
- <!DOCTYPE html> ✓ Correct answer
- <!DOCTYPE HTML5>
-
The HTML global attribute, "contenteditable" is used to:
Topic: HTML Fundamentals & Document Structure
- Specify whether the content of an element should be editable or not ✓ Correct answer
- Return the position of the first found occurrence of content inside a string
- Specifies a context menu for an element. The menu appears when a user right-clicks on the element
- Update content from the server
-
In HTML, onblur and onfocus are:
Topic: HTML Fundamentals & Document Structure
- Event attributes ✓ Correct answer
- HTML elements
- Style attributes
-
An HTML document must start with ___ declaration. Select the correct option.
Topic: HTML Fundamentals & Document Structure
- Variable
- File Path
- Header File
- Type ✓ Correct answer
-
In HTML, headings are defined with:
Topic: HTML Fundamentals & Document Structure
- <h1> to <h6> ✓ Correct answer
- <ha>
- <heading>
-
Correct syntax to add comment in HTML is
Topic: HTML Fundamentals & Document Structure
- /* comment here*/
- #comment here
- <!-- comments here --> ✓ Correct answer
- // comments here
-
What is the correct HTML element for inserting a line break?
Topic: HTML Text Formatting, Links & Lists
- <lb>
- <br> ✓ Correct answer
- <break>
-
Choose the correct HTML element to define important text
Topic: HTML Text Formatting, Links & Lists
- <strong> ✓ Correct answer
- <important>
- <b>
- <i>
-
Choose the correct HTML element to define emphasized text
Topic: HTML Text Formatting, Links & Lists
- <i>
- <em> ✓ Correct answer
- <italic>
-
What is the correct HTML for creating a hyperlink?
Topic: HTML Text Formatting, Links & Lists
- <a name="http:// www.vukiduniya.blogspot.com"> VuKiDuniya.com</a>
- <a>http:// www.vukiduniya.blogspot.com </a>
- <a url="http://www.vukiduniya.blogspot.com"> VuKiDuniya.com</a>
- <a href="http:// www.vukiduniya.blogspot.com ">Vu Ki Duniya</a> ✓ Correct answer
-
How can you open a link in a new tab/browser window?
Topic: HTML Text Formatting, Links & Lists
- <a href="url" target="new">
- <a href="url" new>
- <a href="url" target="_blank"> ✓ Correct answer
-
How can you make a numbered list?
Topic: HTML Text Formatting, Links & Lists
- <list>
- <dl>
- <ol> ✓ Correct answer
- <ul>
-
How can you make a bulleted list?
Topic: HTML Text Formatting, Links & Lists
- <ol>
- <dl>
- <ul> ✓ Correct answer
- <list>
-
Which of the following tags is used to define HTML paragraph?
Topic: HTML Text Formatting, Links & Lists
- <paragraph>
- <pr>
- <para>
- <p> ✓ Correct answer
-
What is the correct HTML syntax for making a hyperlink?
Topic: HTML Text Formatting, Links & Lists
- <http://google.com</a>
- url="http://google.com">search engine
- <a name="http://google.com">search engine</a>
- <a href="http://google.com">search engine</a> ✓ Correct answer
-
Which of the following tag is used to make a bulleted list?
Topic: HTML Text Formatting, Links & Lists
- <ub>
- <ol>
- <ul> ✓ Correct answer
-
Which of the following HTML elements defines subscripted text?
Topic: HTML Text Formatting, Links & Lists
- <sub> ✓ Correct answer
- <sb>
- <subscript>
- <s>
-
What is the correct HTML for adding a background color?
Topic: HTML Tables, Forms & Media
- <background>yellow</background>
- <body style="background-color:yellow;"> ✓ Correct answer
- <body bg="yellow">
-
Which of these elements are all <table> elements?
Topic: HTML Tables, Forms & Media
- <table><tr><tt>
- <thead><body><tr>
- <table><tr><td> ✓ Correct answer
- <table><head><tfoot>
-
What is the correct HTML for making a checkbox?
Topic: HTML Tables, Forms & Media
- <input type="checkbox"> ✓ Correct answer
- <check>
- <input type="check">
- <checkbox>
-
What is the correct HTML for making a text input field?
Topic: HTML Tables, Forms & Media
- <textfield>
- <input type="textfield">
- <input type="text"> ✓ Correct answer
- <textinput type="text">
-
What is the correct HTML for making a drop-down list?
Topic: HTML Tables, Forms & Media
- <input type="list">
- <list>
- <select> ✓ Correct answer
- <input type="dropdown">
-
What is the correct HTML for making a text area?
Topic: HTML Tables, Forms & Media
- <input type="textarea">
- <textarea> ✓ Correct answer
- <input type="textbox">
-
What is the correct HTML for inserting an image?
Topic: HTML Tables, Forms & Media
- <img src="image.gif" alt="MyImage"> ✓ Correct answer
- <image src="image.gif" alt="MyImage">
- <img alt="MyImage">image.gif</img>
- <img href="image.gif" alt="MyImage">
-
What is the correct HTML for inserting a background image?
Topic: HTML Tables, Forms & Media
- <body style="background-image:url(background.gif)"> ✓ Correct answer
- <body bg="background.gif">
- <background img="background.gif">
-
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
Topic: HTML Tables, Forms & Media
- longdesc
- title
- src
- alt ✓ Correct answer
-
Which HTML element is used to specify a footer for a document or section?
Topic: HTML Tables, Forms & Media
- <section>
- <bottom>
- <footer> ✓ Correct answer
-
What is the correct HTML element for playing video files?
Topic: HTML Tables, Forms & Media
- <movie>
- <media>
- <video> ✓ Correct answer
-
What is the correct HTML element for playing audio files?
Topic: HTML Tables, Forms & Media
- <audio> ✓ Correct answer
- <sound>
- <mp3>
-
Which property is used to set the border spacing for an HTML table?
Topic: HTML Tables, Forms & Media
- border-spacing ✓ Correct answer
- spacing
- borderspace
- spacing-border
-
Which of the following tags is used to define image in HTML?
Topic: HTML Tables, Forms & Media
- <img> ✓ Correct answer
- <im>
- <>
- <image>
-
All major browsers by default display HTML table headings as
Topic: HTML Tables, Forms & Media
- Bold and left aligned
- None of the given options
- Bold and centered aligned ✓ Correct answer
- Bold and right aligned
-
___ tag is used for the address information of the writer of any document.
Topic: HTML Tables, Forms & Media
- <add>
- <contact>
- <writer>
- <address> ✓ Correct answer
-
In HTML tables, rowspan attribute is used:
Topic: HTML Tables, Forms & Media
- To make a cell span more than one column.
- To make a cell span more than one row. ✓ Correct answer
- To make a column span more than one row.
- To make a row span more than one cell.
-
Table borders can be collapsed into one border using CSS ___ property.
Topic: HTML Tables, Forms & Media
- single-border
- border-single
- border-collapse ✓ Correct answer
- collapse-border
-
___ are defined within the <style> element, inside the head section of an HTML page.
Topic: CSS Basics & Selectors
- External styles
- Internal styles ✓ Correct answer
- Inline styles
- None of the given options
-
The id selector uses the id attribute of the HTML element, and is defined with a
Topic: CSS Basics & Selectors
- # ✓ Correct answer
- .
- &
- id
-
CSS stands for
Topic: CSS Basics & Selectors
- Cascading Style Sheets ✓ Correct answer
- Common Style Sheets
- Control Style Sheets
- Central Style Sheets
-
Which of the following list-style-type is supported by <ul> in HTML?
Topic: CSS Basics & Selectors
- upper-alpha
- disc ✓ Correct answer
- lower-alpha
- upper-roman
-
Which of the following list-style-type is supported by <ol> in HTML?
Topic: CSS Basics & Selectors
- upper-roman ✓ Correct answer
- disc
- circle
- square
-
Which of the following CSS code can be used to remove bullets from an unordered list?
Topic: CSS Basics & Selectors
- ulli { style-type-list: hide; }
- ul { list-style-type: none; } ✓ Correct answer
- li { list-type: remove; }
- li { type: none; }
-
The default color for a page is defined in the ___ selector.
Topic: CSS Basics & Selectors
- Heading Tag
- Container Tag
- HTML Tag
- Body Tag ✓ Correct answer
-
Which of the following is correct property to define the font for an HTML element using style attribute?
Topic: CSS Basics & Selectors
- font-style
- font-family ✓ Correct answer
- define-font
-
Which of the following statement(s) is true about Block Elements?
Topic: CSS Layout, Positioning & Display
- All of the given options. ✓ Correct answer
- Block Element has a line break before element.
- Block Element has line break after element.
- Block Element takes full width available.
-
Which of the following CSS3 property can be used to add transparency in image?
Topic: CSS Layout, Positioning & Display
- opacity ✓ Correct answer
- filter
- image-sprites
- hover
-
An element with a ___ position is positioned relative to the browser window, and it will not move even if the window is scrolled.
Topic: CSS Layout, Positioning & Display
- Fixed ✓ Correct answer
- Relative
- Static
-
For a web page, if you write 10 spaces in your text, the browser will remove ___ of them.
Topic: CSS Layout, Positioning & Display
- Nine ✓ Correct answer
- None
- One
- All
-
Which of the following is a block element?
Topic: CSS Layout, Positioning & Display
- <img>
- <p> ✓ Correct answer
- <span>
-
Which CSS property specifies the stack order of the overlapping elements that determine which element will be placed in front of, or behind, the others?
Topic: CSS Layout, Positioning & Display
- Visibility
- z-index ✓ Correct answer
- Display
- Float
-
___ is very similar to italic, but less supported.
Topic: CSS Layout, Positioning & Display
- Italics
- Curve
- Oblique ✓ Correct answer
- Tilt
-
Which of the following is/are example(s) of HTML block elements?
Topic: CSS Layout, Positioning & Display
- <p>
- <ul>
- <h1>
- All of the given options ✓ Correct answer
-
Choose the false option. (About the z-index property)
Topic: CSS Layout, Positioning & Display
- The z-index property specifies the stack order of an element.
- An element can have a positive or negative stack order.
- None of the given options
- An element with lower stack order is always in front of an element with a greater stack order. ✓ Correct answer
-
Which of the option(s) given below is correct if we apply CSS property "visibility: hidden;" to an element?
Topic: CSS Layout, Positioning & Display
- It shows an element and it will not be taking the same space as before on the web page.
- It hides an element and it will be taking the same space as before on the web page. ✓ Correct answer
- It shows an element and it will be taking the same space as before on the web page.
- It hides an element and it will not be taking the same space as before on the web page.
-
___ CSS property controls visibility of the content that an element will be visible or hidden.
Topic: CSS Layout, Positioning & Display
- Float
- Visibility ✓ Correct answer
- Hide
- Show
-
CSS defines, how to ______________ HTML elements.
Topic: CSS Layout, Positioning & Display
- display ✓ Correct answer
- make
- send
- save
-
JavaScript variable names can contain.
Topic: JavaScript Basics & Variables
- O
- Underscores
- All of the given options ✓ Correct answer
- Digits
-
Which of the following is not a valid JavaScript variable?
Topic: JavaScript Basics & Variables
- 2number ✓ Correct answer
- number
- None of the given options
- mynumber2
-
Which of the following is not a valid JavaScript variable?
Topic: JavaScript Basics & Variables
- number
- None of the given options ✓ Correct answer
- mynumber2
-
Java Script is designed to ____________.
Topic: JavaScript Basics & Variables
- Execute database queries on webpages
- Add interactivity on HTML pages ✓ Correct answer
- To add server side operations
- Style HTML pages
-
Which of the following is true about Bit operators?
Topic: JavaScript Basics & Variables
- Bit operators work on 64-bit numbers.
- Bit operators work on 256-bit numbers.
- Bit operators work on 128-bit numbers.
- Bit operators work on 32-bit numbers. ✓ Correct answer
-
Which of the following is NOT a way to join multiple words into one variable name in JavaScript?
Topic: JavaScript Basics & Variables
- Semicolon ✓ Correct answer
- Hyphens
- Underscore
- Camel Case
-
For bit wise operations, a numeric operand is converted into ____________ binary numbers.
Topic: JavaScript Basics & Variables
- 8-bit
- 16-bit
- 32-bit ✓ Correct answer
- 64-bit
-
In JavaScript, = sign is used to _______.
Topic: JavaScript Basics & Variables
- Assign values to variables ✓ Correct answer
- Decrement values of variables
- Compare numbers
- Increment values of variables
-
Which of the following function is used to remove the last element of the array?
Topic: JavaScript Values, Functions, Math & Arrays
- Delete ()
- Push ()
- Pop () ✓ Correct answer
- Shift ()
-
What value will be returned by the following JavaScript function? Math.ceil(7.4);
Topic: JavaScript Values, Functions, Math & Arrays
- 8 ✓ Correct answer
- 74
- 7.4
- 7
-
What will be the value in variable x after executing the following JavaScript code statement? var x = 5/0;
Topic: JavaScript Values, Functions, Math & Arrays
- -Infinity
- Infinity ✓ Correct answer
- id
- students
-
What value will be returned by the following JavaScript function? parseInt("students id 231");
Topic: JavaScript Values, Functions, Math & Arrays
- id
- 231
- students
- NaN ✓ Correct answer
-
What value will be returned by the following JavaScript function? Math.max(5.2, -5.2, 6.2, - 6.2);
Topic: JavaScript Values, Functions, Math & Arrays
- -6.2
- 5.2
- -5.2
- 6.2 ✓ Correct answer
-
Which of the following value cannot return by Math.random() function?
Topic: JavaScript Values, Functions, Math & Arrays
- 0.9
- 0.8
- 1.7 ✓ Correct answer
- 0.7
-
Choose the correct syntax to create an array students in JavaScript?
Topic: JavaScript Values, Functions, Math & Arrays
- var students[] = {"Ali", "Ahmed", "Noor"};
- var students = ["Ali", "Ahmed", "Noor"];
- var students ["Ali", "Ahmed", "Noor"];
- var students = ["Ali", "Ahmed", "Noor"]; ✓ Correct answer
-
What will be the sequence of elements in the array 'colour' after using sort function on it? var colour = ["Blue", "Pink", "Purple", "Black"]; colour.sort();
Topic: JavaScript Values, Functions, Math & Arrays
- ["Black", "Blue", "Pink", "Purple"] ✓ Correct answer
- ["Black", "Purple", "Pink", "Blue"]
- ["Black", "Blue", "Pink", "Purple")
- [Blue', Pink', "Purple", "Black"];
-
Which of the following function is used to define an alternative sort order?
Topic: JavaScript Values, Functions, Math & Arrays
- Comparison function. ✓ Correct answer
- Alternative function.
- None of the above.
- Compare function.
-
What value will be returned by the following JavaScript expression? 1 == "1"
Topic: JavaScript Values, Functions, Math & Arrays
- True ✓ Correct answer
- Infinity
- False
- NaN
-
What value will be returned by the following expression? 1 === "1"
Topic: JavaScript Values, Functions, Math & Arrays
- False ✓ Correct answer
- True
- -Infinity
- NaN
-
Which of the following value will JavaScript return if we calculate a number outside the largest possible number?
Topic: JavaScript Values, Functions, Math & Arrays
- Invalid
- Exceeded
- Infinity ✓ Correct answer
- Outofrange
-
Which of the following is not a loop in JavaScript?
Topic: JavaScript Values, Functions, Math & Arrays
- for
- do in ✓ Correct answer
- for/in
- while
-
What value will be returned by the following JavaScript function? Math.round(8.4);
Topic: JavaScript Values, Functions, Math & Arrays
- 8 ✓ Correct answer
- 8.4
- 9
- .4
-
___ requests data from a specified resource, has limited length and can be cached by client.
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- REQUEST
- POST
- SERVER
- GET ✓ Correct answer
-
Which of the following symbol is not used by a dynamic URL?
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- ?
- &
- %
- ~ ✓ Correct answer
-
Web Services can communicate world-wide using ___.
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- HTTP ✓ Correct answer
- HTPP
- URI
-
Which of the following is not a naming rule for XML elements?
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- It can contain letters, digits, hyphens, underscores, and periods.
- It must start with a letter or underscore.
- It can contain spaces. ✓ Correct answer
- It cannot start with the letters xml or XML or Xml, etc.
-
Which of the following is the default character encoding for XML documents?
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- UTF-32
- None of the given options
- UTF-8 ✓ Correct answer
- UTF-16
-
Which of the following is a fast, small, and feature-rich JavaScript library?
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- SQuery
- None of the given options
- jQuery ✓ Correct answer
- FQuery
-
What is the function of responseText in AJAX?
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- get the response data as XML data
- get the response data as a string ✓ Correct answer
- All of the given options
- get the response data as an integer
-
All selectors in jQuery start with ____________.
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- $() ✓ Correct answer
- #()
- %()
- ~()
-
Which of the following feature is not part of the jQuery library?
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- HTML/DOM manipulation
- None of the given options ✓ Correct answer
- CSS manipulation
- Effects and animations
-
The $(document).ready() method allows us to execute a function when,
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- None of the given options
- Document is about to load
- Document is partially loaded
- Document is fully loaded ✓ Correct answer
-
XML is used as a format for document storage and processing, ____________.
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- online
- offline
- None of the given options
- both online and offline ✓ Correct answer
-
AJAX is about:
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- Sending data to server without reloading the whole page
- Both Sending and receiving data from server by reloading the whole page
- Receiving data from server without reloading the whole page
- Both sending and receiving data from server without reloading the whole page ✓ Correct answer
-
Full form of URL is.
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- Unlimited Resource Locator
- Uniform Resource Location
- Uninformed Resource Locator
- Uniform Resource Locator ✓ Correct answer
-
HTTP stands for.
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- Hypertext Transfer Protocol ✓ Correct answer
- Hypertext Transfer Path
- Hypertext Transmission Path
- Hypertext Transform Protocol
-
In HTML, URL is also known as:
Topic: Web Fundamentals, HTTP, XML, AJAX & jQuery
- Web Browser
- UR identifier
- Home Address
- Web Address ✓ Correct answer
-
Which of the following elements is a block-level element used to group other HTML elements and create divisions or sections in a web page?
Topic: Additional MCQs from Paper Topics
- <span>
- <div> ✓ Correct answer
- <b>
- <br>
-
Which HTML element is an inline element used to apply styles to a specific portion of text?
Topic: Additional MCQs from Paper Topics
- <div>
- <p>
- <span> ✓ Correct answer
- <section>
-
Which of the following is used to write a single-line comment in JavaScript?
Topic: Additional MCQs from Paper Topics
- /* comment */
- // comment ✓ Correct answer
- # comment
- <!-- comment -->
-
Multi-line comments in JavaScript are written using:
Topic: Additional MCQs from Paper Topics
- // ... //
- /* ... */ ✓ Correct answer
- <!-- ... -->
- # ... #
-
Which of the following is required when converting an HTML document to XHTML?
Topic: Additional MCQs from Paper Topics
- All elements must have proper closing tags ✓ Correct answer
- Attribute values may be left unquoted
- The doctype declaration must be removed
- Elements can be closed in any order
-
Which CSS rule gives a table a 1px solid border and a green background color?
Topic: Additional MCQs from Paper Topics
- table { border: 1px solid black; background-color: green; } ✓ Correct answer
- table { border: 1px dotted black; color: green; }
- table { background-border: 1px; color: green; }
- td { border: 1px solid black; background-color: green; }
-
Why are comments used in code?
Topic: Additional MCQs from Paper Topics
- To make the code execute faster
- To enhance readability and understanding of the code ✓ Correct answer
- To hide the code from the browser
- To increase the file size
-
Which of the following is an inline element?
Topic: HTML Elements, Lists & Forms
- <li>
- <a> ✓ Correct answer
- <div>
- <p>
-
In HTML page, to add spaces to your text, you can use the ____________ character entity
Topic: HTML Elements, Lists & Forms
- &space;
- ✓ Correct answer
- &bsp;
- &sp;
-
________ element is used to highlight the text in HTML
Topic: HTML Elements, Lists & Forms
- <sub>
- <mark> ✓ Correct answer
- <i>
- <b>
-
Which of the following is NOT an example of HTML block element?
Topic: HTML Elements, Lists & Forms
- <h1>
- <b> ✓ Correct answer
- <p>
- <table>
-
In HTML, the document language can be declared in the ____________ tag in ____________ attribute
Topic: HTML Elements, Lists & Forms
- <body>, language
- <html>, lang ✓ Correct answer
- <title>, language
- <language>, lang
-
<ol> element is used for ________ in HTML
Topic: HTML Elements, Lists & Forms
- Min-ordered list
- Definition list
- Ordered list ✓ Correct answer
- Unordered list
-
In HTML form, ____________ statement defines a radio button.
Topic: HTML Elements, Lists & Forms
- <input type="rdbutton">
- <input type="radio"> ✓ Correct answer
- <input type="button">
- <input type="radio button">
-
In HTML, headings are defined with ____________ tag(s)
Topic: HTML Elements, Lists & Forms
- <heading>
- <h>
- <h1> to <h6> ✓ Correct answer
- <hd>
-
Which of the following tag defines a description list in HTML?
Topic: HTML Elements, Lists & Forms
- <l>
- <dl> ✓ Correct answer
- <list>
- <dlist>
-
__________ element is used to define HTML forms.
Topic: HTML Elements, Lists & Forms
- <f>
- <fr>
- <h>
- <form> ✓ Correct answer
-
Which of the following is correct attribute to add border to an HTML table?
Topic: HTML Elements, Lists & Forms
- b
- br
- border ✓ Correct answer
- tborder
-
Which of the following is/are example(s) of HTML inline elements?
Topic: HTML Elements, Lists & Forms
- <b>
- <span>
- <img>
- All of the given options ✓ Correct answer
-
________ CSS property specifies the stack order of the overlapping elements that which element will be placed in front of, or behind, the others.
Topic: CSS Selectors & Properties
- Float
- Display
- Visibility
- Z-index ✓ Correct answer
-
In CSS, which of the following CSS selector can be used to select all the input elements with text type?
Topic: CSS Selectors & Properties
- input [type="text" ]
- input [ type text ]
- input [ type = "text" ] ✓ Correct answer
- input { type = "text" }
-
Choose the false option
Topic: CSS Selectors & Properties
- The z-index property specifies the stack order of an element.
- An element can have a positive or negative stack order.
- An element with lower stack order is always in front of an element with a greater stack order. ✓ Correct answer
- None of the given options
-
There are ____________ types of levels in style sheets.
Topic: CSS Selectors & Properties
- One
- Two
- Three ✓ Correct answer
- Four
-
Which selector is used to specify a style for a group of elements?
Topic: CSS Selectors & Properties
- id selector
- class selector ✓ Correct answer
- data selector
- HTML selector
-
Which of the option(s) given below is correct if we apply CSS property "display: none;" to an element?
Topic: CSS Selectors & Properties
- It hides an element and it will not be taking the same space as before on the web page. ✓ Correct answer
- It hides an element and it will be taking the same space as before on the web page.
- It shows an element and it will not be taking the same space as before on the web page.
- It shows an element and it will be taking the same space as before on the web page.
-
In CSS, the class selector uses the HTML class attribute, and is defined with
Topic: CSS Selectors & Properties
- :
- . ✓ Correct answer
- ,
- None of the the given options
-
The following CSS code is an example of CSS ____________. <h1 style="color:blue;">This is a heading.</h1>
Topic: CSS Selectors & Properties
- Internal style
- Inline style ✓ Correct answer
- External style
- None of the given options
-
Which of the following CSS property is used to change the text color?
Topic: CSS Selectors & Properties
- Front-color
- Text-color
- Color ✓ Correct answer
- Font-color
-
In CSS, _______ and _______ properties can be used to control the visibility of the content that an element will be visible or not.
Topic: CSS Selectors & Properties
- Show and Hide
- Block and Inline Block
- Fade In and fade Out
- Display and Visibility ✓ Correct answer
-
The Advantage(s) of CSS is/are :
Topic: CSS Selectors & Properties
- Separation of document contents from document properties.
- Superior Styles to HTML
- High Performance
- All of the given options ✓ Correct answer
-
What value will be returned by the following JavaScript function? Math.min(-2.2, 3.2, -1.2, 4.2);
Topic: JavaScript: Math, Numbers & JSON
- 4.2
- -1.2
- 3.2
- -2.2 ✓ Correct answer
-
What value will be returned by the following JavaScript expression? isNaN("Z");
Topic: JavaScript: Math, Numbers & JSON
- True ✓ Correct answer
- False
- NaN
- Infinity
-
What value will be returned by the following JavaScript expression? isNaN("CS202").
Topic: JavaScript: Math, Numbers & JSON
- True ✓ Correct answer
- False
- NaN
- Infinity
-
What will be the value in variable x after executing following JavaScript code statement? var x = -5/0;
Topic: JavaScript: Math, Numbers & JSON
- Infinity
- -Infinity ✓ Correct answer
- -5
- 0
-
What value will be returned by the following JavaScript function? Math.round(9.9);
Topic: JavaScript: Math, Numbers & JSON
- 9
- 9.9
- 10 ✓ Correct answer
- 10.9
-
What will be the value of variable sin after execution of the following JavaScript code segment? var txt = "Virtual University"; var sin = txt.length;
Topic: JavaScript: Math, Numbers & JSON
- 17
- 18 ✓ Correct answer
- 19
- 20
-
What value will be returned by the following JavaScript function? Math.ceil(8.2);
Topic: JavaScript: Math, Numbers & JSON
- 9 ✓ Correct answer
- 8.2
- 8
- 2
-
JSON stands for ___________________.
Topic: JavaScript: Math, Numbers & JSON
- JavaScript Object Notation ✓ Correct answer
- JavaScript Open Network
- JavaScript Output Network
- Java Standard Open Name
-
In JSON, JSON.parse(text) is used to __________.
Topic: JavaScript: Math, Numbers & JSON
- convert a JSON text into a JavaScript object ✓ Correct answer
- convert a JavaScript object into a JSON text
- convert a JSON text into a JavaScript object and a JavaScript object into a JSON text
- None of the given options.
-
JSON uses syntax of ___________
Topic: JavaScript: Math, Numbers & JSON
- Java
- JavaScript ✓ Correct answer
- HTML
- CSS
-
JSON arrays are created using _______________.
Topic: JavaScript: Math, Numbers & JSON
- [] ✓ Correct answer
- {}
- ()
- None of the given options.
-
While converting HTML 4 elements to HTML 5 semantic elements, <div id="menu"> will be converted into:
Topic: HTML5 Semantic Elements & Media
- <section>
- <article>
- <nav> ✓ Correct answer
- <header>
-
Which of the following is not a semantic element in HTML5?
Topic: HTML5 Semantic Elements & Media
- <div> ✓ Correct answer
- <article>
- <section>
- <header>
-
Which of the following new media element is/are added in HTML5?
Topic: HTML5 Semantic Elements & Media
- <audio>
- <video>
- <source>
- All of the given options ✓ Correct answer
-
In HTML5, ___________ defines a caption for a <figure> element.
Topic: HTML5 Semantic Elements & Media
- <capfig>
- <figcaption> ✓ Correct answer
- <figurecaption>
- <captionfig>
-
While converting HTML 4 elements to HTML 5 semantic elements, <div class="post"> will be converted into:
Topic: HTML5 Semantic Elements & Media
- <section>
- <article> ✓ Correct answer
- <nav>
- <header>
-
Which of the following is a non-semantic element in HTML5?
Topic: HTML5 Semantic Elements & Media
- <section>
- <article>
- <span> ✓ Correct answer
- <footer>
-
FTP stands for ____________.
Topic: Web Fundamentals
- File Transmission Path
- File Transfer Protocol ✓ Correct answer
- File Test Path
- File Transform Protocol