Multiple Choice Questions, COPA, Semester-2. Dr.V.Nagaradjane

Size: px
Start display at page:

Download "Multiple Choice Questions, COPA, Semester-2. Dr.V.Nagaradjane"

Transcription

1 Multiple Choice Questions, COPA, Semester-2 DrVNagaradjane December 25, 2017

2 ii Author: DrVNagaradjane

3 Contents 1 Javascript 1 11 Algorithms 1 12 Flowcharts 1 13 Web servers 2 14 Features of web servers 3 15 Programming languages Compiler based programming languages Interpreter based programming languages 4 16 Introduction to JavaScript 4 17 JavaScript Events 5 18 JavaScript data types 6 19 Special characters in Javascript Strings in JavaScript Operators in Javascript Math functions in Javascript Control statements in Javascript Loops in Javascript Functions in Javascript Objects in Javascript Array and data objects in Javascript Browser Object Model (BOM) in Javascript Document Object Model (DOM) in Javascript Cookies in Javascript 15 2 Visual Basic for Application (VBA) VBA shortcuts Useful functions in VBA Data types in VBA Arithmetic operators in VBA Comparison operators in VBA Concatenation operators in VBA Logical operators in VBA Bitwise operators in VBA Mathematical functions in VBA String functions in VBA Date/ Time functions Arrays in VBA Conditions in VBA Loops in VBA Message Box in VBA Input box in VBA Creating function in VBA 30 iii

4 iv CONTENTS 218 Creating Subroutines in VBA Creating macros in VBA Object Oriented Programming System (OOPS) through VBA Event driven programming in VBA GUI components in VBA Properties for VBA controls Events associated with VBA controls ActiveX data objects in VBA Debugging techniques in VBA 34 3 Smart accounting Basics of accounting Methods of accounting Accounting concept Golden rules of double entry system Accounting termonologies Voucher entry Preparation of final accounts Cash book Ratio analysis Depreciation Stock management VAT Cash & fund flow Tally Accounting in Tally Shortcuts in Tally Double entry system in Tally Budgeting system in Tally Scenario Variance & ratio analysis Analysis of financial statements Inventory basics POS Invoicing Taxation in Tally Languages in Tally 50 4 E-Commerce Introduction to E-Commerce Types of E-Commerce Scope of E-Commerce platforms Benefits of E-Commerce Capabilities required for E-Commerce platform Differences between E-Commerce and traditional commerce Types of E-Commerce websites Modes of payment for E-Commerce Payment gateway General questions on E-Commerce 55 Author: DrVNagaradjane

5 CONTENTS v 5 Cyber security Introduction to cyber security Threats to information security Vulnerability and risk management Directory service Access control Software development security Privacy protection Information security audit Information Technology (IT) Act 62 6 General Questions on VBA 65 Author: DrVNagaradjane

6 vi CONTENTS Author: DrVNagaradjane

7 Chapter 1 Javascript 11 Algorithms 1 The sequence of steps taken to solve a problem is called explanation (b) steps algorithm item Answers (1-1) 1 12 Flowcharts 1 Graphical representation of the flow of program is called executable code (b) flow chart source code algorithm 2 The oval symbol denotes operation in flowchart start/ end (b) continuation/ connector flow direction input/ output 3 The circle symbol denotes operation in flowchart start/ end (b) continuation/ connector flow direction input/ output 4 The parallelogram symbol denotes operation in flowchart start/ end (b) continuation/ connector flow direction input/ output 5 The arrow symbol denotes operation in flowchart start/ end (b) continuation/ connector flow direction input/ output 6 The rectangle symbol denotes operation in flowchart start/ end (b) processing decision making/ looping input/ output 7 The rhombus symbol denotes operation in flowchart start/ end (b) processing decision making/ looping input/ output 8 symbol in flowchart denotes start/ end of flow (b) 9 symbol in flowchart denotes continuation or connector (b) 10 symbol in flowchart direction of flow of program 1

8 2 13 WEB SERVERS (b) 11 symbol in flowchart denotes input/ output (b) 12 symbol in flowchart denotes processing (b) 13 symbol in flowchart denotes decision making (b) Answers (2-14) 1 (b) 2 3 (b) (b) (b) Web servers 1 Web servers send pages in response to client request Word documents (b) L A TEX documents Powerpoint documents HTML documents 2 HTML stands for Higher Text Markup Language (b) Hyper Text Markup Language Hyper Transfer Markup Language Hyper Text Manipulation Language 3 HTTP stands for Hyper Text Transfer Protocol (b) Hyper Transmission Transfer Protocol Hyper Text Transfer Procedure Hiker Text Transfer Protocol 4 Port number handles HTTP communications 80 (b) HTTPS stands for Hyper Text Transfer Protocol Secure (b) Hyper Transmission Transfer Protocol Secure Hyper Text Transfer Procedure Secure Hiker Text Transfer Protocol Secure 6 Port number handles HTTPS communications 80 (b) When HTTPS protocol is used, browser shows a icon near the address bar open lock (b) lock with cross mark ( ) danger icon green lock 8 SSL stands for Secure Surfing Layer (b) Second Socket Layer Secure Socket Layer Secure Socket Link 9 Scripting languages like PHP, Perl, Python, ASPNET, etc, executed by a web server are called side scripts server (b) client way unrelated 10 Scripting languages like Javascript, VB- Script, etc, executed by a browser are called side scripts server (b) client way unrelated 11 is a popular open source web server available free of cost Apache (b) Microsoft Internet Information Server Author: DrVNagaradjane

9 Q Bank [COPA Semester - 2] 3 Google Web Server (GWS) ngyngx 12 MS IIS in web servers stands for Microsoft Internet Interchange Server (b) Microsoft Internet Information Signal Microsoft Internet Information Server Microsoft Integrated Information Server Answers (15-26) 1 2 (b) (b) (b) Features of web servers 1 URL stands for United Resource Locator (b) Uniform Resource Locator Uniform Resource Loader Uniform Register Locator 2 The first part of URL placed to the left side of : (colon) symbol is protocol (b) path document name 3 The last part of URL placed to the right side of / (forward slash) symbol is protocol (b) path document name 4 The part of URL placed between the protocol and document name and separated by / (forward slash) symbol is protocol (b) path document name 5 Normally, the URL for an HTML document begins with http (b) https both a and b neither a nor b Author: DrVNagaradjane Answers (27-31) 1 (b) (b) 5 15 Programming languages 151 Compiler based programming languages 1 Human readable program is called machine code (b) source code mnemonic code key code 2 A compiler converts source code to code executable machine code (b) source code mnemonic code key code 3 converts source code to executable machine code document processor (b) spreadsheet program browser compiler 4 The rules to be followed in writing source code are called of a programming language syntax (b) bugs laws punishments 5 The errors caused by improper syntax in source code are called syntax (b) bugs laws punishments 6 Compilation is to create an executable program from source code done every time the source code needs to run (b) never done always incomplete done only once 7 Compiled machine code runs interpreted source code faster than (b) slower than as fast as 8 Assembly language, C, C++, Java, C# are examples of programming languages interpreter based (b) browser based

10 4 16 INTRODUCTION TO JAVASCRIPT compiler based Excel based 9 Compiler based programming languages are data types and syntax errors liberal (b) strict uncaring very lenient about 152 Interpreter based programming languages 10 The special program which executes source code one line (or few lines) at a time is called linker (b) loader compiler interpreter 11 Interpreted programs run compiled executable code slower than (b) faster than as fast as much faster than 12 Usually, interpreted languages are a bit about data types and syntax strict (b) very strict liberal stringent 13 Javascript and VBScript are examples of based scripting languages browser (b) compiler MS Office 14 Javascript, Perl, Python, PHP, Linux/ Unix shell script, etc are examples of based programming languages compiler (b) interpreter MS Office Answers (32-45) 1 (b) (b) (b) (b) 16 Introduction to JavaScript 1 Javascript can be used for programming client side browser (b) server side (using Node JS) game development/ desktop applications & mobile apps all of them 2 Javascript variables are typed statically (b) strongly dynamically globally 3 Javascript language supports concepts of programming object oriented (b) procedural imperative/functional all of them 4 Design concepts of Javascript language were taken from C & C# (b) COBOL & ADA BASIC & FORTRAN Self & Scheme 5 JavaScript runs was developed by Netscape Communications (b) Microsoft corporation Sun Microsystems Oracle 6 Javascript code is written within tags < html > < /html > (b) < body > < /body > < script > < /script > < table > < /table > 7 Javascript script type is identified by the parameter type= text/vbscript (b) text/javascript text/html text/plain 8 Javascript language is identified by the parameter language= javascript (b) vbscript vba java 9 Javascript complies with standard Indian (b) British ASCII ECMA-262 & ISO/IEC Javascript objects support the dot notation (eg objx=2) to access member variables in addition to notation Author: DrVNagaradjane

11 Q Bank [COPA Semester - 2] 5 array (obj[ x ]=2) (b) block (obj{ x }=2) function (obj( x )=2) tag (obj< x >= 2) 11 statement in JavaScript helps to evaluate any mathematical string at runtime value (b) eval calc cal 12 Method is a function bound to a procedure (b) a library a script an object 13 The system of notations used to effectively process string related operations is called impression (b) parser regular expression concatenation 14 External javascript files should have asp as file name extension (b) html php js 15 In JavaScript, is used for multiline comments /* */ (b) { } # # $ $ 16 In JavaScript, is used for single line comments { } (b) // # # $ $ 17 In JavaScript, keywords/ reserved words be used as variables, labels or function names may (b) should always can must not Answers (46-62) (b) (b) (b) JavaScript Events 1 event gets activated when a component looses focus Author: DrVNagaradjane onfocus (b) onblur onclick onerror 2 event gets activated when a component gains focus onfocus (b) onblur onclick onerror 3 event gets activated when an error occurs during execution of script onfocus (b) onblur onclick onerror 4 event gets activated when a component is clicked onfocus (b) onblur onclick onerror 5 event gets activated when a key moves down onkeydown (b) onkeyup onkeypress onmouseover 6 event gets activated when a key is pressed onkeydown (b) onkeyup onkeypress onmouseover 7 event gets activated when a key moves up onkeydown (b) onkeyup onkeypress onmouseover 8 event gets activated when mouse moves over a component onkeydown (b) onmouseout onkeypress onmouseover 9 event gets activated when mouse moves out from a component onmousedown (b) onmouseout onload onmouseover 10 event gets activated after loading a script file onmousedown (b) onmouseout onload onmouseover 11 event gets activated when mouse key pressed onmousedown (b) onmouseout onload onmouseover Answers (63-73) 1 (b) (b) 8 9 (b) 10 11

