+ All Categories
Home > Documents > Web viewIn JavaScript, _____ is used instead of tag. In window ... Ask user their marks of English,...

Web viewIn JavaScript, _____ is used instead of tag. In window ... Ask user their marks of English,...

Date post: 01-Feb-2018
Category:
Upload: phungquynh
View: 213 times
Download: 0 times
Share this document with a friend
19
The City School Prep Girls North Nazimabad ICTech Grade 8 Question Bank
Transcript
Page 1: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

The City SchoolPrep Girls North Nazimabad

ICTech

Grade 8Question Bank

Page 2: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

Scratch

1. What is Scratch? 2. Write the advantages of Scratch?3. Briefly explain the projects we can create through Scratch?4. How is it important to learn game programming? 5. Why should we use Scratch compared to other programming

software? 6. What skills does Scratch teach? 7. In what manner programming done by computer scientists to make

various software and programming done by kids on Scratch is similar?

8. Name and explain major components of Scratch interface screen. 9. Name and explain the types of blocks used for iteration or looping.10. How we can give conditions to invent a problem/situation in

Scratch?11. What menu will be used to set and change colour effects, graphic

effects and size of sprite?12. What does it mean by scripting a sequence in Scratch? 13. What is the purpose of Sensing menu in block palette of Scratch?14. Why do we use operator blocks?15. Write the names of four directions along their rotation degrees.16. How the positions of different sprites on stage are represented?17. How do we direct our sprites to act according to our commands?18. Write the name of menus where the following command blocks are

found.

19. What is the difference between the following blocks?

Page 3: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

Forms in HTMLImportant Tags and Attributes

<Form> </Form> tag is used to create a Form in HTML documentAttributes of FORM tag are1. Action: Destination address, where the information will be sent. E.g.

action=”mailto:[email protected]”2. Method: How the information will be sent. Values are Get and Post3. Name: Any name assigned to this formControls in <FORM>Interactive interface elements which require user to type or select the information in a form are called controls. E.g radio button, checkbox, textbox, password box, list etc

<INPUT> tag is used to accept information from the user. <INPUT> is an empty tag.Input Type Attribute: The Values of Type attribute can be

1. Input Type=“Text” is used to create a Text Box. E.g. Enter User Name or Login information.Attributes are Name, Maxlength, Size, Align, Value

2. Input Type=“Password” is used to create a textbox for password. It shows the written characters as bullets or special charactersAttributes are Name, Maxlength, Size

3. Input Type=“Checkbox” is used to create checkbox in a form.Attributes are Name, Value, Checked(to keep any selected value by default)

4. Input Type=“Radio” is used to create Radio button in a form.Attributes are Name, Value, Checked

5. Input Type=“Button” is used to create a Command button. E.g Start buttonAttributes are Name, Value

6. Input Type=“Submit” is used to create a Submit button to send the information to destination specified in action attribute of FORM tagAttributes are Name, Value

7. Input Type=“Reset” is used to create a Reset button. It Bring the form on its original state before anything was typed.Attributes are Name, Value

8. Input Type=“File” is used to create a File upload option. A browse button will appear automatically to browse and upload any file from your computer.Attributes is Name

Page 4: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

9. Input Type=“Image” is used to create a Submit button in form as an image. Here the picture will work as a Submit button.Attributes are Src, Align, Width, Height, Alt

<TEXTAREA> </TEXTAREA> tag is used when you want your user to enter multiple lines of data in a text box.

Attributes for TEXTAREA tag areName, Cols, Rows, Readonly

<SELECT> Tag and <OPTION> Tag<SELECT> Tag is used when you want to create a Drop-down List Box or scrolling list in your Form. Attributes are Name, Size, Multiple (to allow user to select multiple values by pressing Ctrl key)<OPTION> tag is used inside SELECT tag to write each item of that drop-down list. These are container elements and have start and end tag.Attributes are Value, Selected (to keep any selected value by default)

