WEB MANAGEMENT CT211. Fall 2012 PACKET II

Save this PDF as:
 WORD  PNG  TXT  JPG

Size: px
Start display at page:

Download "WEB MANAGEMENT CT211. Fall 2012 PACKET II"

Transcription

1 Fall 2012 CT211 WEB MANAGEMENT PACKET II This packet includes the mandatory assignments for each Chapter that is covered in the required course textbooks. All assignments must be completed on the date indicated on the syllabus and must be passed in at the beginning of class. NO LATE ASSIGNMENTS WILL BE ACCEPTED. Students must include their full name in legible writing on the first page of each Unit s assignment and must be stapled. Professor Passanisi Benjamin Franklin Institute of Technology 41 Berkeley Street Boston MA 02116

2

3 CT211 Chapter 1: Name: _ Chapter 1: Getting Started with PHP: 1. Define the term embedded language as it applies to PHP. 2. Why should you avoid using the.php extension if the document contains only XHTML code? 3. Explain why you do not see any PHP code when you view the source code of a PHP page in the browser? 4. How many code declarations blocks can be inserted in a PHP document? 5. Why does the PHP Group recommend that you use standard PHP script delimiters to write PHP code declaration blocks? 6. What character or characters are used as delimiters to separate multiple arguments (parameters) in a function declaration or function call? 7. Describe the type of information that the phpinfo() function generates. 8. Identify the two types of comments available in PHP and indicate when each would be used. 9. Describe the two-step process of making a variable available for use in the PHP script.

4 10. Explain the syntax for displaying a variable or variables in the PHP script using echo or print statements. 11. How do you make a constant name case insensitive? 12. Explain why you do not need to assign a specific data type to a variable when it is declared? 13. Positive and negative numbers and 0 with no decimal places belong to which data type? 14. Explain how you access the value of the second element in an array named $sign. 15. What function can be used to determine the total number of elements in an array? 16. Illustrate the value of using the print_r() function to return information about an array variable. 17. What symbol is used to divide the left operand by the right operand and return a remainder? 18. Explain the difference between an assignment operator and a compound assignment operator. 19. Explain the difference between a prefix operator and a postfix operator. Chapter 1 3 Passanisi 2011 Getting Started with PHP

5 20. Define the term associability as it applies to the order of precedence. Key Terms Embedded language Delimiter Statements <script> element Function Call Function call Chapter 1 4 Passanisi 2011 Getting Started with PHP

6 Arguments/Actual parameters Passing arguments Echo/Print statements Programming Language construct Literal String Phpversion() Zend_version() Ini_get() Chapter 1 5 Passanisi 2011 Getting Started with PHP

7 Comments Line comment Block comments Variables Identifier Declaring Initializing Constant Chapter 1 6 Passanisi 2011 Getting Started with PHP

8 Define () function Data type Primitive type Reference /Composite Strongly typed programming language Static typing Loosely typed programming language Dynamic typing Chapter 1 7 Passanisi 2011 Getting Started with PHP

9 Integers Floating point numbers Exponential notion/scientific notion Boolean value Array Element Index Expression Chapter 1 8 Passanisi 2011 Getting Started with PHP

10 Operands Literal Operators Binary Operator Unary Operator Arithmectic Operator Prefix Operator Postfix Operator Chapter 1 9 Passanisi 2011 Getting Started with PHP

11 Assignment Operators Compound Assignment Operators Comparison Operator Conditional Operator Logical Operators Boolean Operands Casting/Type Casting Double Chapter 1 10 Passanisi 2011 Getting Started with PHP

12 Operator Precedence Associativity Chapter 1 11 Passanisi 2011 Getting Started with PHP

13 CT211 Chapter 2: Name: _ Chapter 2: Functions and Control Structures 1. Explain the two-step process of creating user-defined functions in a PHP script. 2. Describe the purpose of the return statement in a function. 3. Explain why some functions do not need parameters. 4. Explain why some functions do not have a return statement. 5. Explain the difference between passing a parameter to a function by values versus by reference. 6. Define the term variable scope. 7. Explain the difference between a local variable and a global variable. 8. A variable declared outside of a unction must be declared to be available within the function by using which keyword? 9. What are the three required components of an if statement? 10. Describe how the use of command blocks make an if else control structure more efficient.

14 11. Explain the purpose of the default label in a switch statement? 12. All loops require what feature to ensure that the looping will eventually end and not result in an infinite loop? 13. What four looping structures are used in PHP? 14. Explain the purpose of a counter variable when executing a loop. 15. Which type of looping structure is used to iterate through elements of an array? 16. Describe the purpose of the group of include, require, include_once, and require_once statement. 17. When might you want to use the require statement instead of the include statement. 18. Why is it important that you add PHP script delimiters to each PHP block in the include file? 19. Explain why one might want to save all include files in a separate folder and how this folder can be accessed. Chapter 2 13 Passanisi 2011 Functions and Control Structures

15 Functions Function definition Formal Parameter Parameter Return Statement By Value By Reference Variable s Scope Chapter 2 14 Passanisi 2011 Functions and Control Structures

16 Global Variable Local Variable Decision Making Flow Control F Statement Command block Nested Decision-Making Structures Switch Statement Chapter 2 15 Passanisi 2011 Functions and Control Structures

17 Case Label Default Label Break Statement Loop Statement While Statement Iteration Counter Infinite Loop Chapter 2 16 Passanisi 2011 Functions and Control Structures

18 Do while statement For Statement For each statement Chapter 2 17 Passanisi 2011 Functions and Control Structures

