Page 1 Lecture Exercise ( Wk3) CS1301 Introduction To Computer Programming (11-12 Semester B) Question 1. Fill in the missing.

Slides:



Advertisements
Similar presentations
Lecture Exercise (9) CS1301 Introduction To Computer Programming (07-08 Semester B) Random Student Numbers 1: 2: 3: 4: 5:
Advertisements

1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
Page 1 Lecture Exercise (Wk4) CS1301 Introduction To Computer Programming (07-08 Semester B) Question 2 According to the following.
JavaScript- Introduction. What it is and what it does? What it is? It is NOT Java It is NOT Server-side programming Users can see code It is a client-side.
1 CS1301 Introduction To Computer Programming (07-08 Semester B) Lecture Exercise (Wk8) Q.1 [Use of while-loop] (a) Write.
Page 1 Lecture Exercise ( Wk2) CS1301 Introduction To Computer Programming (07-08 Semester B) Question 1. MATCHING: html comments.
(CS1301) Introduction to Computer Programming City Univ of HK / Dept of CS / Helena Wong 2. Program Structure I - 1
CS211 Data Structures Sami Rollins Fall 2004.
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
(CS1301) Introduction to Computer Programming City Univ of HK / Dept of CS / Helena Wong 1. Overview of Programming and JavaScript - 1
Event Handlers CS101 Introduction to Computing. Learning Goals Learn about event handlers Determine how events are useful in JavaScript Discover where.
Activating Clarity  Activating Clarity  Activation  Online Activation  Fax Activation  Review and Verify Activation and License Terms  Updating.
Made by Reference Services Section, NCCU update Database for Beginners.
Page 1 Lecture Exercise ( Wk3) CS1301 Introduction To Computer Programming (07-08 Semester B) Question 1. There are 3 errors.
1 A Balanced Introduction to Computer Science David Reed, Creighton University ©2005 Pearson Prentice Hall ISBN X Chapter 4 JavaScript and.
Introduction to Programming and JavaScript. Programming.
2c – Textboxes and Buttons Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Step 1of 11 Admin Demonstrations Click Here to Start.
Introduction to Computer Programming 2. Program Structure I - 1http:// Program Structure I (Overview) Handling of Values – The.
Lecture Exercise (Wk4) CS1301 Introduction To Computer Programming (11-12 Semester B) Page 1 Question 2 (a)Complete the code.
CS1301 Introduction To Computer Programming (11-12 Semester B) Lecture Exercise (Wk8) Q.1 Write the code that asks the user.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
Random Student Numbers 1: 2: 3: 4: 5: Generate random student numbers: Random Student Numbers 1: : : :
 Resources on Moodle by Christina Efthymiou. My Resources on Moodle.
English for Engineering Management ( 1 ) Detail 1-1 Fill out the missing words on the drawing (5 are missing) Where is the detail located on the building?
Journal of Mountain Science (JMS)
Development Environment
User-Written Functions
Problem Identification
Chapter 2 Client/Server Applications
Principles of Software Development
3.01 Apply Controls Associated With Visual Studio Form
Shared Space Admin Demo
USAJOBS – Application Manager
Algorithms Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
For Using of TAF Test Manager (TTM)
Intelligent Weather Station
Introduction to Study information system
UK
REPETITION STATEMENTS
3.01 Apply Controls Associated With Visual Studio Form
Fix Microsoft Office error code (3) Call
BY: SITI NURBAYA ISMAIL FACULTY of COMPUTER and MATHEMATICAL SCIENCES
Moving Students Between Sessions
Welcome to Bug Club!.
Computer Science and an introduction to Pascal
How to complete a Referral Form via “Student” tab
Data Representation Revision
Quick Accounts Walkthrough.
Introduction to JavaScript for Python Programmers
Partner User Functions TI-pass Texas Instruments, Inc.
Operations with Radical Expressions
New Client Guide.
Online Training Course
CS 206D Computer Organization
PIE Planning & Resources
REGISTRATION & SETUP GUIDE
Note1 Click on the Need Help link on the right side of the page to begin the Add Alternate Name process.
Your Guide to:.
Introduction to Programming and JavaScript
Moving Students Between Sessions
CS150 Introduction to Computer Science 1
Complete this task BEFORE beginning a Form 471.
Lecture 7: JavaScript/DOM Lab Wednesday February 7, 2018.
One of these things is not like the other
One of these things is not like the other
One of these things is not like the other
CMPT 120 Lecture 15 – Unit 3 – Graphics and Animation
Process in CVRS to correct and/or change Voter party.
Submitting and Accessing 5-year Post-Tenure Review Materials in Vibe
Presentation transcript:

Page 1 Lecture Exercise ( Wk3) CS1301 Introduction To Computer Programming (11-12 Semester B) Question 1. Fill in the missing code: -- In the application, the user can type a name and then click "Invitation", then the corresponding message is updated, with "Dear …" displayed in the span: " Demo <input type="button" value="Invitation" /> Please come to my birthday party on May 18, See you! Yours, Helena LectEx03Q1.html (i)var x, a, b; a = 4; b = 4*8; x = a+b; a = b; b = a; (ii)var a,b,x; a=1; b=2; x=3; 4=a; a+b=x; Question 2 Explain what are done (or error) by the code:

Page 2 Question 4 According to the following code, what will be shown in the page? Try calling functions function x1() {return 100; } function x2(value) {return value+5; } document.write(x1()); document.write(' '); document.write(x2(9)); document.write(' '); document.write(x2('9')); Question 3 There are 3 errors in the given code (one is not visible). Can you find some of them? Demo <body onload="alert('CS1301 Introduction to Computer Programming');"> CS1301 <a href="javascript: document.getElementById('info') = 'CS1301 ' + 'Introduction to Computer Programming ' … + ' - Computer programming is the craft of ' + 'writing useful, maintainable, and extensible instructions ' + 'which can be interpreted by a computing system ' + 'to perform a meaningful task. ' ; void(0);"> Display the details LectEx03Q3.html LectEx03Q4.html