12 6 18 JAVASCRIPT DATA TYPES 18 JavaScript data types 1 is the Javascript data type to handle numbers Number (b) String Boolean null 2 is the Javascript data type to handle character strings Number (b) String Boolean null 3 is the Javascript data type to handle the results of logical comparisons (TRUE or FALSE) Number (b) String Boolean null 4 is the Javascript data type to handle undefined data types Undefined (b) Object Number String 5 is the Javascript data type to handle objects Undefined (b) Object Number String 6 is the keyword used in Javascript to define a variable Data (b) double var DIM 7 denotes a value which is not a number (eg, result of division by zero) in Javascript NaN (b) infinity -infinity isnan() 8 denotes inifinite value in Javascript NaN (b) infinity -infinity isnan() 9 denotes negative inifinite value in Javascript NaN (b) infinity -infinity isnan() 10 tests whether a value is not a number in Javascript NaN (b) infinity -infinity isnan() 11 maximum permissible number value in Javascript MAX VALUE (b) MIN VALUE NEGATIVE INFINITY POSITIVE INFINITY 12 minimum permissible number value in Javascript (b) MAX VALUE MIN VALUE NEGATIVE INFINITY POSITIVE INFINITY 13 value of positive infinity in Javascript MAX VALUE (b) MIN VALUE NEGATIVE INFINITY POSITIVE INFINITY 14 value of negative infinity in Javascript MAX VALUE (b) MIN VALUE NEGATIVE INFINITY POSITIVE INFINITY 15 function converts a string value to generic number value Number() (b) ParseFloat() ParseInt() tostring() 16 function converts a string value to integer value Number() (b) ParseFloat() ParseInt() tostring() 17 function converts a string value to floating point value Number() (b) ParseFloat() ParseInt() tostring() 18 function converts a number value to string value Number() (b) ParseFloat() ParseInt() tostring() 19 returns a number formatted in exponential notation toexponential() (b) tofixed() toprecision() valueof() 20 returns a number formatted to specified length toexponential() (b) tofixed() toprecision() valueof() 21 returns a number rounded to specified number of digits toexponential() (b) tofixed() toprecision() valueof() Author: DrVNagaradjane

13 Q Bank [COPA Semester - 2] 7 22 function creates a new array newvar() (b) newarray() newdim() Redim() 23 Members of an array have index values starting from 0 (b) Identify the wrong variable declaration from the following: var x2=10; (b) var x=2; var 1x = 3; var name= Krish 25 Identify the wrong variable declaration from the following: var x2=10; (b) var x=2; var xy = 3; var name= Krish 26 Identify the wrong variable declaration from the following: var x2=10; (b) var x=2; var x y = 3; var name= Krish 27 Identify the wrong initialization of variable from the following: var x2=10; (b) var x=2; var x=3; var name= Krish 28 A variable declared outsdide the scope of any function is an invalid variable (b) a global variable a variable with scope limited to a function a variable having scope inside a block Answers (74-101) 1 2 (b) (b) (b) (b) (b) (b) 22 (b) (b) Author: DrVNagaradjane 19 Special characters in Javascript 1 Special characters are otherwise called escape sequaneces (b) invalid characters wrong characters constants 2 denotes backspace in Javascript \b (b) \t \n \v 3 denotes newline in Javascript \b (b) \t \n \v 4 denotes tab in Javascript \b (b) \t \n \v 5 denotes vertical tab in Javascript \b (b) \t \n \v 6 denotes form feed (page eject for printer) in Javascript \f (b) \r \\ \ 7 denotes enter key in Javascript \f (b) \r \\ \ 8 denotes simple back slash in Javascript \f (b) \r \\ \ 9 denotes single quote in Javascript

14 8 110 STRINGS IN JAVASCRIPT \f (b) \r \\ \ 10 denotes double quotes mark in Javascript \f (b) \r \ \ Answers ( ) (b) Strings in JavaScript 1 function in Javascript returns length of a string length() (b) charat() charcodeat() concat() 2 function in Javascript joins two strings length() (b) charat() charcodeat() concat() 3 function in Javascript returns the character found at specified location in a string length() (b) charat() charcodeat() concat() 4 function in Javascript returns the unicode value of the character found at specified location in a string length() (b) charat() charcodeat() concat() 5 function in Javascript returns the first found location where given pattern occurs in the target string indexof() (b) lastindexof() substr() substring() 6 function in Javascript returns the last found location where given pattern occurs in the target string indexof() (b) lastindexof() substr() substring() 7 function in Javascript returns the substring from given index location to specified length indexof() (b) lastindexof() substr() substring() 8 function in Javascript returns the substring from given index location to specified ending index location indexof() (b) lastindexof() substr() substring() 9 function in Javascript returns the string in upper case characters tolowercase() (b) touppercase() trim() fromcharcode() 10 function in Javascript returns the character equivalent of given unicode value tolowercase() (b) touppercase() trim() fromcharcode() 11 function in Javascript returns the string in lower case tolowercase() (b) touppercase() trim() fromcharcode() 12 function in Javascript removes space, tab or other space holders from beginning and end of a string tolowercase() (b) touppercase() trim() fromcharcode() Answers ( ) (b) (b) (b) Author: DrVNagaradjane

15 Q Bank [COPA Semester - 2] Operators in Javascript 1 denotes the bitwise AND operator in Javascript & (b) 2 denotes the bitwise NOT operator in Javascript & (b) 3 denotes the bitwise OR operator in Javascript & (b) 4 denotes the bitwise XOR operator in Javascript & (b) 5 denotes the bitwise LEFT SHIFT operator in Javascript << (b) >> 6 denotes the bitwise RIGHT SHIFT operator in Javascript << (b) >> 7 operator in Javascript compares whether two expressions are EQUAL == (b)!= ===!== 8 operator in Javascript compares whether two expressions are EQUAL using strict comparison rules == (b)!= ===!== 9 operator in Javascript compares whether two expressions are NOT == EQUAL (b)!= ===!== 10 operator in Javascript compares whether two expressions are NOT EQUAL using strict comparison rules == (b)!= ===!== 11 operator in Javascript compares whether the left side expression is LESS THAN the right side one < (b) > <= >= 12 operator in Javascript compares whether the left side expression is GREATER THAN the right side one < (b) > <= >= 13 operator in Javascript compares whether the left side expression is LESS THAN the right side one < (b) > <= >= 14 operator in Javascript compares whether the left side expression is GREATER THAN OR EQUAL TO the right side one < (b) > <= >= 15 operator in Javascript compares whether the left side expression is LESS THAN OR EQUAL TO the right side one < (b) > <= >= 16 operator in Javascript tests whether the left side value is found in the right side collection < (b) > in instanceof 17 operator in Javascript tests whether a variable belongs to particular datatype < (b) > in instanceof 18 operator in Javascript increments the given variable x BEFORE evaluting the expression x + + (b) + + x x x 19 operator in Javascript increments the given variable x AFTER evaluting the expression Author: DrVNagaradjane

16 MATH FUNCTIONS IN JAVASCRIPT x + + (b) + + x x x 20 operator in Javascript decrements the given variable x BEFORE evaluting the expression x + + (b) + + x x x 21 operator in Javascript decrements the given variable x AFTER evaluting the expression x + + (b) + + x x x 22 operator in Javascript multiplies the left and right side number values and assigns the result to the left side variable = (b) / = + = = 23 operator in Javascript divides the left side value by the right side value and assigns the result to the left side variable = (b) / = + = = 24 operator in Javascript substracts the right side value from the left side value and assigns the result to the left side variable = (b) / = + = = 25 operator in Javascript adds the left and right side number values and assigns the result to the left side variable = (b) / = + = = Answers ( ) (b) (b) (b) (b) (b) (b) Math functions in Javascript Mathsin() (b) Mathcos() Mathacos() Mathabs() 2 function in Javascript returns sine value of its argument Mathsin() (b) Mathcos() Mathacos() Mathabs() 3 function in Javascript returns cosine value of its argument Mathsin() (b) Mathcos() Mathacos() Mathabs() 4 function in Javascript returns cos 1 value of its argument Mathsin() (b) Mathcos() Mathacos() Mathasin() 5 function in Javascript returns sin 1 value of its argument Mathsin() (b) Mathcos() Mathacos() Mathasin() 6 function in Javascript returns tangent value of its argument Mathtan() (b) Mathcos() Mathacos() Mathatan() 7 function in Javascript returns tan 1 value of its argument Mathtan() (b) Mathcos() Mathacos() Mathatan() 8 function in Javascript returns the higher integer value for given floating point number (eg, return value for 21 is 3) Mathrandom() (b) Mathceil() Mathfloor() Mathround() 9 function in Javascript returns the lower integer value for given floating point number (eg, return value for 28 is 2) Mathrandom() (b) Mathceil() Mathfloor() Mathround() 10 function in Javascript returns the nearest integer value for given floating point number (eg, return value for 21 is 2; that for 28 is 3) Mathrandom() 1 function in Javascript returns positive value of its argument, irrespective of whether the input was positive or negative Author: DrVNagaradjane