19 CT211 Chapter 3: Name: _ Chapter 3: Manipulating Strings 1. Explain the difference between a concatenation operator and a concatenation assignment operator. 2. Describe two ways to display double quotation marks with a literal string.. 3. Describe the use of curly braces in complex string syntax. 4. What string function would you use to determine the number of characters in a password that a user has entered? 5. What string function would you use to determine if an essay keyed in a <textarea> form input field exceeds the maximum number of words allow. 6. What two string functions could be used to convert the case of text string to all uppercase or all lowercase letters? 7. What function can be used to determine if a specific character exists in a string? 8. What is the difference between the str_replace() function and the str_ireplace() function? 9. What functions are used to splite a string into an indexed array?

20 10. What s the difference between the strcasecmp() function and the strcmp() function? 11. Why is the lowercase a considered to occur later in the alphabet than the uppercase A? 12. Explain the difference between the similar_text() function and the evenshtein() function. 13. What is the difference between an opening delimiter and a closing delimiter? 14. What character is used to match any single character in a pattern? 15. How do you specify that you want to ensure that a string contains an actual period and not just any character? 16. Describe the purpose of quantifiers in determining if a string matches a patter. 17. How are subexpressions or subpatterns used in a regular express? 18. Describe the purpose of the metacharacter. Chapter 3 19 Passanisi 2011 Manipulating Strings

21 Key Terms: Concatenation Operator Concatenation Assignment Operator Escape Character Escape sequence Simple String Syntax Complex String Syntax One-way hash Chapter 3 20 Passanisi 2011 Manipulating Strings

22 Parsing Delimiter Tokens ASCII (American Standard Code for Information Interchange) Levenshtein distance Regular Expressions Delimiters Opening delimiter Chapter 3 21 Passanisi 2011 Manipulating Strings

23 Closing delimiter Metacharacters Anchor Subexpression/subpattern Character Classes Pattern Modifiers Chapter 3 22 Passanisi 2011 Manipulating Strings

24 CT211 Chapter 4: Name: _ Chapter 4: Handling User Input 1. Which element of the $_SERVER autoglobal is used to refer to the current script? 2. What keyword is used to reference a global variable within the scope of a function? 3. Autoglobals are considered associative arrays? True or False 4. Explain the function of the action and method attributes in the opening <form> tag. 5. Explain the difference(s) in how form data is submitted using the post and get methods. 6. Describe the limitations of using the get method to submit form data. 7. Describe how an autoglobal $_Post array is populated when the post method is used to submit form data. 8. Describe the role of Magic Quotes in working with string data. 9. What function is used to remove the backslashes added by magic quotes or the addslashes()function? 10. Under which condition does the empty() function return true? 11. Explain the process of efficiently handling multiple errors. 12. Define the term advanced escaping from XHTML. 13. What are the three required arguments of the mail() function? 14. Describe the structure of an All-in-One form. 15. How would the form handler determine if the Submit button has been pressed? 16. What family of functions can check whether a user entered a number in a field on a Web form? 17. Explain the purpose of using a Web page template for web site development. 18. Describe the notion for the get method used with a text hyperlink to target dynamic content to a section of a Web page template

25 19. What autoglobal can be used to access the values of both the get and the post methods? Key Terms Autoglobals Associative Arrays Environmental Variables Action Attribute $_POST $_GET URL Tokens Form handler Chapter 4 24 Passanisi 2011 Manipulating Strings

26 Magic Quotes Addslashes() Stripslashes() Empty() Is_*() Regular Expressions Sticky form Advanced Escaping from XHTML Chapter 4 25 Passanisi 2011 Manipulating Strings

27 Address Specifier Two-part Form All-in-One form Insert() Function Web Template Chapter 4 26 Passanisi 2011 Manipulating Strings

28 CT211 Chapter 6: Name: _ Chapter 5: Working with Files and Directories 1. Explain the difference between a binary file and a text file? 2. What are the different end-of-line markers for Windows, Macintosh and Unix/Linux? 3. What functions are used to change and retrieve the permissions of a file? 4. What are the three typical permissions for files and directories? 5. What are the three levels of access for files and directories? 6. What three functions are used to iterate through files and directories in a specific directory? 7. What function returns an indexed array containing the names of files and directories in the specified directory? 8. What is one benefit of using the scandir() function versus the readdir() function? 9. What function is used to create a directory? 10. What two functions are used to determine if a directory entry is a file or directory?

29 11. What type of form input element is used to chase the file to upload? 12. What hidden form input element restricts the size of the upload file? 13. What is the name of the auto global array that contains the upload file information? 14. What function is used to pass headers to the client Web browser? 15. What function is used to send the content of a file to the client Web browser? 16. Explain how to determine if the file_put_contents() function successfully wrote data to a file? 17. Explain why one should use the is_dir() function before using the file_put_contents() function to write data. 18. What function is useful for reading an entire file into a variable as a single block of text? 19. What is the difference between the file() and file_get_contents() functions? 20. What is a file stream? Chapter 5 28 Passanisi 2011 Working with Files and Directories

30 21. Explain the function of the file pointer as it relates to writing data to files. 22. Explain the term ready data incrementally. 23. What function is used to prevent multiple user from modifying a file simultaneously? 24. What function must be called if the form() function successfully opened a file? 25. During the file copy process, what function is used to delete the original file? 26. Why is it important to use the scandir() function before using the rmdir() function? 27. What two entries will exist in a directory in most operating systems, even if the directory is empty? 28. How do you move a file in PHP? 29. What is the difference between the unlink() and rmdir() functions? Key Words Binary File Chapter 5 29 Passanisi 2011 Working with Files and Directories