Drop down list code written with the size attribute becomes a scroll list

<! ……….. > is a comment tag in HTMLPoints to Remember

HTML: HTML stands for Hyper Text Markup Language is a simple scripting language mainly used for developing web pages. The browsers’ task is to read those markup tags and display them as a Webpage.HTML TagsHTML codes, also called Markup tags and are simple easy to remember keywords and always written inside angle brackets. There are two types of tags.

1. Container Tags have a start and end tag. E.g. <form> …. </form>2. Empty Tags have opening tag only. E.g. <BR>, <LI>, <HR>,

<IMG>, <INPUT>HTML Tag AttributesThe additional information of a tag is called attribute. They are always written inside the Opening tag. Attributes are written as Attribute name=“attribute value” Structure of an HTML document

1. Root Element: <HTML></HTML>2. Head Element: <Title> Enter your Text </Title> 3. Body Element: <Body>____</Body>. Body Attributes are

bgcolor, background, topmargin, leftmargin, rightmargin,

Page 5: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

bottommargin. Colours of hyperlink can also be controlled by link, vlink and alink.

Heading Tag: <H1>Enter your Text </H1> To give heading in a webpage. H1, H2, H3, H4, H5, H6 are different sizes and levels of heading. H1 is biggest and H6 is smallest

Paragraph Tag: <p>Enter your Text</p> Line Break Tag: <BR> to give a line break. It is an empty tag. Font tag: <Font> </Font>

Attributes of Font tag are Face, size and Color <B> Enter your Text</B>: To Bold the text <I> Enter your Text </I>: To italicize the text <U> Enter your Text </U>: To underline the text Image Tag: <img>

<img src=“file name” height=“________” length=“________” alt=“alternate text” border=“thickness of border”>

Q. Answer the following Question1. Explain Form. By which Tag you would create Forms in HTML?2. Name and explain the attributes of the FORM tag.3. Explain Controls and Give some example of Controls in HTML forms.4. What is an <INPUT> tag? Write some attributes which are used

under INPUT type for Text Box.5. Write HTML codes to create two Text Boxes for Login Name and

Password of maximum 15 characters along with a Submit button with the name Login.

6. What is the purpose of <TEXTAREA> tag in HTML coding and how would you create one in a form.

7. Define <SELECT> tag and <OPTION> tag. Why they are used and what is the difference between them?

8. How would you create a Reset button with displaying value “Clear Everything”?

9. Write HTML tags along with attributes to create a File upload option in HTML form.

10. Make a text area asking users to write something about themselves in a job application form.

Page 6: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

11. Create a scroll list of name of months in a year. Keep March as selected by default. The size of list should be 4.

12. Assemble the given tags in correct order according to the structure of an HTML document.</P>, <FORM>, <BODY>,<TITLE>, <P>, </HTML>, </FORM>, <HTML>, </TITLE>, </BODY>.

13. Write the differences betweena) Text Area and Text Boxb) Scrolling list box and Drop-down List Boxc) Checkbox and Radio buttond) Submit Button and Reset Button

14. Fill in the blanksa) HTML file is saved with an extension of _________ or _________b) User interacts with forms through named ______________c) The two types of lists that can be created from <Select> tag are

____________ and ____________d) The characters can be made to appear hidden on a Webpage by

using ____________ 15. Write the HTML attributes for the following tags1 <INPUT type= “Text”> Name, size, align, maxlength, value2 <INPUT type=“Password”> Name, size, align, maxlength3 <INPUT type=“checkbox”> Name, value, checked4 <INPUT type=“submit”> Name, value5 <INPUT type=“reset”> Name, value6 <INPUT type=“file”> Name7 <INPUT type=“image”> Src, alt, height, width, align, border8 <INPUT type=“button”> Name, value9 <TEXTAREA> Name, cols, rows, readonly