17 Q Bank [COPA Semester - 2] 11 (b) Mathceil() Mathfloor() Mathround() 11 function in Javascript returns random number between 0 and 1 (0 included, 1 excluded) Mathrandom() (b) Mathceil() Mathfloor() Mathround() 12 function in Javascript returns natural logarithm of given value Mathrandom() (b) Mathceil() Mathlog() Mathexp() 13 function in Javascript returns anti-logarithm of given value Mathrandom() (b) Mathceil() Mathlog() Mathexp() 14 function in Javascript returns the first number raised to the power of second number Mathpow() (b) Mathmax() Mathmin() Mathsqrt() 15 function in Javascript returns the maximum of the given collection of numbers Mathpow() (b) Mathmax() Mathmin() Mathsqrt() 16 function in Javascript returns the minimum of the given collection of numbers Mathpow() (b) Mathmax() Mathmin() Mathsqrt() 17 function in Javascript returns the square root of the given collection of numbers Mathpow() (b) Mathmax() Mathmin() Mathsqrt() Answers ( ) (b) (b) (b) Control statements in Javascript 1 In javascript, if else condition helps to execute a block of statements only if a condition is fulfilled (b) without any condition without any restriction randomly 2 The value of x after executing the following statements would be var x, y=10; if(y < 10){ x=5; } else { x = 8; } 8 (b) The value of x after executing the following statements would be var x, y=10; if(y == 10){ x=5; } else { x = 8; } 8 (b) The switch case statement checks for several loops (b) blocks conditions runs 5 statement is used at the end of each case block in switch case condition continue (b) break default label 6 statement is used at the end of each case block in switch case condition continue (b) break default label 7 In switch case condition in Javascript, statement is executed if no case condition is fulfilled continue (b) break default label Author: DrVNagaradjane

18 LOOPS IN JAVASCRIPT 8 What would be the value of the variable x, after executing the following switch case statement? var x, y=3; switch(y) { case 1: x=10; break; case 2: x=15; break; case 3: x=20; break; default: x=25; } 10 (b) What would be the value of the variable x, after executing the following switch case statement? var x, y=1; switch(y) { case 1: x=10; break; case 2: x=15; break; case 3: x=20; break; default: x=25; } 10 (b) What would be the value of the variable x, after executing the following switch case statement? var x, y=2; switch(y) { case 1: x=10; break; case 2: x=15; break; case 3: x=20; break; default: x=25; } 10 (b) What would be the value of the variable x, after executing the following switch case statement? var x, y=11; switch(y) { case 1: x=10; break; case 2: x=15; break; case 3: x=20; break; default: x=25; } 10 (b) Answers ( ) (b) 4 5 (b) 6 (b) (b) Loops in Javascript 1 In Javascript, for loop contains parts 1 (b) In Javascript, first part of for loop does parts condition checking (b) initialization increment/ decrement continue 3 In Javascript, second part of for loop does parts condition checking (b) initialization increment/ decrement continue 4 In Javascript, third part of for loop does parts condition checking (b) initialization increment/ decrement Author: DrVNagaradjane

19 Q Bank [COPA Semester - 2] 13 continue 5 In Javascript, statement helps to skip the remaining statemets of the loop for next cycle of execution break (b) initialization increment/ decrement continue 6 In Javascript, statement helps to exit the loop break (b) initialization increment/ decrement continue 7 What would be the value of x, on completing the following for loop? var i,x=10; for(i = 10; i <= 12; i + +) { s+=i; } 43 (b) In Javascript, the loop helps to process each element of an array in succession for (b) for in do while while 9 In Javascript, the loop helps to the following block of statements only if the condition is true for (b) for in do while while 10 In Javascript, the loop helps to the following block atleast once even if the condition is FALSE for (b) for in do while while Answers ( ) 1 2 (b) (b) 9 10 break (b) continue label function 2 Code block for each Javascript function is enclosed in ( ) (b) { } [ ] < > 3 Parameters/ arguments to be passed to a function are enclosed in after the name of the function ( ) (b) { } [ ] < > 4 is placed between function keyword and function parameters in Javascript Function opening (b) Function end Function name Function code block 5 The result of a Javascript function may be passed back using keyword function (b) return break continue 6 In Javascript, functions are also variables (b) objects both variables and objects neither variables nor objects 7 Any variable declared inside a function has validity within the block only (b) function only global scope constant 8 Any variable declared outside a function has validity within the block only (b) function only global scope constant Answers ( ) 115 Functions in Javascript 1 2 (b) (b) 6 7 (b) 8 1 In Javascript, keyword denotes beginning of a function Author: DrVNagaradjane

20 OBJECTS IN JAVASCRIPT 116 Objects in Javascript 1 Creating new data types through programming and adding new properties and methods to the data type is called programming rapid (b) object oriented procedural functional 2 The domain created by a programmer for placing all items related to a specific object/solution in Javascript is called object (b) namespace class property 3 The keyword used in Javascript to create a new data type is object (b) namespace class property 4 The variable placed inside a class definition to store values related to an object (such as colour, size, location, etc) is called object (b) namespace class property 5 The special method placed inside a class having the name of the class itself as the function name is constructor (b) encapsulation abstraction polymorphism 6 The ability of a class to derive the properties and methods of another class is called inheritance (b) encapsulation abstraction polymorphism 7 The ability to a method having the same name but different behaviour in different parent and child classes is called inheritance (b) encapsulation abstraction polymorphism 8 The ability of a class to bind properties and methods with different access levels is called inheritance (b) encapsulation abstraction polymorphism 9 The ability of a program object to reflect real world objects is called inheritance (b) encapsulation abstraction polymorphism Answers ( ) 1 (b) 2 (b) (b) Array and data objects in Javascript 1 A collection of values accessible through an index is called array (b) function variable block 2 The array index begins at in Javascript 3 (b) each element of an array may be of data type(s) different (b) only the same only integer only float 4 What would be the value stored in name[2]? var name=new Array( Krish, Ram, Shiva,27); Krish (b) Ram Shiva 27 5 What would be the value stored in name[3]? var name=new Array( Krish, Ram, Shiva,27); Krish (b) Ram Shiva 27 6 Length of an array may be accessed using property length (b) size width height 7 Index of an array may be Author: DrVNagaradjane