31 Text File Handle Directory Pointer Symbolic Link Client Headers Stream Input Stream Chapter 5 30 Passanisi 2011 Working with Files and Directories

32 Output stream File Pointer Chapter 5 31 Passanisi 2011 Working with Files and Directories

33 CT211 Chapter 6: Name: _ Manipulating Arrays

Chapter 2: Problem Solving Using C++

Chapter 2: Problem Solving Using C++ Chapter 2: Problem Solving Using C++ 1 Objectives In this chapter, you will learn about: Modular programs Programming style Data types Arithmetic operations Variables and declaration statements Common

More information

Perl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl

Perl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl First CGI Script and Perl Perl in a nutshell Prof. Rasley shebang line tells the operating system where the Perl interpreter is located necessary on UNIX comment line ignored by the Perl interpreter End

More information

A First Book of C++ Chapter 2 Data Types, Declarations, and Displays

A First Book of C++ Chapter 2 Data Types, Declarations, and Displays A First Book of C++ Chapter 2 Data Types, Declarations, and Displays Objectives In this chapter, you will learn about: Data Types Arithmetic Operators Variables and Declarations Common Programming Errors

More information

7 Introduction to C++

7 Introduction to C++ 7 Introduction to C++ 7.1 Introduction C++ is an extension to C Programming language. It was developed at AT&T Bell Laboratories in the early 1980s by Bjarne Stroustrup. It is a deviation from traditional

More information

OUTCOMES BASED LEARNING MATRIX

OUTCOMES BASED LEARNING MATRIX Course: CTIM371 Programming in C++ OUTCOMES BASED LEARNING MATRIX Department: Computer Technology and Information Management Course Description: This is the first course in the C++ programming language.

More information

Software Programming. Getting Started with PHP. Part I: Introduction to PHP. Designing your Application in HTML

Software Programming. Getting Started with PHP. Part I: Introduction to PHP. Designing your Application in HTML Software Programming Duration Lecture: Specialization PHP Detailed Module 8 Weeks Part I: Introduction to PHP Designing your Application in HTML Introduction to HTML o Getting Started o Building Links

More information

Introduction to Server- Development

Introduction to Server- Development Introduction to Server- Side Development with PHP Chapter 8 Textbook to be published by Pearson Ed 2015 in early Pearson 2014 Fundamentals of Web http://www.funwebdev.com Development What is Server-Side

More information

PHP. Intro, Syntax, Variables, Echo, Data Types

PHP. Intro, Syntax, Variables, Echo, Data Types PHP Intro, Syntax, Variables, Echo, Data Types Introduction PHP scripts are executed on the server. What You Should Already Know Before you continue you should have a basic understanding of the following:

More information

Adjusted/Modified by Nicole Tobias. Chapter 2: Basic Elements of C++

Adjusted/Modified by Nicole Tobias. Chapter 2: Basic Elements of C++ Adjusted/Modified by Nicole Tobias Chapter 2: Basic Elements of C++ Objectives In this chapter, you will: Become familiar with functions, special symbols, and identifiers in C++ Explore simple data types

More information

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C Embedded Systems A Review of ANSI C and Considerations for Embedded C Programming Dr. Jeff Jackson Lecture 2-1 Review of ANSI C Topics Basic features of C C fundamentals Basic data types Expressions Selection

More information

PHP MySQL Course Details

PHP MySQL Course Details PHP MySQL Course Details By Besant Technologies Course Name Category Venue PHP MySQL Scripting Language & Web Development Besant Technologies No.24, Nagendra Nagar, Velachery Main Road, Address Velachery,

More information

JavaScript: Introduction to Scripting. 2008 Pearson Education, Inc. All rights reserved.

JavaScript: Introduction to Scripting. 2008 Pearson Education, Inc. All rights reserved. 1 6 JavaScript: Introduction to Scripting 2 Comment is free, but facts are sacred. C. P. Scott The creditor hath a better memory than the debtor. James Howell When faced with a decision, I always ask,

More information

Which of the following is the correct operator to compare two variables? A. := B. = C. equal D. ==

Which of the following is the correct operator to compare two variables? A. := B. = C. equal D. == Group 1 Question 1. What is the correct value to return to the operating system upon the successful completion of a program? A. -1 B. 1 C. 0 D. Programs do not return a value. Question 2. What is the only

More information

Outline TOPIC 2 INTRODUCTION TO JAVA AND DR JAVA. What is DrJava? Dr Java

Outline TOPIC 2 INTRODUCTION TO JAVA AND DR JAVA. What is DrJava? Dr Java 1 Outline TOPIC 2 INTRODUCTION TO JAVA AND DR JAVA Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson, and instructor materials prepared

More information

Facebook Twitter YouTube Google Plus Website Email

Facebook Twitter YouTube Google Plus Website Email PHP MySQL COURSE WITH OOP COURSE COVERS: PHP MySQL OBJECT ORIENTED PROGRAMMING WITH PHP SYLLABUS PHP 1. Writing PHP scripts- Writing PHP scripts, learn about PHP code structure, how to write and execute

More information

Chapter 2: Elements of Java

Chapter 2: Elements of Java Chapter 2: Elements of Java Basic components of a Java program Primitive data types Arithmetic expressions Type casting. The String type (introduction) Basic I/O statements Importing packages. 1 Introduction

More information

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program. Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to

More information

PART-A Questions. 2. How does an enumerated statement differ from a typedef statement?

PART-A Questions. 2. How does an enumerated statement differ from a typedef statement? 1. Distinguish & and && operators. PART-A Questions 2. How does an enumerated statement differ from a typedef statement? 3. What are the various members of a class? 4. Who can access the protected members

