Introduction to JavaScript Programming Test Bank Chapter 1 with XML and PHP

Similar documents
Javascript Lecture 23

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

HTML 5 and CSS 3, Illustrated Complete. Unit L: Programming Web Pages with JavaScript

A340 Laboratory Session #5

UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? editor editor Q.2: What do you understand by a web browser?

Manju Muralidharan Priya. CS4PM Web Aesthetics and Development WEEK 11

JAVASCRIPT BASICS. Type-Conversion in JavaScript. Type conversion or typecasting is one of the very important concept in

CHAPTER 6 JAVASCRIPT PART 1

Controlled Assessment Task. Question 1 - Describe how this HTML code produces the form displayed in the browser.

Exercise 1: Basic HTML and JavaScript

UNIT -II. Language-History and Versions Introduction JavaScript in Perspective-

CSC Web Programming. Introduction to JavaScript

JavaScript Introduction

Programming Lab 1 (JS Hwk 3) Due Thursday, April 28

Lecture 14. Introduction to JavaScript. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

<script type="text/javascript"> script commands </script>

Module 5 The Applet Class, Swings. OOC 4 th Sem, B Div Prof. Mouna M. Naravani

Mobile Site Development

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

CoderDojo Activity Cards: The Cards (Animation2.html): How to use: Student comes to mentor, and together they choose a card to do next.

Current trends: Scripting (I) A bid part of interface design centers around dialogs

Using AJAX to Easily Integrate Rich Media Elements

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

Chapter 3 - Simple JavaScript - Programming Basics. Lesson 1 - JavaScript: What is it and what does it look like?

FBCA-03 April Introduction to Internet and HTML Scripting (New Course)

CS Final Exam Review Suggestions - Spring 2018

Advanced Web Programming (17MCA42)

A Balanced Introduction to Computer Science, 3/E

Lecture (05) PHP 01. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Spring 2016, Web Programming

COMP519 Web Programming Lecture 16: JavaScript (Part 7) Handouts

Lesson 3: Basic Programming Concepts

What is PHP? [1] Figure 1 [1]

Princess Nourah bint Abdulrahman University. Computer Sciences Department

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

Elementary Computing CSC 100. M. Cheng, Computer Science

Remote Tracker Documentation

Client vs Server Scripting

PROFESSIONAL TUTORIAL. Trinity Innovations 2010 All Rights Reserved.

INDEX SYMBOLS See also

CICS 515 a Internet Programming Week 3. Mike Feeley

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Website Development Komodo Editor and HTML Intro

Introduction to Web Development

BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from

Midterm Exam. 5. What is the character - (minus) used for in JavaScript? Give as many answers as you can.

AJAX. Lecture 26. Robb T. Koether. Fri, Mar 21, Hampden-Sydney College. Robb T. Koether (Hampden-Sydney College) AJAX Fri, Mar 21, / 16

Alpha College of Engineering and Technology. Question Bank

INTRODUCTION TO JAVASCRIPT

JavaScript: Introduction, Types

Ampliación de Bases de Datos

Web Engineering (Lecture 06) JavaScript part 2

COMP519 Practical 5 JavaScript (1)

TTWeb Quick Start Guide

Lab 1 Concert Ticket Calculator

JavaScript. Training Offer for JavaScript Introduction JavaScript. JavaScript Objects

PHP 5 Introduction. What You Should Already Know. What is PHP? What is a PHP File? What Can PHP Do? Why PHP?

Lecture 4. Wednesday, January 27, 2016

ibreathesports Inc. Apurva Alok Bernardo Silva

Here are a few easy steps to create a simple timeline. Open up your favorite text or HTML editor and start creating an HTML file.

Programming language components

Web Site Development with HTML/JavaScrip

DATABASE SYSTEMS. Introduction to web programming. Database Systems Course, 2016

University of Cincinnati. P5.JS: Getting Started. p5.js

Mul$media im Netz (Online Mul$media) Wintersemester 2014/15. Übung 03 (Haup9ach)

Control Solutions i.candoit, i.board, and Babel Buster SP Web Server CGI Overview (2/2008)

Web Security: Vulnerabilities & Attacks

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.

Exercise 1 Using Boolean variables, incorporating JavaScript code into your HTML webpage and using the document object

Lesson 7: If Statement and Comparison Operators

SCHOOL OF COMPUTING, ENGINEERING AND MATHEMATICS SEMESTER 2 EXAMINATIONS 2015/2016 CI135. Introduction to Web Development

CS1046 Lab 4. Timing: This lab should take you 85 to 130 minutes. Objectives: By the end of this lab you should be able to:

ORB Education Quality Teaching Resources

JS Lab 1: (Due Thurs, April 27)

(from Chapters 10/11 of the text)

Overview. Event Handling. Introduction. Reviewing the load Event. Event mousemove and the event Object. Rollovers with mouseover and mouseout

JavaScript Introduction

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018)

WINTER. Web Development. Template. PHP Variables and Constants. Lecture

JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

UNIT I Java Bean, HTML & Javascript

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Ministry of Higher Education and Scientific Research

