Preview

why oky

Satisfactory Essays
Open Document
Open Document
304 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
why oky
Lab Quiz # 1
(JavaScript and CSS)

Instructions

Please go through the instructions very carefully.

Submit the same document by renaming it with your roll number
In case of cheating, -3 abs would be awarded in lab
Write answer below each question e.g. “option A”

Exercise 1
JavaScript Section

1. How do you call a function named "myFunction"?

A. call function myFunction
B.
call myFunction()
C.
myFunction()
Option: C

2.
What would be output of alert? var _$te$t2;
_$te$t2 = ‘my value ’;
_$te$t2 = _$te$t2 + 12

Alert(_$te$t2;)

A.
Variable not valid
B.
my value12
C.
None of above

Option: B

3.
When value is declared but not initialized, by default value assigned to it is

A. null B.
Empty string
C.
undefined

Option: A

4.
What would be output of alert? var t2 = 10.2; alert(t2.toString()); A.
10.2
B.
Type mismatch error
C.
10

Option: A

5.
What would be output of alert? var myTemp = ‘hello world’ alert(myTemp.lastIndexOf(“o”)-1); A.
8
B.
7
C.
None of above

Option: B

6.
What would be output of alert? var myTemp = 12; var myTemp2 = 1;

var finalTemp = myTemp2-- + myTemp++ alert(finalTemp) A.
15
B.
13
C.
11

Option: C

7.
What would be output of alert? function sum(iNum1, iNum2) { return iNum1 + iNum2; alert(iNum1 + iNum2);
}

var iResult = sum(1,1);

A.
2
B.
Type mismatch error
C.
None of above

Option: C
CSS Section
8.
What i s the correct syntax for removing the default underline from links?

A. a { text-decoration: none; }

B. a {underline: none}

C. link { text-decoration: none; }

Option: B

9.
Which of the following is the proper syntax for linking to an external stylesheet in HTML?

A.

B. href=”style.css”
C.

D.

Option: A

10.
Which of the following is NOT an advantage of CSS defined for the entire site?