More information

Secondary two. Put ( )or (x):

Secondary two. Put ( )or (x): Put ( )or (x): 1. We should take a permission before using freeware programs. ( ) 2. We can t see the code of open source program. ( ) 3. The extension of static web page is php. ( ) 4. static web page

More information

,!7IA3C1-dcahfj!:t;K;k;K;k. Addison-Wesley s JavaScript Reference Card. Kathleen M. Goelz and Carol J. Schwartz, Rutgers University VARIABLES

,!7IA3C1-dcahfj!:t;K;k;K;k. Addison-Wesley s JavaScript Reference Card. Kathleen M. Goelz and Carol J. Schwartz, Rutgers University VARIABLES Addison-Wesley s JavaScript Reference Card Kathleen M. Goelz and Carol J. Schwartz, Rutgers University Javascript: A scripting language designed to be integrated into HTML code to produce enhanced, dynamic,

More information

C++ Programming: From Problem Analysis to Program Design, Fifth Edition. Chapter 2: Basic Elements of C++

C++ Programming: From Problem Analysis to Program Design, Fifth Edition. Chapter 2: Basic Elements of C++ C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 2: Basic Elements of C++ Objectives In this chapter, you will: Become familiar with the basic components of a C++ program,

More information

PHP Essentials. PHP Essentials Edition 1.0

PHP Essentials. PHP Essentials Edition 1.0 PHP Essentials Edition 1.0. This ebook is provided for personal use only. Unauthorized use, reproduction and/or distribution strictly prohibited. All rights reserved. The content of this book is provided

More information

Introduction to C Programming

Introduction to C Programming Introduction to C Programming C HOW TO PROGRAM, 6/E 1992-2010 by Pearson Education, Inc. All Rights Reserved. 2.1 Introduction The C language facilitates a structured and disciplined approach to computer

More information

PHP Tutorial From beginner to master

PHP Tutorial From beginner to master PHP Tutorial From beginner to master PHP is a powerful tool for making dynamic and interactive Web pages. PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.

More information

Chapter 8. Arithmetic in C++

Chapter 8. Arithmetic in C++ Christian Jacob Chapter 8 Arithmetic in C++ 8.1 The C++ Vocabulary 8.2 Variables and Types 8.2.1 Data Objects 8.2.2 Variables 8.2.3 Declaration of Variables 8.3 Elementary C++ Data Types 8.3.1 Integers

More information

Introduction to C++ Programming

Introduction to C++ Programming Introduction to C++ Programming 1 Outline Introduction to C++ Programming A Simple Program: Printing a Line of Text Another Simple Program: Adding Two Integers Memory Concepts Arithmetic Decision Making:

More information

ABOUT PHP COURSE SCOPE:

ABOUT PHP COURSE SCOPE: ABOUT PHP COURSE SCOPE: The booming IT business across the globe, the web has become one in every of the foremost necessary suggests that of communication nowadays and websites are the lifelines of the

More information

3) Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

3) Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging? Freshers Club Important 100 C Interview Questions & Answers 1) How do you construct an increment statement or decrement statement in C? There are actually two ways you can do this. One is to use the increment

More information

Programming Fundamental. Instructor Name: Lecture-2

Programming Fundamental. Instructor Name: Lecture-2 Programming Fundamental Instructor Name: Lecture-2 Today s Lecture What is Programming? First C++ Program Programming Errors Variables in C++ Primitive Data Types in C++ Operators in C++ Operators Precedence

More information

Chapter 2: Basic Elements of C++

Chapter 2: Basic Elements of C++ Chapter 2: Basic Elements of C++ Objectives In this chapter, you will: Become familiar with functions, special symbols, and identifiers in C++ Explore simple data types Discover how a program evaluates

More information

PHP Course Details. Introduction. The Origin of PHP. PHP is better than Its alternatives. Interfaces to External systems

PHP Course Details. Introduction. The Origin of PHP. PHP is better than Its alternatives. Interfaces to External systems PHP Course Details Introduction The Origin of PHP PHP is better than Its alternatives Interfaces to External systems Hardware and Software requirements What a PHP Script Looks Likec Web Designing Basics

More information

BHARATHIAR UNIVERSITY: COIMBATORE CENTRE FOR COLLABORATION OF INDUSTRY AND INSTITUTIONS(CCII) CERTIFICATE IN ADVANCED PROGRAMMING C++ LANGUAGE

BHARATHIAR UNIVERSITY: COIMBATORE CENTRE FOR COLLABORATION OF INDUSTRY AND INSTITUTIONS(CCII) CERTIFICATE IN ADVANCED PROGRAMMING C++ LANGUAGE Certificate in Advanced Programming - C++ Language Page 1 of 7 BHARATHIAR UNIVERSITY: COIMBATORE 641046 CENTRE FOR COLLABORATION OF INDUSTRY AND INSTITUTIONS(CCII) CERTIFICATE IN ADVANCED PROGRAMMING C++

More information

The IC Language Specification. Spring 2006 Cornell University

The IC Language Specification. Spring 2006 Cornell University The IC Language Specification Spring 2006 Cornell University The IC language is a simple object-oriented language that we will use in the CS413 project. The goal is to build a complete optimizing compiler

More information

The PCAT Programming Language Reference Manual