21 Q Bank [COPA Semester - 2] 15 (b) number string either number or string neither number nor string 8 Array having string value for index is called array assistant (b) associative decent string Answers ( ) (b) 119 Document Object Model (DOM) in Javascript Answers ( ) (b) 118 Browser Object Model (BOM) in Javascript 1 The standard interfaces provided by a browser for interaction with program script is called Browser Object Model (b) Browser Opening Model Brown Object Model Browser Object Mission 2 BOM stands for Browser Object Model (b) Browser Opening Model Brown Object Model Browser Object Mission 3 Browser Object Model supports access to object window (b) document innerhtml all of them 4 WindowLocation object supports properties href (b) hostname/protocol pathname all of them 5 WindowNavigator object supports properties appname/appcodename (b) platform cookieenabled/javaenabled all of them 6 Methods of BOM (Browser Object Model) are called on object document (b) window button text 1 The support provided for various components of a HTML document (like head, title, body, etc in a browser is called Document Object Model (b) Dominant Object Model Document Office Model Document Object Management 2 The abbreviation DOM stands for Document Object Model (b) Dominant Object Model Document Office Model Document Object Management 3 DOM permits access to methods docuemntgetelementbyid() (b) documentgetelementsbytagname() documentgetelementbyclassname() all of them 4 HTML element in DOM offers properties innerhtml (b) attribute setattribute(attrib, val) all of them 5 Methods of DOM (Document Object Model) are called on object document (b) window button text 1191 Cookies in Javascript 6 A text file used to save name, value pairs related to website visited by a browser is called memory (b) history cookie script 7 Cookie may have expires property which contains name of owner (b) date and time of expiry Author: DrVNagaradjane

22 DOCUMENT OBJECT MODEL (DOM) IN JAVASCRIPT name of browser name of the web server 8 property of the document class permits access to cookie getelementbyid (b) cookie innerhtml getelementbyname 9 What would be the value of pass property in the following cookie? documentcookie= id=vi;pass=ret;org=iti ; vi (b) ret iti 10 Image object in Javascript supports methods/properties ismap/ usemap (b) naturalheight/ naturalwidth width/ height/ vspace all of them 11 property of Javascript helps to set a cookie documentcookie (b) windowalert windowhistoryback windowprompt 12 The statement documentcookie= name=gayathri; sets a cookie with name property What is the value of the name property? name (b) ; Gayathri 13 What does the following statement do? var x = documentcookie; gets all cookies in a variable named x (b) prompts for input and stores the input value in x alerts regarding an error sets the background color of the document Answers ( ) (b) 8 (b) 9 (b) Author: DrVNagaradjane

23 Chapter 2 Visual Basic for Application (VBA) 1 VBA Stands for Visual Binary Applications (b) Visual Basic for Animations Viral Basic for Applications Visual Basic for Applications 2 VBA has a coding, compilation, running and debugging environment called Integrated Development Environment (IDE) (b) Editor Highlighter Compiler 3 IDE stands for Internal Development Environment (b) Integrated Design Environment Integrated Development Environment Integrated Drafting Environment 4 The programming environment which permits coding, compilation, running and debugging from a single window is called Integrated Development Environment (IDE) (b) Editor Highlighter Compiler 5 The IDE of VBA supports since it permits drag and drop approach for design of user interface Procedural Approach (b) reverse approach Rapid Application Development (RAD) postfix approach 6 RAD in the desing applications stands for Ready Application Development (b) Rapid Application Development Real Application Development Rapid Analysis Development 7 GUI stands for (b) General User Interface Graphical User Interaction Graphical User Interface Graphical Unified Interface 8 VBA permits of data from spreadsheets reading (b) writing both reading and writing neither reading nor writing 9 VBA supports ready made user interace components like UserForm, CommandButton (b) Label, TextBox, ComboBox, ListBox TabStrip, OptionButton, ToggleButton all of them 10 VBA supports through class module Object Oriented Programming System (OOPS) (b) Procedural programming Functional programming property based model 11 MS Office records macros in language VBA (b) C++ C# Java 12 VBA can be used to automate carried out through MS Excel data processing (b) graphing accessing cell values all of them 13 VBA code is compiled into an intermediate code called P-Code code (b) MicroSoft Intermediate Code (MSIL) Java Virual Machine (JVM) code Android Virtual Device (AVD) code 14 Excel file having VBA code is saved using the extension xlsx (b) xlsm xlst xls 17

24 18 21 VBA SHORTCUTS 15 MS Excel creates to execute VBA code real time computer (b) mobile computer tablet computer virual machine 16 Comment in VBA begins with character and continues till the end of that line & (b) / 17 characters should not be used in VBA variable names, & $, # all of them 21 VBA shortcuts 18 is the shortcut to open VBA IDE from MS Excel Alt+F11 (b) Alt+F8 Ctrl+Break Ctrl+G 19 is the shortcut to open immediate window in VBA IDE Alt+F11 (b) Alt+F8 Ctrl+Break Ctrl+G 20 is the shortcut to open list of macros Alt+F11 (b) Alt+F8 Ctrl+Break Ctrl+G 21 is the shortcut to stop execution of programs in VBA IDE Alt+F11 (b) Alt+F8 Ctrl+Break Ctrl+G 22 is the shortcut to display information relating to selected component in VBA IDE Ctrl+I (b) Ctrl+J Ctrl+R Ctrl+Shift+I 23 is the shortcut to properties and methods of a component in VBA IDE Ctrl+I (b) Ctrl+J Ctrl+R Ctrl+Shift+I 24 is the shortcut to display project explorer in VBA IDE Ctrl+I (b) Ctrl+J Ctrl+R Ctrl+Shift+I 25 is the shortcut to display parameter information for selected element in VBA IDE Ctrl+I (b) Ctrl+J Ctrl+R Ctrl+Shift+I 26 is the shortcut to add breakpoint in VBA IDE F9 (b) F5 F1 F2 27 is the shortcut to display help in VBA IDE F9 (b) F5 F1 F2 28 is the shortcut to display object browser in VBA IDE F9 (b) F5 F1 F2 29 is the shortcut to run a program in VBA IDE F9 (b) F5 F1 F2 30 is the shortcut to display properties window in VBA IDE F4 (b) F5 F1 F2 Answers ( ) (b) (b) (b) (b) (b) Useful functions in VBA 1 In VBA, the function Asc converts given character value to numeric code in system American Standard Code for Information Interchange (ASCII) (b) Double Byte Character Set (DBCS) Unicode 2 In VBA, the function AscB converts given character value to numeric code in system American Standard Code for Information Interchange (ASCII) (b) Double Byte Character Set (DBCS) Unicode Author: DrVNagaradjane

25 Q Bank [COPA Semester - 2] 19 3 In VBA, the function AscW converts given character value to numeric code in system American Standard Code for Information Interchange (ASCII) (b) Double Byte Character Set (DBCS) Unicode 4 In VBA, the function Chr converts given numeric value to character value in system American Standard Code for Information Interchange (ASCII) (b) Double Byte Character Set (DBCS) Unicode 5 In VBA, the function ChrB converts given numeric value to character value in system American Standard Code for Information Interchange (ASCII) (b) Double Byte Character Set (DBCS) Unicode 6 In VBA, the function ChrW converts given numeric value to character value in system American Standard Code for Information Interchange (ASCII) (b) Double Byte Character Set (DBCS) Unicode System 7 In VBA, Cstr function converts any data to type Integer (b) Double Single String 8 CDbl function converts String to type Integer (b) Double Single String 9 In VBA, CInt function converts String to type Integer (b) Double Single String 10 In VBA, Csng function converts String to type Integer (b) Double Single String 11 In VBA, Val function converts String to type number (b) byte Currency Decimal 12 In VBA, CByte function converts String to type number (b) byte Currency Decimal 13 In VBA, CCur function converts String to type number (b) byte Currency Decimal 14 In VBA, CLng function converts String to type Long (b) byte Currency Decimal 15 In VBA, CDec function converts String to type number (b) byte Currency Decimal 16 function in VBA creates a custom error message Format (b) CVErr InputBox MsgBox 17 function in VBA formats a number according to given text strings containing 0, # and comma (,) Format (b) CVErr InputBox MsgBox 18 function in VBA displays a message Format (b) CVErr InputBox MsgBox 19 function in VBA displays an input box Format (b) CVErr InputBox MsgBox Answers ( ) 1 2 (b) (b) (b) (b) (b) Data types in VBA 1 data type in VBA stores true or false values Boolean (b) Integer Byte Long 2 Boolean data type in VBA has size of Author: DrVNagaradjane

26 20 23 DATA TYPES IN VBA 1 byte (b) 2 bytes 3 bytes 4 bytes 3 Byte data type in VBA has size of 1 byte (b) 2 bytes 3 bytes 4 bytes 4 Byte in VBA can store values in the range of 0 to 255 (b) -922,337,203,685, to ,337,203,685, Jan-100 to 31-Dec-9999 ±79, 228, 162, 514, 264, 337, 593, 543, 950, 335 or ± Currency data type in VBA has size of 2 bytes (b) 3 bytes 4 bytes 8 bytes 6 Currency data type in VBA can store values in the range of 0 to 255 (b) -922,337,203,685, to ,337,203,685, Jan-100 to 31-Dec-9999 ±79, 228, 162, 514, 264, 337, 593, 543, 950, 335 or ± Date data type in VBA has size of 2 bytes (b) 3 bytes 4 bytes 8 bytes 8 Date data type in VBA can store values in the range of 0 to 255 (b) -922,337,203,685, to ,337,203,685, Jan-100 to 31-Dec-9999 ±79, 228, 162, 514, 264, 337, 593, 543, 950, 335 or ± Decimal data type in VBA has size of 14 bytes (b) 8 bytes 4 bytes 2 bytes 10 Decimal data type in VBA can store values in the range of 0 to 255 (b) -922,337,203,685, to ,337,203,685, Jan-100 to 31-Dec-9999 ±79, 228, 162, 514, 264, 337, 593, 543, 950, 335 or ± Double data type in VBA has size of 14 bytes (b) 8 bytes 4 bytes 2 bytes 12 Double data type in VBA can store values in the range of ± E308 to ± E324 (b) -32,768 to +32,767-2,147,483,648 to +2,147,483,647 ± E38 to ± E45 13 Integer data type in VBA has size of 14 bytes (b) 8 bytes 4 bytes 2 bytes 14 Integer data type in VBA can store values in the range of ± E308 to ± E324 (b) -32,768 to +32,767-2,147,483,648 to +2,147,483,647 ± E38 to ± E45 15 Long data type in VBA has size of 14 bytes (b) 8 bytes 4 bytes 2 bytes 16 Long data type in VBA can store values in the range of ± E308 to ± E324 (b) -32,768 to +32,767-2,147,483,648 to +2,147,483,647 ± E38 to ± E45 17 Single data type in VBA has size of 14 bytes (b) 8 bytes 4 bytes 2 bytes 18 Single data type in VBA can store values in the range of ± E308 to ± E324 (b) -32,768 to +32,767-2,147,483,648 to +2,147,483,647 ± E38 to ± E45 19 Object data type in VBA has size of 14 bytes (b) 8 bytes 4 bytes 2 bytes 20 String data type in VBA has size of 14 bytes (b) 10+length of string bytes 4 bytes 2 bytes 21 String data type in VBA can store a maximum of characters 65,400 Author: DrVNagaradjane

27 Q Bank [COPA Semester - 2] 21 (b) 32,767 2,147,483, Variant data type in VBA has size of 14 bytes (b) 10+length of string bytes 16 or 22+length in bytes 2 bytes 23 Variant data type can store String larger than 65,400 characters in length (b) number larger than Double both a & b 3 * 2 (b) / 2 3 % 2 Answers ( ) (b) 25 Comparison operators in VBA Answers ( ) 1 2 (b) (b) (b) (b) (b) Arithmetic operators in VBA 1 The arithmetic operator in VBA takes the highest precedence % (b) The arithmetic operator in VBA calcualtes power of a number % (b) The arithmetic operator in VBA has precedence after the operator % (b) + - / 4 The arithmetic operator in VBA has precedence after the % operator * (b) + - / 5 The arithmetic operator in VBA has precedence after the / operator * (b) In the following expression, find out the first operation: 3 * / % 2 * operator in VBA returns true if the left and sides are equal = (b) <> < > 2 operator in VBA returns true if the left and sides are not equal = (b) <> < > 3 operator in VBA returns true if the left side is less than the right side = (b) <> < > 4 operator in VBA returns true if the left side is greater than the right side = (b) <> < > 5 operator in VBA returns true if the left side is less than or equal the right side <= (b) >= < > 6 operator in VBA returns true if the left side is greater than or equal to the right side <= (b) >= < > 7 What would be the result of the following comparison?: 5 < 3 true (b) false neither true nor false both true and false 8 What would be the result of the following comparison?: 5 > 3 true Author: DrVNagaradjane

28 22 26 CONCATENATION OPERATORS IN VBA (b) false neither true nor false both true and false 9 What would be the result of the following comparison?: 5 = 3 true (b) false neither true nor false both true and false 10 What would be the result of the following comparison?: 5 <= 3 true (b) false neither true nor false both true and false 11 What would be the result of the following comparison?: 5 >= 3 true (b) false neither true nor false both true and false 12 What would be the result of the following comparison?: 5 = 3 true (b) false neither true nor false both true and false Answers ( ) 1 2 (b) (b) 7 (b) 8 9 (b) 10 (b) (b) 3 In VBA, using operator for concatenation results concatenation of Strings, irrespective of numeric or alphanumeric value stored in the Strings & (b) $ # + 4 Choose the result of the following VBA expression: x = (b) Choose the result of the following VBA expression: Choose the result of the following VBA expression: x = 20 & (b) Choose the result of the following VBA expression: x = Hi, + how are you? how are you, Hi? (b) Hi: how are you Hi, how are you? Hi? 7 Choose the result of the following VBA expression: x = Hi, & how are you? how are you, Hi? (b) Hi: how are you Hi, how are you? Hi? Answers ( ) (b) Concatenation operators in VBA 1 and are the two concatenation operators available in VBA + and & and % * and! # and $ 2 In VBA, using operator for concatenation results in addition if Strings have numeric value and concatenation if Strings have alphanumeric value & # (b) $ + 27 Logical operators in VBA 1 The operators in VBA which combine the results of several comparisons are called operators logical (b) arithmetical mathematical concatenation 2 The operator in VBA returns true only if both sides of the operator are true Author: DrVNagaradjane

29 Q Bank [COPA Semester - 2] 23 OR (b) AND NOT XOR 3 The operator in VBA returns true only if given comparison is false OR (b) AND NOT XOR 4 The operator in VBA returns true if atleast one of the 2 expressions is true OR (b) AND NOT XOR 5 The operator in VBA returns true if only one of the 2 comparisons is true OR (b) AND NOT XOR 6 The expression in VBA (5<3) AND (4 > 2) results in true (b) false neither true nor false both true and false 7 The expression in VBA (5<3) OR (4>2) results in true (b) false neither true nor false both true and false 8 The expression in VBA (5<3) XOR (4>2) results in true (b) false neither true nor false both true and false 9 The expression in VBA (5>3) XOR (4>2) results in true (b) false neither true nor false both true and false 10 The expression in VBA NOT (4>2) results in true (b) false neither true nor false both true and false 11 The expression in VBA NOT (4<2) results in true (b) false neither true nor false both true and false Author: DrVNagaradjane Answers ( ) 1 2 (b) (b) 8 9 (b) 10 (b) Bitwise operators in VBA 1 operators in VBA compare the corresponding bits of numbers to arrive a result logical (b) arithmetical mathematical bitwise 2 The operator in VBA returns 1 only if both bits are 1 OR (b) AND NOT XOR 3 The operator returns 1 if given bit is 0 and returns 0 if given bit is 1 OR (b) AND NOT XOR 4 The operator returns 1 if at least one of the bits is 1 OR (b) AND NOT XOR 5 The operator returns 1 if only one of the two bits is 1 and the other one is 0 OR (b) AND NOT XOR 6 The expression in VBA 5 AND 3 (101 AND 11) results in 1 (b) The expression in VBA 5 OR 3 (101 OR 11) results in 1 (b) The expression in VBA Dim x as Byte x=3 NOT x results in or 252 (b) or 3 neither a nor b both a & b 9 The expression in VBA 5 XOR 3 (101 XOR 011) results in 1 (b) 3 6 7

30 24 29 MATHEMATICAL FUNCTIONS IN VBA Answers ( ) 1 2 (b) Mathematical functions in VBA 1 function in VBA returns positive value of a number, irrespective of whether the input is positive or negative ABS (b) ATN COS EXP 2 function in VBA returns the cosine value of given number ABS (b) ATN COS EXP 3 function in VBA returns arc tangent (tan 1 ) of given input ABS (b) ATN COS EXP 4 function in VBA returns exponential value of given input ABS (b) ATN COS EXP 5 function in VBA returns integer part of given input FIX (b) FORMAT INT LOG 6 function in VBA returns integer portion of given input FIX (b) FORMAT INT LOG 7 function in VBA returns logarithm of given number to specified base FIX (b) FORMAT INT LOG 8 function in VBA returns formatted version of given number (the format being specified by 0 and #) FIX (b) FORMAT INT LOG 9 function in VBA initializes random seed SIN (b) RND RANDOMIZE SGN 10 function in VBA returns sine value of given number SIN RANDOMIZE (b) RND SGN 11 function in VBA returns the sign (+ or ) symbol of given number SIN (b) RND RANDOMIZE SGN 12 function in VBA returns a random number SIN (b) RND RANDOMIZE SGN 13 function in VBA rounds the given number to the nearest integer value ROUND (b) SQR TAN SGN 14 function in VBA returns tangent value of given number ROUND (b) SQR TAN SGN 15 function in VBA returns square root of given number ROUND (b) SQR TAN SGN 16 What is the result of the following expression in VBA?: FORMAT( , ##,##,00000 ) (b) ,00, Answers ( ) (b) (b) (b) (b) String functions in VBA 1 function in VBA returns the numeric value of given character in the American Standard Code of Information Interchange (ASCII) system ASC (b) CHR & INSTR 2 function in VBA returns concatenated new string from given String values ASC (b) CHR & INSTR 3 function in VBA returns character value of given numeric value ASC (b) CHR Author: DrVNagaradjane

31 Q Bank [COPA Semester - 2] 25 & INSTR 4 function in VBA returns location at which the second string occurs within the first string ASC (b) CHR & INSTR 5 function in VBA returns last location at which the second string occurs within the first string INSTRREV (b) LCASE LEFT RIGHT 6 function in VBA returns lowercase version of given string INSTRREV (b) LCASE LEFT RIGHT 7 function in VBA returns uppercase version of given string INSTRREV (b) LCASE LEFT UCASE 8 function in VBA returns given number of characters counted from the left of the string INSTRREV (b) LCASE LEFT RIGHT 9 function in VBA returns given number of characters counted from the right of the string INSTRREV (b) LCASE LEFT RIGHT 10 function in VBA returns length of given string LEN (b) LTRIM RTRIM TRIM 11 function in VBA removes white spaces from the left end of given string LEN (b) LTRIM RTRIM TRIM 12 function in VBA removes white spaces from the right end of given string LEN (b) LTRIM RTRIM TRIM 13 function in VBA removes white spaces from both left and right ends of given string LEN (b) LTRIM RTRIM TRIM 14 function in VBA extracts a substring from given start character for specified count of characters MID (b) REPLACE SPACE STR 15 function in VBA finds given string and replaces it with another Author: DrVNagaradjane MID (b) REPLACE SPACE STR 16 function in VBA returns specified number of spaces MID (b) REPLACE SPACE STR 17 function in VBA converts given number to string MID (b) REPLACE SPACE STR 18 function in VBA compares given strings, returns -1 if the first string is smaller than the second string, 0 if both are equal and 1 if the first is greater than the second string STRCOMP (b) STRCONV STRREVERSE VAL 19 function in VBA converts given string to uppercase, lowercase, propercase, or unicode STRCOMP (b) STRCONV STRREVERSE VAL 20 function in VBA reverses given string STRCOMP (b) STRCONV STRREVERSE VAL 21 function in VBA returns numeric value of string STRCOMP (b) STRCONV STRREVERSE VAL Answers ( ) (b) (b) (b) (b) (b) Date/ Time functions 1 function in VBA returns today s date Date (b) DATEADD DATEDIFF DATEPART 2 function in VBA returns part of a date (YYYY for year, MM for month and DD for day of month)

Such JavaScript Very Wow

Such JavaScript Very Wow Such JavaScript Very Wow Lecture 9 CGS 3066 Fall 2016 October 20, 2016 JavaScript Numbers JavaScript numbers can be written with, or without decimals. Extra large or extra small numbers can be written

More information

Phụ lục 2. Bởi: Khoa CNTT ĐHSP KT Hưng Yên. Returns the absolute value of a number.

Phụ lục 2. Bởi: Khoa CNTT ĐHSP KT Hưng Yên. Returns the absolute value of a number. Phụ lục 2 Bởi: Khoa CNTT ĐHSP KT Hưng Yên Language Element Abs Function Array Function Asc Function Atn Function CBool Function CByte Function CCur Function CDate Function CDbl Function Chr Function CInt

More information

Client-Side Web Technologies. JavaScript Part I

Client-Side Web Technologies. JavaScript Part I Client-Side Web Technologies JavaScript Part I JavaScript First appeared in 1996 in Netscape Navigator Main purpose was to handle input validation that was currently being done server-side Now a powerful

More information

PA R T. A ppendix. Appendix A VBA Statements and Function Reference

PA R T. A ppendix. Appendix A VBA Statements and Function Reference PA R T V A ppendix Appendix A VBA Statements and Reference A d Reference This appendix contains a complete listing of all Visual Basic for Applications (VBA) statements (Table A-1 ) and built-in functions

More information

710 Index Attributes, 127 action attribute, 263 assigning, bottom attribute, domain name attribute, 481 expiration date attribute, 480 8

710 Index Attributes, 127 action attribute, 263 assigning, bottom attribute, domain name attribute, 481 expiration date attribute, 480 8 INDEX Symbols = (assignment operator), 56 \ (backslash), 33 \b (backspace), 33 \" (double quotation mark), 32 \e (escape), 33 \f (form feed), 33

More information

Chapter 1 Introduction to Computers and the Internet

Chapter 1 Introduction to Computers and the Internet CPET 499/ITC 250 Web Systems Dec. 6, 2012 Review of Courses Chapter 1 Introduction to Computers and the Internet The Internet in Industry & Research o E Commerce & Business o Mobile Computing and SmartPhone

More information

PES DEGREE COLLEGE BANGALORE SOUTH CAMPUS 1 K.M. before Electronic City, Bangalore WEB PROGRAMMING Solution Set II

PES DEGREE COLLEGE BANGALORE SOUTH CAMPUS 1 K.M. before Electronic City, Bangalore WEB PROGRAMMING Solution Set II PES DEGREE COLLEGE BANGALORE SOUTH CAMPUS 1 K.M. before Electronic City, Bangalore 560 100 WEB PROGRAMMING Solution Set II Section A 1. This function evaluates a string as javascript statement or expression

More information

Active Planner. How to Create and Use Database Query Formulas

Active Planner. How to Create and Use Database Query Formulas Active Planner How to Create and Use Database Query Formulas Table of Contents Introduction... 1 Database Query Part 1 - The Basics... 2 Database Query Part 2 Excel as the Data source... 12 Database Query

More information

Variable Manipulator Driver. Installation and Usage Guide. Revision: 1.0 Date: Monday, July 10, 2017 Authors: Alan Chow

Variable Manipulator Driver. Installation and Usage Guide. Revision: 1.0 Date: Monday, July 10, 2017 Authors: Alan Chow Variable Manipulator Driver Installation and Usage Guide Revision: 1.0 Date: Monday, July 10, 2017 Authors: Alan Chow Contents Overview... 3 Usage Scenarios... 3 Features... 3 Change Log... 4 Driver Installation...

More information

Coding in JavaScript functions

Coding in JavaScript functions Coding in JavaScript functions A function contains code that will be executed by an event or by a call to the function. You may call a function from anywhere within a page (or even from other pages if

More information

Downloaded from Chapter 2. Functions

Downloaded from   Chapter 2. Functions Chapter 2 Functions After studying this lesson, students will be able to: Understand and apply the concept of module programming Write functions Identify and invoke appropriate predefined functions Create

More information

Language Fundamental of VB.NET Part 1. Heng Sovannarith

Language Fundamental of VB.NET Part 1. Heng Sovannarith Language Fundamental of VB.NET Part 1 Heng Sovannarith heng_sovannarith@yahoo.com Variables Declaring Variables Variables are named storage areas inside computer memory where a program places data during

More information

By the end of this section of the practical, the students should be able to:

By the end of this section of the practical, the students should be able to: By the end of this section of the practical, the students should be able to: Write JavaScript to generate HTML Create simple scripts which include input and output statements, arithmetic, relational and

More information

CS5000: Foundations of Programming. Mingon Kang, PhD Computer Science, Kennesaw State University

CS5000: Foundations of Programming. Mingon Kang, PhD Computer Science, Kennesaw State University CS5000: Foundations of Programming Mingon Kang, PhD Computer Science, Kennesaw State University Mathematical Functions Java provides many useful methods in the Math class for performing common mathematical

More information

JavaScript CS 4640 Programming Languages for Web Applications

JavaScript CS 4640 Programming Languages for Web Applications JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation

More information

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1)

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 1 Professional Program: Data Administration and Management JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1) WHO

More information

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

Lecture 14. Introduction to JavaScript. Mr. Mubashir Ali Lecturer (Dept. of Computer Science) Lecture 14 Introduction to JavaScript Mr. Mubashir Ali Lecturer (Dept. of dr.mubashirali1@gmail.com 1 Outline What is JavaScript? Embedding JavaScript with HTML JavaScript conventions Variables in JavaScript

More information

Chapter 4 Mathematical Functions, Characters, and Strings

Chapter 4 Mathematical Functions, Characters, and Strings Chapter 4 Mathematical Functions, Characters, and Strings Liang, Introduction to Java Programming, Tenth Edition, Global Edition. Pearson Education Limited 2015 1 Motivations Suppose you need to estimate

More information

String Functions on Excel Macros

String Functions on Excel Macros String Functions on Excel Macros The word "string" is used to described the combination of one or more characters in an orderly manner. In excel vba, variables can be declared as String or the Variant

More information

( ) 1.,, Visual Basic,

( ) 1.,, Visual Basic, ( ) 1. Visual Basic 1 : ( 2012/2013) :. - : 4 : 12-14 10-12 2 http://www.institutzamatematika.com/index.ph p/kompjuterski_praktikum_2 3 2 / ( ) 4 90% 90% 10% 90%! 5 ? 6 "? : 7 # $? - ( 1= on 0= off ) -

More information

CSC Web Programming. Introduction to JavaScript

CSC Web Programming. Introduction to JavaScript CSC 242 - Web Programming Introduction to JavaScript JavaScript JavaScript is a client-side scripting language the code is executed by the web browser JavaScript is an embedded language it relies on its

More information

Mathematical Functions, Characters, and Strings. CSE 114, Computer Science 1 Stony Brook University

Mathematical Functions, Characters, and Strings. CSE 114, Computer Science 1 Stony Brook University Mathematical Functions, Characters, and Strings CSE 114, Computer Science 1 Stony Brook University http://www.cs.stonybrook.edu/~cse114 1 Static methods Remember the main method header? public static void

More information

COMS 469: Interactive Media II

COMS 469: Interactive Media II COMS 469: Interactive Media II Agenda Review Ch. 5: JavaScript An Object-Based Language Ch. 6: Programming the Browser Review Data Types & Variables Data Types Numeric String Boolean Variables Declaring

More information

JavaScript: The Basics

JavaScript: The Basics JavaScript: The Basics CISC 282 October 4, 2017 JavaScript A programming language "Lightweight" and versatile Not universally respected Appreciated in the web domain Adds programmatic functionality to

More information

JavaScript CS 4640 Programming Languages for Web Applications

JavaScript CS 4640 Programming Languages for Web Applications JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation

More information

JavaScript. History. Adding JavaScript to a page. CS144: Web Applications

JavaScript. History. Adding JavaScript to a page. CS144: Web Applications JavaScript Started as a simple script in a Web page that is interpreted and run by the browser Supported by most modern browsers Allows dynamic update of a web page More generally, allows running an arbitrary

More information

CERTIFICATE IN WEB PROGRAMMING

CERTIFICATE IN WEB PROGRAMMING COURSE DURATION: 6 MONTHS CONTENTS : CERTIFICATE IN WEB PROGRAMMING 1. PROGRAMMING IN C and C++ Language 2. HTML/CSS and JavaScript 3. PHP and MySQL 4. Project on Development of Web Application 1. PROGRAMMING

More information

JavaScript. History. Adding JavaScript to a page. CS144: Web Applications

JavaScript. History. Adding JavaScript to a page. CS144: Web Applications JavaScript Started as a simple script in a Web page that is interpreted and run by the browser Supported by most modern browsers Allows dynamic update of a web page More generally, allows running an arbitrary

More information

SWITCH(DatePart("w",DateOfYear) IN(1,7),"Weekend",DatePart("w",DateOfYear) IN(2,3,4,5,6),"Weekday") AS DayType,

SWITCH(DatePart(w,DateOfYear) IN(1,7),Weekend,DatePart(w,DateOfYear) IN(2,3,4,5,6),Weekday) AS DayType, SeQueL 4 Queries and their Hidden Functions! by Clark Anderson A friend recently exclaimed Can you really use this function in SQL! In this article of my series I will explore and demonstrate many of the

More information

HTML5 and CSS3 More JavaScript Page 1

HTML5 and CSS3 More JavaScript Page 1 HTML5 and CSS3 More JavaScript Page 1 1 HTML5 and CSS3 MORE JAVASCRIPT 3 4 6 7 9 The Math Object The Math object lets the programmer perform built-in mathematical tasks Includes several mathematical methods

More information

CGS 3066: Spring 2015 JavaScript Reference

CGS 3066: Spring 2015 JavaScript Reference CGS 3066: Spring 2015 JavaScript Reference Can also be used as a study guide. Only covers topics discussed in class. 1 Introduction JavaScript is a scripting language produced by Netscape for use within

More information

VBSCRIPT - INTERVIEW QUESTIONS

VBSCRIPT - INTERVIEW QUESTIONS VBSCRIPT - INTERVIEW QUESTIONS http://www.tutorialspoint.com/vbscript/vbscript_interview_questions.htm Copyright tutorialspoint.com Dear readers, these VBScript Interview Questions have been designed specially

More information

The first sample. What is JavaScript?

The first sample. What is JavaScript? Java Script Introduction JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Firefox, Chrome, Opera, and Safari. In this lecture

More information

Like most objects, String objects need to be created before they can be used. To create a String object, we can write

Like most objects, String objects need to be created before they can be used. To create a String object, we can write JavaScript Native Objects Broswer Objects JavaScript Native Objects So far we have just been looking at what objects are, how to create them, and how to use them. Now, let's take a look at some of the

More information

Programming for the Web with PHP

Programming for the Web with PHP Aptech Ltd Version 1.0 Page 1 of 11 Table of Contents Aptech Ltd Version 1.0 Page 2 of 11 Abstraction Anonymous Class Apache Arithmetic Operators Array Array Identifier arsort Function Assignment Operators

More information

JavaScript Introduction

JavaScript Introduction JavaScript Introduction Web Technologies I. Zsolt Tóth University of Miskolc 2016 Zsolt Tóth (UM) JavaScript Introduction 2016 1 / 31 Introduction Table of Contents 1 Introduction 2 Syntax Variables Control

More information

COMP519 Web Programming Lecture 11: JavaScript (Part 2) Handouts

COMP519 Web Programming Lecture 11: JavaScript (Part 2) Handouts COMP519 Web Programming Lecture 11: JavaScript (Part 2) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool

More information

JAVASCRIPT BASICS. JavaScript Math Functions. The Math functions helps you to perform mathematical tasks

JAVASCRIPT BASICS. JavaScript Math Functions. The Math functions helps you to perform mathematical tasks JavaScript Math Functions Functions The Math functions helps you to perform mathematical tasks in a very way and lot of inbuilt mathematical functions which makes the programmers life easier. Typical example

More information

Princess Nourah bint Abdulrahman University. Computer Sciences Department

Princess Nourah bint Abdulrahman University. Computer Sciences Department Princess Nourah bint Abdulrahman University 1 And use http://www.w3schools.com/ JavaScript Objectives Introduction to JavaScript Objects Data Variables Operators Types Functions Events 4 Why Study JavaScript?

More information

CITS1231 Web Technologies. JavaScript Math, String, Array, Number, Debugging

CITS1231 Web Technologies. JavaScript Math, String, Array, Number, Debugging CITS1231 Web Technologies JavaScript Math, String, Array, Number, Debugging Last Lecture Introduction to JavaScript Variables Operators Conditional Statements Program Loops Popup Boxes Functions 3 This

More information

Mathematical Functions, Characters, and Strings. CSE 114, Computer Science 1 Stony Brook University

Mathematical Functions, Characters, and Strings. CSE 114, Computer Science 1 Stony Brook University Mathematical Functions, Characters, and Strings CSE 114, Computer Science 1 Stony Brook University http://www.cs.stonybrook.edu/~cse114 1 Static methods Remember the main method header? public static void

More information

COMP284 Scripting Languages Lecture 14: JavaScript (Part 1) Handouts

COMP284 Scripting Languages Lecture 14: JavaScript (Part 1) Handouts COMP284 Scripting Languages Lecture 14: JavaScript (Part 1) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool

More information

Index COPYRIGHTED MATERIAL

Index COPYRIGHTED MATERIAL Index COPYRIGHTED MATERIAL Note to the Reader: Throughout this index boldfaced page numbers indicate primary discussions of a topic. Italicized page numbers indicate illustrations. A abstract classes

More information

VB Script Reference. Contents

VB Script Reference. Contents VB Script Reference Contents Exploring the VB Script Language Altium Designer and Borland Delphi Run Time Libraries Server Processes VB Script Source Files PRJSCR, VBS and DFM files About VB Script Examples

More information

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 Subject Name VISUAL BASIC Sr.No Course content 1. 1. Introduction to Visual Basic 1.1. Programming Languages 1.1.1. Procedural,

More information

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name: Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Kevin Vandecar Course Title: Introduction to Visual Basic Course ID: CP11-3 Session Overview: Introduction to Visual Basic programming is a beginning

More information

CS110: PROGRAMMING LANGUAGE I

CS110: PROGRAMMING LANGUAGE I CS110: PROGRAMMING LANGUAGE I Computer Science Department Lecture 8: Methods Lecture Contents: 2 Introduction Program modules in java Defining Methods Calling Methods Scope of local variables Passing Parameters

More information

Namma Kalvi.

Namma Kalvi. Namma Kalvi COMPUTER APPLICATION PUBLIC EXAM - 2019 ANSWER KEY PART - A I Choose the correct answer 10x1=10 1. c. warm booting 6. d. All the above 11. d..css 2. c. Giga 7. d. 2 12. b. F5 3. b. VGA connector

More information

12. Numbers. Java. Summer 2008 Instructor: Dr. Masoud Yaghini

12. Numbers. Java. Summer 2008 Instructor: Dr. Masoud Yaghini 12. Numbers Java Summer 2008 Instructor: Dr. Masoud Yaghini Outline Numeric Type Conversions Math Class References Numeric Type Conversions Numeric Data Types (Review) Numeric Type Conversions Consider

More information

Program Design Phase. Algorithm Design - Mathematical. Algorithm Design - Sequence. Verify Algorithm Y = MX + B

Program Design Phase. Algorithm Design - Mathematical. Algorithm Design - Sequence. Verify Algorithm Y = MX + B Program Design Phase Write Program Specifications Analysis of requirements Program specifications description Describe what the goals of the program Describe appearance of input and output Algorithm Design

More information

LECTURE-2. Functions review HTML Forms. Arrays Exceptions Events. CS3101: Scripting Languages: Javascript Ramana Isukapalli

LECTURE-2. Functions review HTML Forms. Arrays Exceptions Events. CS3101: Scripting Languages: Javascript Ramana Isukapalli LECTURE-2 Functions review HTML Forms Arrays Exceptions Events 1 JAVASCRIPT FUNCTIONS, REVIEW Syntax function (params) { // code Note: Parameters do NOT have variable type. 1. Recall: Function

More information

Overview About KBasic

Overview About KBasic Overview About KBasic The following chapter has been used from Wikipedia entry about BASIC and is licensed under the GNU Free Documentation License. Table of Contents Object-Oriented...2 Event-Driven...2

More information

Table of Contents. PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii

Table of Contents. PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii Table of Contents PREFACE... vii CONVENTIONS... vii HOW TO USE THIS MANUAL... vii Further Information...viii USING BASIC-52... 1 BASIC-52 PINOUT AND FEATURES... 1 8052AH and 80C52 DIFFERENCES... 1 DEFINITION

More information

A Complete Tutorial for Beginners LIEW VOON KIONG

A Complete Tutorial for Beginners LIEW VOON KIONG I A Complete Tutorial for Beginners LIEW VOON KIONG Disclaimer II Visual Basic 2008 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been

More information

Assoc. Prof. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

Assoc. Prof. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved. Assoc. Prof. Marenglen Biba (C) 2010 Pearson Education, Inc. All Advanced Java This chapter discusses class String, class StringBuilder and class Character from the java.lang package. These classes provide

More information

Princeton University COS 333: Advanced Programming Techniques A Subset of JavaScript

Princeton University COS 333: Advanced Programming Techniques A Subset of JavaScript Princeton University COS 333: Advanced Programming Techniques A Subset of JavaScript Program Structure function sqr(i) var result; // Otherwise result would be global. result = i * i; //

More information

VBScript: Math Functions

VBScript: Math Functions C h a p t e r 3 VBScript: Math Functions In this chapter, you will learn how to use the following VBScript functions to World Class standards: 1. Writing Math Equations in VBScripts 2. Beginning a New

More information

Module 4: Characters, Strings, and Mathematical Functions

Module 4: Characters, Strings, and Mathematical Functions Module 4: Characters, Strings, and Mathematical Functions Objectives To solve mathematics problems by using the methods in the Math class ( 4.2). To represent characters using the char type ( 4.3). To

More information

A.A. 2008/09. Why introduce JavaScript. G. Cecchetti Internet Software Technologies

A.A. 2008/09. Why introduce JavaScript. G. Cecchetti Internet Software Technologies Internet t Software Technologies JavaScript part one IMCNE A.A. 2008/09 Gabriele Cecchetti Why introduce JavaScript To add dynamicity and interactivity to HTML pages 2 What s a script It s a little interpreted

More information

A Balanced Introduction to Computer Science, 3/E

A Balanced Introduction to Computer Science, 3/E A Balanced Introduction to Computer Science, 3/E David Reed, Creighton University 2011 Pearson Prentice Hall ISBN 978-0-13-216675-1 Chapter 7 Functions and Randomness 1 Predefined Functions recall: in

More information

People = End Users & Programmers. The Web Browser Application. Program Design Phase. Algorithm Design -Mathematical Y = MX + B

People = End Users & Programmers. The Web Browser Application. Program Design Phase. Algorithm Design -Mathematical Y = MX + B The Web Browser Application People = End Users & Programmers Clients and Components Input from mouse and keyboard Controller HTTP Client FTP Client TCP/IP Network Interface HTML/XHTML CSS JavaScript Flash

More information

Language Fundamentals Summary

Language Fundamentals Summary Language Fundamentals Summary Claudia Niederée, Joachim W. Schmidt, Michael Skusa Software Systems Institute Object-oriented Analysis and Design 1999/2000 c.niederee@tu-harburg.de http://www.sts.tu-harburg.de

More information

URLs and web servers. Server side basics. URLs and web servers (cont.) URLs and web servers (cont.) Usually when you type a URL in your browser:

URLs and web servers. Server side basics. URLs and web servers (cont.) URLs and web servers (cont.) Usually when you type a URL in your browser: URLs and web servers 2 1 Server side basics http://server/path/file Usually when you type a URL in your browser: Your computer looks up the server's IP address using DNS Your browser connects to that IP

More information

Ordinary Differential Equation Solver Language (ODESL) Reference Manual

Ordinary Differential Equation Solver Language (ODESL) Reference Manual Ordinary Differential Equation Solver Language (ODESL) Reference Manual Rui Chen 11/03/2010 1. Introduction ODESL is a computer language specifically designed to solve ordinary differential equations (ODE

More information

A Balanced Introduction to Computer Science, 3/E David Reed, Creighton University 2011 Pearson Prentice Hall ISBN

A Balanced Introduction to Computer Science, 3/E David Reed, Creighton University 2011 Pearson Prentice Hall ISBN A Balanced Introduction to Computer Science, 3/E David Reed, Creighton University 2011 Pearson Prentice Hall ISBN 978-0-13-216675-1 Chapter 7 Functions and Randomness 1 Predefined Functions recall: in

More information

! Widely available. ! Widely used. ! Variety of automatic checks for mistakes in programs. ! Embraces full set of modern abstractions. Caveat.

! Widely available. ! Widely used. ! Variety of automatic checks for mistakes in programs. ! Embraces full set of modern abstractions. Caveat. Why Java? Lecture 2: Intro to Java Java features.! Widely available.! Widely used.! Variety of automatic checks for mistakes in programs.! Embraces full set of modern abstractions. Caveat.! No perfect

More information

Assoc. Prof. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

Assoc. Prof. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved. Assoc. Prof. Marenglen Biba (C) 2010 Pearson Education, Inc. All This chapter discusses class String, from the java.lang package. These classes provide the foundation for string and character manipulation

More information

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio for InduSoft Web Studio www.indusoft.com info@indusoft.com InduSoft Web Studio Copyright 2006-2007 by InduSoft. All rights reserved worldwide. No part of this publication may be reproduced or transmitted

More information

Programming Language 2 (PL2)

Programming Language 2 (PL2) Programming Language 2 (PL2) 337.1.1 - Explain rules for constructing various variable types of language 337.1.2 Identify the use of arithmetical and logical operators 337.1.3 Explain the rules of language

More information

Full file at

Full file at Java Programming: From Problem Analysis to Program Design, 3 rd Edition 2-1 Chapter 2 Basic Elements of Java At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class

More information

Operators and Expressions

Operators and Expressions Operators and Expressions Conversions. Widening and Narrowing Primitive Conversions Widening and Narrowing Reference Conversions Conversions up the type hierarchy are called widening reference conversions

More information

Fundamentals: Expressions and Assignment

Fundamentals: Expressions and Assignment Fundamentals: Expressions and Assignment A typical Python program is made up of one or more statements, which are executed, or run, by a Python console (also known as a shell) for their side effects e.g,

More information

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and VBA AND MACROS VBA is a major division of the stand-alone Visual Basic programming language. It is integrated into Microsoft Office applications. It is the macro language of Microsoft Office Suite. Previously

More information

Language Fundamentals

Language Fundamentals Language Fundamentals VBA Concepts Sept. 2013 CEE 3804 Faculty Language Fundamentals 1. Statements 2. Data Types 3. Variables and Constants 4. Functions 5. Subroutines Data Types 1. Numeric Integer Long

More information

Outline. Data and Operations. Data Types. Integral Types

Outline. Data and Operations. Data Types. Integral Types Outline Data and Operations Data Types Arithmetic Operations Strings Variables Declaration Statements Named Constant Assignment Statements Intrinsic (Built-in) Functions Data and Operations Data and Operations

More information

The JavaScript Language

The JavaScript Language The JavaScript Language INTRODUCTION, CORE JAVASCRIPT Laura Farinetti - DAUIN What and why JavaScript? JavaScript is a lightweight, interpreted programming language with object-oriented capabilities primarily

More information

Long (or LONGMATH ) floating-point (or integer) variables (length up to 1 million, limited by machine memory, range: approx. ±10 1,000,000.

Long (or LONGMATH ) floating-point (or integer) variables (length up to 1 million, limited by machine memory, range: approx. ±10 1,000,000. QuickCalc User Guide. Number Representation, Assignment, and Conversion Variables Constants Usage Double (or DOUBLE ) floating-point variables (approx. 16 significant digits, range: approx. ±10 308 The

More information

Object oriented programming. Instructor: Masoud Asghari Web page: Ch: 3

Object oriented programming. Instructor: Masoud Asghari Web page:   Ch: 3 Object oriented programming Instructor: Masoud Asghari Web page: http://www.masses.ir/lectures/oops2017sut Ch: 3 1 In this slide We follow: https://docs.oracle.com/javase/tutorial/index.html Trail: Learning

More information

FANF. programming language. written by Konstantin Dimitrov. Revision 0.1 February Programming language FANF 1 / 21

FANF. programming language. written by Konstantin Dimitrov. Revision 0.1 February Programming language FANF 1 / 21 programming language FANF written by Konstantin Dimitrov Revision 0.1 February 2014 For comments and suggestions: knivd@me.com Programming language FANF 1 / 21 Table of Contents 1. Introduction...3 2.

More information

Macro Programming Reference Guide. Copyright 2005 Scott Martinez

Macro Programming Reference Guide. Copyright 2005 Scott Martinez Macro Programming Reference Guide Copyright 2005 Scott Martinez Section 1. Section 2. Section 3. Section 4. Section 5. Section 6. Section 7. What is macro programming What are Variables What are Expressions

More information

3 The Building Blocks: Data Types, Literals, and Variables

3 The Building Blocks: Data Types, Literals, and Variables chapter 3 The Building Blocks: Data Types, Literals, and Variables 3.1 Data Types A program can do many things, including calculations, sorting names, preparing phone lists, displaying images, validating

More information

END-TERM EXAMINATION

END-TERM EXAMINATION (Please Write your Exam Roll No. immediately) END-TERM EXAMINATION DECEMBER 2006 Exam. Roll No... Exam Series code: 100274DEC06200274 Paper Code : MCA-207 Subject: Front End Design Tools Time: 3 Hours

More information

Princeton University COS 333: Advanced Programming Techniques A Subset of JavaScript

Princeton University COS 333: Advanced Programming Techniques A Subset of JavaScript Princeton University COS 333: Advanced Programming Techniques A Subset of JavaScript Program Structure function sqr(i) var result; // Otherwise result would be global. result = i * i; //

More information

LECTURE-3. Exceptions JS Events. CS3101: Programming Languages: Javascript Ramana Isukapalli

LECTURE-3. Exceptions JS Events. CS3101: Programming Languages: Javascript Ramana Isukapalli LECTURE-3 Exceptions JS Events 1 EXCEPTIONS Syntax and usage Similar to Java/C++ exception handling try { // your code here catch (excptn) { // handle error // optional throw 2 EXCEPTIONS EXAMPLE

More information

Chapter 3 : Computer Science. Class XI ( As per CBSE Board) Data Handling. Visit : python.mykvs.in for regular updates

Chapter 3 : Computer Science. Class XI ( As per CBSE Board) Data Handling. Visit : python.mykvs.in for regular updates Chapter 3 : Computer Science Class XI ( As per CBSE Board) Data Handling Introduction Most of the computer programming language support data type, variables,operator and expression like fundamentals.python

More information

In-Built Functions. String Handling Functions:-

In-Built Functions. String Handling Functions:- L i b r a r y F u n c t i o n s : String Handling Functions:- In-Built Functions 1) LTrim() :- Usage: The LTrim() function returns a string containing a copy of specified string without leading spaces.

More information

a Why JavaScript? jonkv interactivity on the web CGI JavaScript Java Applets Netscape LiveScript JavaScript 1: Example

a Why JavaScript? jonkv interactivity on the web CGI JavaScript Java Applets Netscape LiveScript JavaScript 1: Example Why JavaScript? 2 JavaScript JavaScript the language Web page manipulation with JavaScript and the DOM 1994 1995: Wanted interactivity on the web Server side interactivity: CGI Common Gateway Interface

More information

JavaScript Specialist v2.0 Exam 1D0-735

JavaScript Specialist v2.0 Exam 1D0-735 JavaScript Specialist v2.0 Exam 1D0-735 Domain 1: Essential JavaScript Principles and Practices 1.1: Identify characteristics of JavaScript and common programming practices. 1.1.1: List key JavaScript

More information

Fundamental Data Types. CSE 130: Introduction to Programming in C Stony Brook University

Fundamental Data Types. CSE 130: Introduction to Programming in C Stony Brook University Fundamental Data Types CSE 130: Introduction to Programming in C Stony Brook University Program Organization in C The C System C consists of several parts: The C language The preprocessor The compiler

More information

COMP284 Scripting Languages Lecture 15: JavaScript (Part 2) Handouts

COMP284 Scripting Languages Lecture 15: JavaScript (Part 2) Handouts COMP284 Scripting Languages Lecture 15: JavaScript (Part 2) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool

More information

MATHEMATICAL / NUMERICAL FUNCTIONS

MATHEMATICAL / NUMERICAL FUNCTIONS MATHEMATICAL / NUMERICAL FUNCTIONS Function Definition Syntax Example ABS (Absolute value) ASC It returns the absolute value of a number, turning a negative to a positive (e.g. - 4 to 4) It returns the

More information

An overview about DroidBasic For Android

An overview about DroidBasic For Android An overview about DroidBasic For Android from February 25, 2013 Contents An overview about DroidBasic For Android...1 Object-Oriented...2 Event-Driven...2 DroidBasic Framework...2 The Integrated Development

More information

5. Strict mode use strict ; 6. Statement without semicolon, with semicolon 7. Keywords 8. Variables var keyword and global scope variable 9.

5. Strict mode use strict ; 6. Statement without semicolon, with semicolon 7. Keywords 8. Variables var keyword and global scope variable 9. Javascript 1) Javascript Implementation 1. The Core(ECMAScript) 2. DOM 3. BOM 2) ECMAScript describes 1. Syntax 2. Types 3. Statements 4. Keywords 5. Reserved words 6. Operators 7. Objects 3) DOM 1. Tree

More information

Calculations, Formatting and Conversions

Calculations, Formatting and Conversions Chapter 5 Calculations, Formatting and Conversions What is in This Chapter? In this chapter we discuss how to do basic math calculations as well as use some readily available Math functions in JAVA. We

More information

write vs. writeln Prompting as Page Loads Today s Goals CSCI 2910 Client/Server-Side Programming Intermediate File vs. HTML Output

write vs. writeln Prompting as Page Loads Today s Goals CSCI 2910 Client/Server-Side Programming Intermediate File vs. HTML Output CSCI 2910 Client/Server-Side Programming Topic: JavaScript Part 2 Today s Goals Today s lecture will cover: More objects, properties, and methods of the DOM The Math object Introduction to form validation

More information

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath UNIT - I Introduction to C Programming Introduction to C C was originally developed in the year 1970s by Dennis Ritchie at Bell Laboratories, Inc. C is a general-purpose programming language. It has been

More information

1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical d.

1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical d. Gaddis: Starting Out with Python, 2e - Test Bank Chapter Two MULTIPLE CHOICE 1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical

More information

FORMULAS QUICK REFERENCE

FORMULAS QUICK REFERENCE FORMULAS QUICK REFERENCE Summary Working with formulas? Find out which operators can be used in which formulas and what each one does. Math Operators Operator + (Add) Calculates the sum of two values.

More information

JAVASCRIPT BASICS. JavaScript String Functions. Here is the basic condition you have to follow. If you start a string with

JAVASCRIPT BASICS. JavaScript String Functions. Here is the basic condition you have to follow. If you start a string with JavaScript String Functions Description String constants can be specified by enclosing characters or strings within double quotes, e.g. "WikiTechy is the best site to learn JavaScript". A string constant

More information

Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan

Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah Lecturer Department of Computer Science & IT University of Balochistan 1 Outline p Introduction p Program development p C language and beginning with

More information