10.1 Overview of Ajax

CSE 115. Introduction to Computer Science I

Standard 1 The student will author web pages using the HyperText Markup Language (HTML)

TUTORIAL QUESTION BANK

Acknowledgments. Who Should Read This Book?...xxiv How to Read This Book...xxiv What s in This Book?...xxv Have Fun!...xxvi

Introduction to WEB PROGRAMMING

TERM I SEPTEMBER 2016 M.M: 70 MULTIMEDIA & WEB TECHNOLOGY- 067 (XII) TIME: 3 HRS

The Text Editor appears in many locations throughout Blackboard Learn and is used to format text. For example, you can use it to:

c122mar413.notebook March 06, 2013

Shankersinh Vaghela Bapu Institue of Technology

Space Details. Available Pages

introduction to XHTML

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

CIW 1D CIW JavaScript Specialist.

IDM 231. Functions, Objects and Methods

Such JavaScript Very Wow

E ECMAScript, 21 elements collection, HTML, 30 31, 31. Index 161

Web Design & Dev. Combo. By Alabian Solutions Ltd , 2016

Transcription:

Test Bank for Introduction to JavaScript Programming 1 st Edition by rake Link download full: http://testbankcollection.com/download/test-bank-for-introduction-to-javascriptprogramming-with-xml-and-php-1st-edition-by-drake Test Bank for hapter 1 MULTIPLE HOIE 1. Which is the first step in the program development cycle? a. design a program b. analyze the problem c. code the program and review the results d. test the program B 2. Which of the following is not a control structure? a. sequence b. selection c. syntax d. repetition 3. Which of the following is NOT one of the primary JavaScript data types? a. float b. numeric c. Boolean d. string 4. Which type of data type can have only one of two possible values? a. float b. numeric c. Boolean d. string 2014 Pearson Education 1

5. Which of the following is not an acceptable variable name? a. one_name b. name_one c. 1_Name d. thefirstname 6. Which of the following is not an acceptable variable name? a. my Friend b. your_friend c. We_re_ll_Friends d. all of the above are acceptable variable names 7. If the variable hours = 10, what is the value of the variable salary after the following instruction has been executed: salary = hours * 8 a. 10 b. 8 c. 80 d. cannot tell from the information given 8. Which tags are used to provide alternate content for users who have disabled scripts in their browsers? a. <noscript></noscript> b. <alt = "no script"> c. < /no script> d. there are no such tags 9. Which would be used to have a JavaScript function named hello() execute before the user views a web page? a. <script> JavaScript content </script> b. <body> <Javascript = hello()> c. <body onload = "hello()"> d. <hello()><body> 2014 Pearson Education 2

10. Which of the following describes a JavaScript object? 11. Which of the following describes a JavaScript method? 12. Which of the following describes a JavaScript property? B 13. Which method allows you to display text on an HTML page? a. onload b. show() c. display() d. write() 14. Which method will retrieve the contents of an HTML element? a. document.get() b. getelementbyid() c. innerhtml d. document.innerhtml B 15. Which would you use to replace the contents of an HTML page with the value stored in a variable named student? a. document.write(student); b. document.getelementbyid(student); 2014 Pearson Education 3

c. document.write(student.innerhtml); d. document.write(student.html); 16. Which of the following will open a new window named mywindow that is 500 pixels in height and 350 pixels wide? a. mywindow = new window(height = 600, width = 350); b. mywindow = window.open(height = 600, width = 350); c. mywindow = window.open(""; ""; height = "600"; width = "350"); d. mywindow = window.open("", "", "height = 600, width = 350"); 17. Which of the following will close a window named mywindow? a. close mywindow; b. mywindow = close(); c. mywindow.close(); d. mywindow.close; 18. Which of the following will prompt the user to enter his or her name? a. var name = window.open("what is your name?"); b. prompt("what is your name?", name); c. var name = document.write("what is your name?"); d. var name = prompt("what is your name?"); 19. Which is the correct way to define a function named getge()? a. function getge() b. getge = new function c. getge() d. new function getge() 2014 Pearson Education 4

20. Which of the following would retrieve the value displayed in a <div></div> element which has id = "football" and store that information in a variable named sport? a. sport = document.getelementbyid("football"); b. document.getelementbyid("football") = sport; c. sport = document.innerhtml(id = "football"); d. document.write("football"); TRUE/FLSE 1. True/False: The last step in the program development cycle is to code the program. F 2. True/False: prompt is used in a program to tell the user to enter some data. T 3. True/False: The onload event is used to have JavaScript execute before the user begins to view the page. T 4. True/False: The <script></script> tags are used only when you wish to include JavaScript within the body of a web page. F 5. True/False: The write() method can only be used to display text within <p></p> tags. F 6. True/False: In most cases the words function and method mean the same thing. T 7. True/False: To define a function, you must use the function keyword. T 8. True/False: The innerhtml property allows you to retrieve information from an element on a web page. F 9. True/False: Parameters are values that the user inputs to a program. F 10. True/False: The prompt() method allows you to prompt the user to input values. T 2014 Pearson Education 5