The PCAT Programming Language Reference Manual The PCAT Programming Language Reference Manual Andrew Tolmach and Jingke Li Dept. of Computer Science Portland State University (revised October 8, 2004) 1 Introduction The PCAT language (Pascal Clone

More information

C++ Language Tutorial

C++ Language Tutorial cplusplus.com C++ Language Tutorial Written by: Juan Soulié Last revision: June, 2007 Available online at: http://www.cplusplus.com/doc/tutorial/ The online version is constantly revised and may contain

More information

Lecture Set 2: Starting Java

Lecture Set 2: Starting Java Lecture Set 2: Starting Java 1. Java Concepts 2. Java Programming Basics 3. User output 4. Variables and types 5. Expressions 6. User input 7. Uninitialized Variables CMSC 131 - Lecture Outlines - set

More information

Windows PowerShell Essentials

Windows PowerShell Essentials Windows PowerShell Essentials Windows PowerShell Essentials Edition 1.0. This ebook is provided for personal use only. Unauthorized use, reproduction and/or distribution strictly prohibited. All rights

More information

HTML5/CSS3/JavaScript Programming

HTML5/CSS3/JavaScript Programming HTML5/CSS3/JavaScript Programming Description: Prerequisites: Audience: Length: This class is designed for students that have experience with basic HTML concepts that wish to learn about HTML Version 5,

More information

INDEX. C programming Page 1 of 10. 5) Function. 1) Introduction to C Programming

INDEX. C programming Page 1 of 10. 5) Function. 1) Introduction to C Programming INDEX 1) Introduction to C Programming a. What is C? b. Getting started with C 2) Data Types, Variables, Constants a. Constants, Variables and Keywords b. Types of Variables c. C Keyword d. Types of C

More information

PHP ARRAYS, SUPERGLOBALS, AND WORKING WITH FILES. Prof. Assoc. Lule Ahmedi Course: Internet Programming

PHP ARRAYS, SUPERGLOBALS, AND WORKING WITH FILES. Prof. Assoc. Lule Ahmedi Course: Internet Programming PHP ARRAYS, SUPERGLOBALS, AND WORKING WITH FILES Prof. Assoc. Lule Ahmedi Course: Internet Programming Arrays in PHP An data structure to express a collection of related values Associates each value in

More information

PROGRAMMING REFRESHER MODULE. Delivered by Ana Cavalcanti and Alvaro Miyazawa Prepared by Dr Lilian Blot

PROGRAMMING REFRESHER MODULE. Delivered by Ana Cavalcanti and Alvaro Miyazawa Prepared by Dr Lilian Blot PROGRAMMING REFRESHER MODULE Delivered by Ana Cavalcanti and Alvaro Miyazawa Prepared by Dr Lilian Blot The Rules Everything in PREF (Week 1) is optional. From week 2 of APRC and JAPC, we assume that all

More information

Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2

Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2 Unix Shell Scripts Norman Matloff July 30, 2008 Contents 1 Introduction 1 2 Invoking Shell Scripts 2 2.1 Direct Interpretation....................................... 2 2.2 Indirect Interpretation......................................

More information

Create a Report Definition of Type Database Query. To create a report definition using a database query, follow the steps below.

Create a Report Definition of Type Database Query. To create a report definition using a database query, follow the steps below. Create a Report Definition of Type Database Query, page 1 Create a Report Definition of Type Stored, page 2 Create a Report Definition of Type Anonymous Block, page 3 Create a Report Definition of Type

More information

Huazhong University of Science and Technology JAVA Programming Language Lecture 2:Variables and Data Types

Huazhong University of Science and Technology JAVA Programming Language Lecture 2:Variables and Data Types JAVA Programming Language Lecture 2:Variables and Data Types Chengwei Zhang ( 张成伟 ) School of Electronic Information and Communications Huazhong University of Science and Technology Mar. 2015 Outline Quick

More information

VB.NET Programming Fundamentals

VB.NET Programming Fundamentals Chapter 3 Objectives Programming Fundamentals In this chapter, you will: Learn about the programming language Write a module definition Use variables and data types Compute with Write decision-making statements

More information

Qlik REST Connector Installation and User Guide

Qlik REST Connector Installation and User Guide Qlik REST Connector Installation and User Guide Qlik REST Connector Version 1.0 Newton, Massachusetts, November 2015 Authored by QlikTech International AB Copyright QlikTech International AB 2015, All

More information

PHP 5.5 (FRAMEWORKS & CMS) WITH WEB APPLICATION & MOBILE APPLICATION DEVELOPMETN

PHP 5.5 (FRAMEWORKS & CMS) WITH WEB APPLICATION & MOBILE APPLICATION DEVELOPMETN Who we are ApexTG India Pvt. Ltd. focuses on delivering sophisticated technology-enabled solutions to maximize complex business needs. Founded in 2007 and based in New Delhi NCR Noida, the company has

More information

Summary. Pre requisition. Content Details: 1. Basics in C++

Summary. Pre requisition. Content Details: 1. Basics in C++ Summary C++ Language is one of the approaches to provide object-oriented functionality with C like syntax. C++ adds greater typing strength, scoping and other tools useful in object-oriented programming

More information

Object Oriented Software Design

Object Oriented Software Design Object Oriented Software Design Introduction to Java - II Giuseppe Lipari http://retis.sssup.it/~lipari Scuola Superiore Sant Anna Pisa September 14, 2011 G. Lipari (Scuola Superiore Sant Anna) Introduction

More information

PHP: Introduction. CS7025: Network Technologies and Server Side Programming Lecturer: Saturnino Luz

PHP: Introduction. CS7025: Network Technologies and Server Side Programming  Lecturer: Saturnino Luz PHP: Introduction CS7025: Network Technologies and Server Side Programming http://www.scss.tcd.ie/~luzs/t/cs7025/ Lecturer: Saturnino Luz January 24, 2011 1 PHP: Introduction How does a browser request