A.
Prettier colors
B.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    What are the advantages of external cascading style sheets (CSS) compared to internal CSS and the embedded ? Explain situations in which each is the appropriate type. Given these situations, which type do you think would be more useful for the majority of web pages?…

    • 426 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Final Exam

    • 746 Words
    • 3 Pages

    If you have several Web pages and need a consistent style that can be easily updated, __________ is a good choice.…

    • 746 Words
    • 3 Pages
    Good Essays
  • Good Essays

    It237 Week 2 Checkpoint

    • 414 Words
    • 2 Pages

    Last, I will be describing the inline cascading style sheet as well as a pro and a con for it. An inline style sheet is in which the CSS or cascading style sheet code is written directly on the element in which it affects. One of the pros to using inline style is that it has the highest precedence. This is simply put that no matter what these are going to be applied. Another pro is that they are easily added to a document and you do not have to create an entire new document. One con to using the inline type is…

    • 414 Words
    • 2 Pages
    Good Essays
  • Good Essays

    The other goal is to manage the website content. Managing the amount content on the website will create a visual and financial foundation which will be beneficial for the customer and owner. Elements of design and graphic which includes color, number of words per line, tastefully images, animation and/audio, images, and etc. Also music, color and lighting can influence the shopper to spend time and money (e.g., Herrington and Louis, 1994). These elements will attract customers to purchase items from the website. Attracted customers will be profitable for the…

    • 688 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    What is a style guide? Is adhering to a style guide important? Why or why not?…

    • 319 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    “Visual elements such as color, layout, typography, and images shape a sites personality or voice” (McIntire, 2008, p. 2) thus the design must be appealing in order to lure visitors to the site. There are several characteristics that are included in the design of a website including color, layout, graphics, fonts, input forms, and navigation. After reviewing the Kudler site, the rotating graphics gives the site a focusing affect.…

    • 568 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2. How does the overall construction of the Zappos.com Web site contribute to the success of the business? Organization your answer around the three elements of Web site design: content, design (i.e. look and feel, and ease of navigation), and functionality (i.e. user interactivity).…

    • 449 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Wk 3 Dqs

    • 323 Words
    • 2 Pages

    Which of the six design principles do you see being used in this website? Provide examples…

    • 323 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    21. An href value that links to an external website and includes the http:// protocol is called an absolute link.…

    • 335 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Psy/210 Week 5 Assignment

    • 591 Words
    • 3 Pages

    Why? In what ways is this advantage to you? In what ways is it a disadvantage?…

    • 591 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    ur gey

    • 942 Words
    • 4 Pages

    straya m8 ya fuken cuntz nning mates Jefferson and AARON BURR received the same number of electoral votes. The election was decided in the House of Representatives where each state wielded a single vote.…

    • 942 Words
    • 4 Pages
    Powerful Essays
  • Good Essays

    Compare and contrast economic, social, and political developments in the North and South between 1800-1860. How do you account for the divergence between the two sections?…

    • 952 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Sdokay Then

    • 682 Words
    • 3 Pages

    Use the chart and guidelines below to help plan goals for your students based on their reading level and the amount of daily reading practice that you provide. Identify ZPD Identify each student’s grade-equivalent (GE) score with a standardized assessment, such as STAR Reading, or estimate a GE based on the student’s past performance. The corresponding ZPD is a recommended book-level range for the student. If books in that range seem too hard or easy for a student, choose a new range or create a wider one that better matches the student’s abilities. Set Goals A verage percent cor rect—The most important goal for all students is to average 85% or higher on Reading Practice Quizzes. Meeting this goal has significant impact on reading growth. Averages of 90% and higher are associated with even greater gains. If a student struggles to maintain the minimum average, talk to the student and find out why. Then decide on a strategy that will lead to success. Point goals—The chart shows the number of points students are expected to earn based on GE and time spent reading. These are estimates—set goals that are realistic for individual students.…

    • 682 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Oydessy

    • 465 Words
    • 2 Pages

    I chose this because it shows the strength of the gods, Zeus got his pay back to the people because Telemachus said that they should be punish for trying to do this to his family while his dad is gone. Just like that Zeus punish them by sending 2 eagles on them from the mountains. The eagles scratch them up face an body, just like Telemachus asked Zeus to pay them back he sure did as a powerful God like Zeus would.…

    • 465 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Tumblr Themes

    • 419 Words
    • 2 Pages

    {TITLE} {block:Description}{/block:Description} body { background-color:{color:Background}; background-image:url({image:Background}); background-position:{text:Background Image Position}; {block:IfBackgroundImageNotRepeat}background-repeat:no-repeat;{/block:IfBackgroundImageNotRepeat} {block:IfBackgroundImageFixed}background-attachment: fixed;{/block:IfBackgroundImageFixed} color:{color:Text}; font-size:14px; line-height:16px; font-family:{font:body}; } a, a:visited, a:active { color:{color:Link}; text-decoration: none; } a:hover { color:{color:link hover}; text-decoration:none; } p { margin: 1px 1px 1px 3px; line-height:10px; padding: 0; } ol.notes { padding: 0px; margin: 10px 0px; list-style-type: none; border-bottom: dotted 1px {color:text}; } ol.notes li.note { border-top: dotted 1px {color:text}; padding: 10px; } ol.notes li.note img.avatar { margin-right: 10px; width: 20px; height: 20px; } blockquote{padding:0px; padding-left:5px; margin:5px; border-left:1px dotted {color:text};} blockquote img{display:block;} blockquote p{padding:0px; margin:0px;} blockquote blockquote{position:relative; left:-5px; margin-top:0px; margin-right:0px; padding-right:0px;} a img{border:none;} #content{ position:absolute; top:55px; width:520px; left:470px; padding:2px; margin:auto; } #sidebar{ top:60px; width:300px; position:absolute; font-color:{color:text}; left:60px; overflow:shown; padding:10px; background-color:{color:Sidebar}; } #post{ padding:1px; margin-bottom:8px; background-color:{Color:Posts}; } h1 { font-size:15px; font-weight:normal; font:{font:title}; color:{color:Title}; text-transform:none; line-height:16px; letter-spacing:-2px; } .h2 { font-size:11px; font:{font:text}; color:{color:text}; background-color: transparent; text-align: right; text-transform:uppercase; padding:1px; font-weight:normal; } h3 { margin-top:5px;…

    • 419 Words
    • 2 Pages
    Powerful Essays

Related Topics