10 <Option> Value, selected11 <Select> Name, Size, Multiple12 <Form> Name, action, methodQ. 16 Create a survey form and ask user his first and last name, password, age, gender, favourite food and favourite restaurant. Give options for selection. Also give some space for any other comment user wants to make related to this survey.

Page 7: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

JavaScript in HTMLQ. 1 Fill in the Blanks1. ‘55.98.2’ will be displayed by parseInt() as ______________ and by

parsefloat() as ________________2. ’19.2years’ in parsefloat() will be written as ________________ and

in parseInt() as ______________3. In JavaScript, ___________________ is used for displaying text on

the browser window.4. Confirm box includes _____________ and ______________ buttons.5. Alert window can only be closed by _____________ button.6. In JavaScript, _________________ is used instead of <BR> tag.7. In window methods, _________________ window always stays on

top.8. In JavaScript, ‘<=’ means __________________ and it as a

__________________ operator.9. ! means ____________ in JavaScript.10. || represents _________________ in JavaScript.11. Joining or adding two or more set of characters in JavaScript is

called _____________________ and it is done by _________ operator

12. Variables cannot be made of more than ___________ characters.13. Names assigned to a memory location for storing data are called

____________14. The section between opening <SCRIPT> tag and closing </SCRIPT>

tag is called ___________________15. To take an input from a user or ask any question, ______________

method of JavaScript is used.16. In JavaScript, the single line comments are represented by _______

and multiple lines comments are represented by ________17. JavaScript is a _________________ language.18. JavaScript files are saved with a _____________ file extension. 19. In window.confirm() method the values are returned true if

_________ is pressed and are returned false if ____________ is pressed.

20. HTML is not case sensitive as compared to ________________ Q. 2 Answer the following questions.

Page 8: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

1. What is JavaScript and how is it better than HTML?2. Explain the importance of JavaScript.3. How JavaScript statements are written inside HTML document

internally and externally?4. Explain Object Model in JavaScript.5. Explain Method and Object with the help of examples.6. What is document.write() method and why do we use it?7. How do we write HTML codes in JavaScript?8. Elaborate some rules for writing a program using JavaScript.9. Explain comment and write various ways for writing comments in

JavaScript.10. Why do we write comments in JavaScript?11. Explain Variables and elaborate rules for making and writing a

variable.12. How do we declare a variable and then use it in a JavaScript

program?13. Name and explain types of operators available in JavaScript with

examples.14. Explain String.15. Why do we use Window method in JavaScript?16. Differentate between arithmetic and comparison operators. 17. Explain the use of following window methods

a) window.alert() b) window.confirm() c) window.prompt()

18. Differentiate between parseInt() and parsefloat() method.

Q.3 Write JavaScript Statements to perform the following tasks.

a) Ask users their name and date of birth and display them on a webpage in blue colour with font size 5.

b) Accept the radius from user and calculate diameter, area and circumference of circle. Show the results in Alert Box.

c) Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat.

Page 9: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

Flash-Tweening and PublishingGlossary

Stage is the place where movie is created with graphics or text Work Area is the grey area outside stage where non-graphical items of

animation are kept. E.g. Sound. Property Inspector is an area which displays properties of selected

objects Movie is animated flash document. Scene is a clip of movie contains animated flash documents Layers are like transparent sheets contain various objects that we put

on top of each other Frame is content of movie at a particular moment of time. Keyframe is the copy of previous frame. Timeline is the area where we work on frames and layers. It sets the

sequence of movie Animation is rapid display of sequence of images.

Q. 1 Fill in the Blanks

1. Tweening comes from the words ______________2. Motion tween automatically changes the timeline to

______________ colour.3. Green coloured timeline represents _______________ kind of

tweening.4. The keyboard key to convert an object into symbol is ______5. To create a keyframe, ____________ keyboard key is pressed. 6. Play option is found in _______________ menu.7. You need to covert an object into symbol in ______________ kind