More information

1 ο ΣΧΟΛΕΙΟ ΚΩΔΙΚΑ «Βασικά Θέματα Προγραμματισμού στην Ανάπτυξη Δυναμικών Διαδικτυακών Εφαρμογών»

1 ο ΣΧΟΛΕΙΟ ΚΩΔΙΚΑ «Βασικά Θέματα Προγραμματισμού στην Ανάπτυξη Δυναμικών Διαδικτυακών Εφαρμογών» 1 ο ΣΧΟΛΕΙΟ ΚΩΔΙΚΑ «Βασικά Θέματα Προγραμματισμού στην Ανάπτυξη Δυναμικών Διαδικτυακών Εφαρμογών» (PHP Variables-Operators- Functions-Conditional-Loops- Objects) Γιάννης Σαμωνάκης Table of Contents What

More information

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation Credit-By-Assessment (CBA) Competency List Written Assessment Competency List Introduction to the Internet

More information

Chapter 2. Values, Variables, and Types. 2.1 Java Values in DrJava s Interaction Pane

Chapter 2. Values, Variables, and Types. 2.1 Java Values in DrJava s Interaction Pane 14 Chapter 2 Values, Variables, and Types In this chapter we explore the primitive building blocks that are used to develop Java programs. We experiment with the following concepts within DrJava s interactive

More information

Learn the Java Programming Language

Learn the Java Programming Language Learn the Java Programming Language This portion of my site is dedicated to teach the basics of the Java programming language. It is geared towards non-programmers so if you already have some programming

More information

GETTING STARTED WITH C++ C++ BASICS - 1 -

GETTING STARTED WITH C++ C++ BASICS - 1 - - 1 - GETTING STARTED WITH C++ Programming is a core activity in the process of performing tasks or solving problems with the aid of a computer. An idealised picture is: PROBLEM COMPUTER SOLUTION Unfortunately

More information

Object Oriented Software Design

Object Oriented Software Design Object Oriented Software Design Introduction to Java - II Giuseppe Lipari http://retis.sssup.it/~lipari Scuola Superiore Sant Anna Pisa October 28, 2010 G. Lipari (Scuola Superiore Sant Anna) Introduction

More information

Variables and Constants. Variable A location in computer's memory in which a value may be stored from which that value may be retrieved

Variables and Constants. Variable A location in computer's memory in which a value may be stored from which that value may be retrieved Variables and Constants Variable A location in computer's memory in which a value may be stored from which that value may be retrieved Storage of Variables Setting Aside Memory Defining a variable in C++

More information

A Comparison of the Basic Syntax of Python and Java

A Comparison of the Basic Syntax of Python and Java Python Python supports many (but not all) aspects of object-oriented programming; but it is possible to write a Python program without making any use of OO concepts. Python is designed to be used interpretively.

More information

Java: Primitive Data Types, Variables and Constants

Java: Primitive Data Types, Variables and Constants Java: Primitive Data Types, Variables and Constants Introduction A primitive data type is a data type provided as a basic building block by a programming language. It is predefined by the programming language

More information

Introduction to Java Applications. 2005 Pearson Education, Inc. All rights reserved.

Introduction to Java Applications. 2005 Pearson Education, Inc. All rights reserved. 1 2 Introduction to Java Applications 2.2 First Program in Java: Printing a Line of Text 2 Application Executes when you use the java command to launch the Java Virtual Machine (JVM) Sample program Displays

More information

PIC 40A. Lecture 16: Introduction to PHP. Copyright 2011 Jukka Virtanen UCLA 1 11/12/14

PIC 40A. Lecture 16: Introduction to PHP. Copyright 2011 Jukka Virtanen UCLA 1 11/12/14 PIC 40A Lecture 16: Introduction to PHP 11/12/14 Copyright 2011 Jukka Virtanen UCLA 1 What is PHP? Server-side scripting language An interpreted language like JavaScript Developed by Rasmus Lerdorfin 1994

More information

Advance Bash Shell Scripting

Advance Bash Shell Scripting Advance Bash Shell Scripting 1- Introduction to Shell What is shell Installation of shell Shell features Bash Keywords Built-in Commands Linux Commands Specialized Navigation and History Commands Shell

More information

Dept. of CSE, IIT KGP

Dept. of CSE, IIT KGP Programming in C: Basics CS10001: Programming & Data Structures Pallab Dasgupta Professor, Dept. of Computer Sc. & Engg., Indian Institute of Technology Kharagpur Types of variable We must declare the

More information

Database Programming with PL/SQL: Learning Objectives

Database Programming with PL/SQL: Learning Objectives Database Programming with PL/SQL: Learning Objectives This course covers PL/SQL, a procedural language extension to SQL. Through an innovative project-based approach, students learn procedural logic constructs

More information

PL / SQL Basics. Chapter 3

PL / SQL Basics. Chapter 3 PL / SQL Basics Chapter 3 PL / SQL Basics PL / SQL block Lexical units Variable declarations PL / SQL types Expressions and operators PL / SQL control structures PL / SQL style guide 2 PL / SQL Block Basic

More information

Going from Python to C

Going from Python to C Going from Python to C Darin Brezeale December 8, 2011 Python is a high-level, interpreted language. C has many of the same types of programming constructs as in Python: arrays, loops, conditionals, functions,

More information

JavaScript: Control Statements I

JavaScript: Control Statements I 1 7 JavaScript: Control Statements I 7.1 Introduction 2 The techniques you will learn here are applicable to most high-level languages, including JavaScript 1 7.2 Algorithms 3 Any computable problem can

More information

