WordPress.com



4779034-94891The City SchoolPrep Girls North NazimabadICTech Grade 8Introduction to Programming ConceptsName:_____________________________ Section: _______ Date: _______________ Q. 1 Fill in the blanks.The text which is needed to be translated is called _____________ code.Translator which keeps no memory of translated lines is _________________.PASCAL uses __________________ translatorIn ___________________________ programming, a program is no longer series of instructions but collection of objects.The logical parts of a problem are divided into series of independent, individual and interchangeable routines in __________________ programming.BASIC, COBOL and ASP use __________________ translator.Fifth Generation languages are also called _____________________Assembly languages are improvement over ________________ languages.The world’s most widely used RAD language is ______________________The language uses both compiler and interpreter is _____________________The concept of generation is also called ______________Set of instructions that a computer understand is ___________________C, C++, C# and Java are _______________ generation languages.Before machine language, information was entered in computer in form of _______________Q. 2 Write the names of 1st Generation languages 2nd Generation languages3rdGeneration languages4thGeneration languages5thGeneration languagesForms in HTMLPoints to Remember<Form> </Form> tag is used to create a Form in HTML documentAttributes of FORM tag areAction: Destination address, where the information will be sent. E.g. action=”mailto:abc@”Method: How the information will be sent. Values are Get and PostName: Any name assigned to this form<INPUT> tag is used to accept information from the user. <INPUT> is an empty tag.Input Type Attribute: The Values of Type attribute can beInput Type=“Text” is used to create a Text Box. E.g. Enter User Name or Login information.Attributes are Name, Maxlength, Size, Align, ValueInput Type=“Password” is used to create a textbox for password. It shows the written characters as bullets or special charactersAttributes are Name, Maxlength, SizeInput Type=“Checkbox” is used to create checkbox in a form.Attributes are Name, value, checked(to keep any selected value by default)Input Type=“radio” is used to create Radio button in a form.Attributes are Name, Value, checkedInput Type=“button” is used to create a Command button. E.g Start buttonAttributes are Name, ValueInput Type=“submit” is used to create a Submit button to send the information to destination specified in action attribute of FORM tagAttributes are Name, ValueInput Type=“reset” is used to create a Reset button. It Bring the form on its original state before anything was typed.Attributes are Name, ValueInput 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 Input Type=“image” is used to create a Submit button in form of 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 menu 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)Q. Answer the following questionsFill in the blanksHTML file is saved with an extension of _________ or _________User interacts with forms through named ______________The two types of lists that can be created from <Select> tag are ____________ and ____________The characters can be made to appear hidden on a Webpage by using ____________ Write the HTML attributes for the following tags1<INPUT type=“Text”>2<INPUT type=“Password”>3<INPUT type=“checkbox”>4<INPUT type=“submit”>5<INPUT type=“reset”>6<INPUT type=“file”>7<INPUT type=“image”>8<INPUT type=“button”>9<TEXTAREA>10<Option>11<Select>12<Form>How would you create a Reset button with displaying value “Clear Everything”?Write HTML tags along with attributes to create a File upload option in HTML form.Make a text area asking users to write something about themselves in a job application form.Create a scroll list of name of months in a year. Keep March as selected by default. The size of list should be 4. 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>.Create a survey form and ask user his name and password in text box, gender in radio button, favourite food and favourite restaurants in checkboxes. Give options for selection. Also give some space for any other comment user wants to make related to this survey. Create a submit and reset button with suitable value.JavaScript in HTMLQ. 1 Fill in the Blanks‘55.98.2’ will be displayed by parseInt() as ______________ and by parsefloat() as ________________’19.2years’ in parsefloat() will be written as ________________ and in parseInt() as ______________A-159 in parsefloat() will be written as ________________ and in parseInt() as ______________In JavaScript, ___________________ is used for displaying text on the browser window.Confirm box includes _____________ and ______________ buttons.Alert window can only be closed by _____________ button.In JavaScript, _________________ is used instead of <BR> tag.In window methods, _________________ window always stays on top.In JavaScript, ‘<=’ means __________________ and it as a __________________ operator.! means ____________ in JavaScript.|| represents _________________ in JavaScript.Joining or adding two or more set of characters in JavaScript is called _____________________ and it is done by _________ operatorVariables cannot be made of more than ___________ characters.Names of variables cannot be started with __________________Using of semicolon at the end of each JavaScript statement is _________________Names assigned to a memory location for storing data are called ____________The section between opening <SCRIPT> tag and closing </SCRIPT> tag is called ___________________To take an input from a user or ask any question, ______________ method of JavaScript is used.In JavaScript, the single line comments are represented by _______ and multiple lines comments are represented by ________JavaScript is a _________________ language.JavaScript files are saved with a _____________ file extension. In window.confirm() method the values are returned true if _________ is pressed and are returned false if ____________ is pressed.HTML is not case sensitive as compared to ________________ Write JavaScript Statements to perform the following tasks.Ask users their name and date of birth and display them on the webpage as “Hello _______. Your date of birth is ________” in blue colour with font size 5. Accept the radius from user and calculate diameter, area and circumference of circle. Show the results in Alert Boxes separately with a proper message.Ask users their marks of English, Urdu, Maths and Science and show the average of marks in parseFloatTake the value of side of square and display the value of area and perimeter in green color.To include JavaScript in HTML document _______________ tag is used. <BODY><SCRIPT><EMBED><HTML>The tag which is used to accept information from the user is called _______________TEXTAREAINPUTSELECTSUBMITSrc, align, alt, border, width and height are the attributes of INPUT type _______________filebuttonimagecheckboxHTML stands for _______________Hypertool Markup language Hypertext Markup language Hypertext Making language Hypertext Markup level When you want the user to enter multiple lines of data in a text box, you use _______________ tag<INPUT type=“text”>INPUTOPTIONTEXTAREABy default, a movie in flash is saved with _______________ file extension.pptx.fla.swf.txtThe objects which are created and stored in library of Macromedia Flash are called ____________________SceneSymbolsFrameOval Tool_______________ is used to declare a variable in JavaScriptdocument.writevar//document.variableQ. 2 State whether True or False1Action attribute of FORM tag specifies how the information will be sent to destination server.2Forms in HTML may contain only one Submit button.3Comments can be added to make the code more readable.4JavaScript is a case sensitive language.5You can nest a FORM tag within another FORM tag.6<HTML> is a tag which is used to place a video or sound file in a web page.7JavaScript and Java language are same.8<input type=“button”> is used to create submit button9JavaScript is a markup language.10Interactive elements in a form of HTML are called Controls11An HTML document can have more than one <Script> tag.12!= means ‘not equal’.13Prompt window always stays on top. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download