of tweening8. Clip of a movie is called _____________9. By default, Flash file is saved with ____________ extension.10. The extension of shockwave file is ______________11. Flash file with extension of .txt represents ______________12. Flash file in _____________ format can only be tested and viewed

but cannot be edited13. HTML tag to insert your movie or sound file in your webpage is

_________________

Page 10: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

14. The number of times a video or sound file will run on webpage is specified by ______________ attribute of <EMBED> tag.

15. Objects that are created and stored to the Flash library are called ______________

16. Creating effects of converting an object into another is called _______

17. Motion tween and Shape tween options are present in the drop-down list of tween found in _______________

18. By default, first layer in Flash is named as _____________ and first scene is named is ________________

19. Keyboard shortcut to test the movie is _______________20. Preparing a Flash file to be uploaded on internet is called

_____________Q. 2 Answer the following questions.1. Explain Tweening and its types.2. Write the steps to show a moving car through motion tween. 3. How do we convert an object to symbol.4. Write steps to apply shape tween on lotus bud converting into

flower.5. Explain the file formats in which we can save our Flash movie.6. Write steps to publish your movie in required file formats.7. Explain scene and how can we create a new scene.8. What is the difference between saving and publishing Flash movie?9. Write the tag along with attributes to publish Flash movie ‘Car.swf’

on a webpage having a window of width 500 and height 350.

MiscellaneousChoose the correct answer1. In Macromedia Flash, movement of an object or symbol from

one place to another is called _______________a. Tweeningb. Motion Tweening

c. Shape Tweeningd. Key Frame

2. Scratch software increases students’ interest in _______________a. Computerb. Internet

c. Programmingd. Social Networking

Page 11: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

3. To include JavaScript in HTML document _______________ tag is used. a. <BODY>b. <SCRIPT>

c. <EMBED>d. <HTML>

4. The tag which is used to accept information from the user is called _______________a. TEXTAREAb. INPUT

c. SELECTd. SUBMIT

5. Src, align, alt, border, width and height are the attributes of INPUT type _______________a. fileb. button

c. imaged. checkbox

6. HTML stands for _______________a. Hypertool Markup

language b. Hypertext Markup

language

c. Hypertext Making language

d. Hypertext Markup level

7. When you want the user to enter multiple lines of data in a text box, you use _______________ taga. <INPUT type=“text”>b. INPUT

c. OPTIONd. TEXTAREA

8. By default, a movie in flash is saved with _______________ file extensiona. .pptxb. .fla

c. .swfd. .txt

9. The objects which are created and stored in library of Macromedia Flash are called ____________________a. Sceneb. Symbols

c. Framed. Oval Tool

10. _______________ is used to declare a variable in JavaScripta. document.writeb. var

c. //d. document.variable

Page 12: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

Q. 2 State whether True or False

Page 13: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

1

Scene is a clip of movie

Page 14: Web viewIn JavaScript, _____ is used instead of  tag. In window ... Ask user their marks of English, Urdu, Maths and Science and show their average in parseFloat. Flash

2 Action attribute of FORM tag specifies how the information will be sent to destination server.

3 Forms in HTML may contain only one Submit button.

4 Comments can be added to make the code more readable.

5 JavaScript is a case sensitive language.

6 You can nest a FORM tag within another FORM tag.

7 Motion menu controls all types of movement by Sprite in Scratch

8 The effect to change an object to another can be created using Shape Tweening.

9 <HTML> is a tag which is used to place a video or sound file in a web page.

10 JavaScript and Java language are same.

11 We convert object into symbol in Shape Tweening

12 Scratch block palette is organized in six color coded categories

13 <input type=“button”> is used to create submit button

14 JavaScript is a markup language.

15 Interactive elements in a form of HTML are called Controls

16 An HTML document can have more than one <Script> tag.

17 != means ‘not equal’.

18 Prompt window always stays on top.

19 In Scratch, 0 degree means ‘Up’.

20 In Scratch , four rotation styles for Sprite are available.


Recommended