()A Crash Course in Programming with C++ and the Ubuntu O.S. June 8, / 47

()A Crash Course in Programming with C++ and the Ubuntu O.S. June 8, / 47 A Crash Course in Programming with C++ and the Ubuntu O.S. Dr. Daniel A. Ray MCS Dept UVa-Wise June 8, 2010 ()A Crash Course in Programming with C++ and the Ubuntu O.S. June 8, 2010 1 / 47 Outline What

More information

Exercise 1: Python Language Basics

Exercise 1: Python Language Basics Exercise 1: Python Language Basics In this exercise we will cover the basic principles of the Python language. All languages have a standard set of functionality including the ability to comment code,

More information

Basic C Syntax. Comp-206 : Introduction to Software Systems Lecture 10. Alexandre Denault Computer Science McGill University Fall 2006

Basic C Syntax. Comp-206 : Introduction to Software Systems Lecture 10. Alexandre Denault Computer Science McGill University Fall 2006 Basic C Syntax Comp-206 : Introduction to Software Systems Lecture 10 Alexandre Denault Computer Science McGill University Fall 2006 Next Week I'm away for the week. I'll still check my mails though. No

More information

C programming. Intro to syntax & basic operations

C programming. Intro to syntax & basic operations C programming Intro to syntax & basic operations Example 1: simple calculation with I/O Program, line by line Line 1: preprocessor directive; used to incorporate code from existing library not actually

More information

Punctuation in C. Identifiers and Expressions. Identifiers. Variables. Keywords. Identifier Examples

Punctuation in C. Identifiers and Expressions. Identifiers. Variables. Keywords. Identifier Examples Identifiers and Expressions CSE 130: Introduction to C Programming Spring 2005 Punctuation in C Statements are terminated with a ; Groups of statements are enclosed by curly braces: { and } Commas separate

More information

Ficha técnica de curso Código: IFCPR190b. Learning PHP, MySql and JavaScript

Ficha técnica de curso Código: IFCPR190b. Learning PHP, MySql and JavaScript Curso de: Objetivos: Learning PHP, MySql and JavaScript Aprender al desarrollo Web con las herramientas mas extendidas en la red como son un potente lenguaje interpretado, una buena base de datos y un

More information

INFORMATION BROCHURE Certificate Course in Web Design Using PHP/MySQL

INFORMATION BROCHURE Certificate Course in Web Design Using PHP/MySQL INFORMATION BROCHURE OF Certificate Course in Web Design Using PHP/MySQL National Institute of Electronics & Information Technology (An Autonomous Scientific Society of Department of Information Technology,

More information

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY Advanced Web Development Duration: 6 Months SCOPE OF WEB DEVELOPMENT INDUSTRY Web development jobs have taken thе hot seat when it comes to career opportunities and positions as a Web developer, as every

More information

Borland C++ Compiler: Operators

Borland C++ Compiler: Operators Introduction Borland C++ Compiler: Operators An operator is a symbol that specifies which operation to perform in a statement or expression. An operand is one of the inputs of an operator. For example,

More information

Java Review (Essentials of Java for Hadoop)

Java Review (Essentials of Java for Hadoop) Java Review (Essentials of Java for Hadoop) Have You Joined Our LinkedIn Group? What is Java? Java JRE - Java is not just a programming language but it is a complete platform for object oriented programming.

More information

V.S.B. ENGINEERING COLLEGE, KARUR. Academic Year: (ODD Semester) Department of Computer Science and Engineering

V.S.B. ENGINEERING COLLEGE, KARUR. Academic Year: (ODD Semester) Department of Computer Science and Engineering V.S.B. ENGINEERING COLLEGE, KARUR Academic Year: 2016-2017 (ODD Semester) Department of Computer Science and Engineering Question Bank (2013 Regulations) S.No. Name of the Subject / Lab Semester Page No.

More information

A Quick and Dirty Overview of Java and. Java Programming

A Quick and Dirty Overview of Java and. Java Programming Department of Computer Science New Mexico State University. CS 272 Fall 2004 A Quick and Dirty Overview of Java and.......... Java Programming Enrico Pontelli and Karen Villaverde . Introduction Objectives

More information

Web Development using PHP (WD_PHP) Duration 1.5 months

Web Development using PHP (WD_PHP) Duration 1.5 months Duration 1.5 months Our program is a practical knowledge oriented program aimed at learning the techniques of web development using PHP, HTML, CSS & JavaScript. It has some unique features which are as

More information

Internet Traffic Measurements. Shell Scripts. School of Electrical Engineering AALTO UNIVERSITY

Internet Traffic Measurements. Shell Scripts. School of Electrical Engineering AALTO UNIVERSITY Internet Traffic Measurements Shell Scripts School of Electrical Engineering AALTO UNIVERSITY Page 1 Contents What is a shell script?... 2 Useful Linux commands... 2 Useful commands for data manipulation...

More information

PE1 Worksheet. 3) What are the three control structures for writing an algorithm in pseudocode?

PE1 Worksheet. 3) What are the three control structures for writing an algorithm in pseudocode? PE1 Worksheet Problem solving 1) What are the four stages of problem solving by programming? What shall be done in each stage? Stage 1: Stage 2: Stage 3: Stage 4: 2) What is the top-down design strategy

More information

Chapter 5 The Do Loop Statement

Chapter 5 The Do Loop Statement The Do Loop Statement Loop structure that executes a set of statements as long as a condition is true. The condition is a Boolean expression. Executes at least once. The loop below iterates while sum is

More information

Chapter 7. Arrays and Collections. Instructor s Manual Table of Contents. At a Glance. Chapter Overview. Chapter Objectives.

Chapter 7. Arrays and Collections. Instructor s Manual Table of Contents. At a Glance. Chapter Overview. Chapter Objectives. C# Programming: From Problem Analysis to Program Design, 2nd ed. 7-1 Chapter 7 Arrays and Collections At a Glance Instructor s Manual Table of Contents Chapter Overview Chapter Objectives Instructor Notes

More information

6.087 Lecture 3 January 13, 2010

6.087 Lecture 3 January 13, 2010 6.087 Lecture 3 January 13, 2010 Review Blocks and Compound Statements Control Flow Conditional Statements Loops Functions Modular Programming Variable Scope Static Variables Register Variables 1 Review:

More information

INTRODUCTION TO FLOWCHARTING

INTRODUCTION TO FLOWCHARTING CHAPTER 1 INTRODUCTION TO FLOWCHARTING 1.0 Objectives 1.1 Introduction 1.2 Flowcharts 1.3 Types of Flowcharts 1.3.1 Types of flowchart 1.3.2 System flowcharts 1.4 Flowchart Symbols 1.5 Advantages of Flowcharts

More information

Convert Temperature CMPE-013/L. Constants and Literals. The Code #include <stdio.h> Gabriel Hugh Elkaim Winter 2014

Convert Temperature CMPE-013/L. Constants and Literals. The Code #include <stdio.h> Gabriel Hugh Elkaim Winter 2014 CMPE-013/L Constants and Literals Gabriel Hugh Elkaim Winter 2014 Convert Temperature Want to write a program to convert the temperature from Fahrenheit to Celsius for a range of temperatures. Demonstrates

More information

Certified PHP Developer VS-1054

Certified PHP Developer VS-1054 Certified PHP Developer VS-1054 Certification Code VS-1054 Certified PHP Developer Vskills certification for PHP Developers assesses the candidate for developing PHP based applications. The certification

More information

Template Language and Syntax Reference

Template Language and Syntax Reference APPENDIX A This chapter describes the language and syntax conventions used in the VPN Solutions Center template implementation. Grammar and Syntax The Extensible Markup Language (XML) template definition

More information

F 2. The ASCII character set contains the Unicode character set as a subset.

F 2. The ASCII character set contains the Unicode character set as a subset. JavaScript Exam #3 True/False Indicate whether the statement is true or false. T 1. You can use text strings as literal values or assign them to a variable. F 2. The ASCII character set contains the Unicode

More information

Question 1 Multiple Answer Points

Question 1 Multiple Answer Points Page 1 of 7 Name: Questions Description: Instructions: Question 1 Multiple Answer Points Question: What are the two parts of a value of type double? significant digits length exponent mode numerator denominator

More information

NIIT. Table of Contents. Introduction. Lesson 1 Introduction to Object-Oriented Approach. Lesson 2 Creating Objects

NIIT. Table of Contents. Introduction. Lesson 1 Introduction to Object-Oriented Approach. Lesson 2 Creating Objects Introduction Table of Contents About This Course...i Who Should Attend this Course...i How to Use this Book... ii Conventions Used in this Book... ii Lesson 1 Introduction to Object-Oriented Approach Object-Oriented

More information

Chapter 14 Web Database Programming Using PHP

Chapter 14 Web Database Programming Using PHP Chapter 14 Web Database Programming Using PHP Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Outline A Simple PHP Example Overview of Basic Features of PHP Overview

More information

CS201- Introduction to Programming Latest Solved Mcqs from Final term Papers July 11,2011

CS201- Introduction to Programming Latest Solved Mcqs from Final term Papers July 11,2011 CS201- Introduction to Programming Latest Solved Mcqs from Final term Papers July 11,2011 Mc100401285 moaaz.pk@gmail.com Moaaz Siddiq Bc100400662 bc100400662asad@gmail.com Asad Ali Latest Mcqs FINALTERM

More information

Primitive Data Types Summer 2010 Margaret Reid-Miller

Primitive Data Types Summer 2010 Margaret Reid-Miller Primitive Data Types 15-110 Summer 2010 Margaret Reid-Miller Data Types Data stored in memory is a string of bits (0 or 1). What does 1000010 mean? 66? 'B'? 9.2E-44? How the computer interprets the string

More information

Just Enough PHP for WordPress Users

Just Enough PHP for WordPress Users Just Enough PHP for WordPress Users PHP runs on the web server before HTML is sent to the web browser. The only thing that is sent to the browser from a PHP program is what that program writes out. PHP

More information

El Dorado Union High School District Educational Services

El Dorado Union High School District Educational Services El Dorado Union High School District Course of Study Information Page Course Title: ACE Computer Programming II (#495) Rationale: A continuum of courses, including advanced classes in technology is needed.

More information

Eli, the Computer Guy, PHP Tutorials 1-6

Eli, the Computer Guy, PHP Tutorials 1-6 Eli, the Computer Guy, PHP Tutorials 1-6 PHP Programming Part 1 Introduction to PHP Programming 1. How does Eli describe PHP? PHP is a great language to learn. Useful for the IT and freelance consultant.

More information

C Programming. for Embedded Microcontrollers. Warwick A. Smith. Postbus 11. Elektor International Media BV. 6114ZG Susteren The Netherlands

C Programming. for Embedded Microcontrollers. Warwick A. Smith. Postbus 11. Elektor International Media BV. 6114ZG Susteren The Netherlands C Programming for Embedded Microcontrollers Warwick A. Smith Elektor International Media BV Postbus 11 6114ZG Susteren The Netherlands 3 the Table of Contents Introduction 11 Target Audience 11 What is

More information