General Problem Solving Concepts, History and Features of Python,
Values and Data Types, Variables, Operators and Operands, Statements
and Expressions, Input Output Operations, Type Conversion
Boolean Expressions and Conditional Execution: Boolean Expressions,
Logical Operators, in and not in Operators, Precedence of Operators
The document discusses lists in Python. It defines mutable and immutable objects in Python and provides examples of lists as mutable objects. It describes how to create lists, access list elements using indexes and slicing, update and delete list elements, and various methods available for lists like append(), insert(), pop(), etc. It also discusses traversing lists, built-in functions for lists like len(), min(), max() etc. and arithmetic operations on lists.
Functions: Positional Parameter Passing, Returning Values, Scope of
Variable, Local and Global Variables, Function Composition, Lambda or
anonymous function
Modules: Concept of modules, packages and library in Python, Importing
Modules
This document provides an overview of functions in JavaScript. It discusses functions as objects that have a [[Call]] property allowing them to be executed. It describes function declarations vs expressions and how declarations are hoisted. Functions can be treated as values that can be assigned to variables or passed as arguments. Parameters and the arguments object are covered. The document also discusses mimicking function overloading, using functions as object methods, and how the this keyword works differently depending on how a function is called using call, apply, or bind.
- A structure is a user-defined data type that groups logically related data items of different data types into a single unit. Structures allow related data to be accessed and managed together.
- Structures can contain nested structures as members. Nested structure members are accessed using two period operators (e.g. e1.doj.day).
- Structures can be passed to functions as parameters and returned from functions. Pointers to structures are declared and accessed using arrow (->) operator instead of period operator.
- A union shares the same memory space for multiple data types, allocating only enough space for its largest member. Unions allow different types to share the same memory location.
Java Strings Tutorial | String Manipulation in Java | Java Tutorial For Begin...Edureka!
**** Java Certification Training: https://www.edureka.co/java-j2ee-soa-training ****
This Edureka tutorial on “Java Strings” will talk about one of the most important classes of Java i.e String class. It will also talk about the various methods and interfaces implemented by the String class. Through this tutorial you will learn the following topics:
Java Strings
String Pool
Creating a String
String Methods
Check out our Java Tutorial blog series: https://goo.gl/osrGrS
Check out our complete Youtube playlist here: https://goo.gl/gMFLx3
Follow us to never miss an update in the future.
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
The document summarizes Angular directives including ngIf, ngFor, ngSwitchCase, ngClass, and ngStyle. It describes how ngIf and ngFor are structural directives that change the DOM layout by adding and removing elements. NgIf and ngFor use an asterisk syntax that gets desugared into <ng-template> elements. NgFor iterates over collections and supports additional syntax like trackBy. NgSwitch is a set of cooperating directives that displays different elements based on a switch expression. NgClass and ngStyle are attribute directives that update CSS classes and styles on elements.
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | EdurekaEdureka!
This Edureka "Angular 4 Tutorial" will help you to learn about different Angular components and their features. Angular is a framework to develop highly scalable, fast, and testable web client-side applications. Below are the topics covered in this tutorial:
1) Webpage Development
2) DOM Manipulation
3) Traditional WebApp Vs SPA
4) Angular Introduction
5) Angular Features
6) Angular Installation
7) Building Blocks of Angular
8) Angular Architecture
Here is a structured training on Angular, check out the details: https://goo.gl/5rQOdw
Subscribe to our channel to get updates. Check our complete Angular playlist here: https://goo.gl/kgMONz
This document discusses function overloading, inline functions, and friend functions in C++. It defines function overloading as having two or more functions with the same name but different parameters, allowing for compile-time polymorphism. Inline functions have their body inserted at call sites for faster execution. Friend functions are non-member functions that have access to private members of a class. Examples are provided to demonstrate overloaded functions, inline functions checking for prime numbers, and using a friend function to check if a number is even or odd. Important concepts and questions for discussion are also outlined.
The document discusses different storage classes in C programming. It describes automatic, external, static, and register storage classes. Automatic variables are stored in memory and have block scope, while external variables are stored in memory and have global scope. Static variables can be internal or external, and their value persists between function calls. Register variables are stored in CPU registers for faster access, but compilers may ignore this specification. Each storage class has different properties for storage location, initial value, scope, and lifetime of variables.
Object Oriented Programming is a programming paradigm that uses objects and their interactions to design applications and computer programs. The document discusses the limitations of procedural programming and how object oriented programming aims to address these. It introduces key concepts of OOP like classes, objects, encapsulation, inheritance and polymorphism. Classes act as a blueprint to create real objects with data and behaviors. The document provides examples of defining empty classes and creating multiple objects in Python.
C++ functions require prototypes that specify the return type and parameters. Function overloading allows multiple functions to have the same name but different signatures. Default arguments allow functions to be called without providing trailing arguments. Inline functions expand the function body at the call site for small functions to reduce overhead compared to regular function calls.
This document discusses singly linked lists and circular linked lists. It begins with an introduction to linked lists and their advantages over arrays. It then covers the basic concepts of singly linked lists including their structure, basic operations like creation, insertion, deletion and traversal. It also discusses circular linked lists, their structure and how operations on them are similar to singly linked lists. It lists some applications of linked lists and concludes with discussing the disadvantages of linked lists.
Type casting is converting a variable from one data type to another. It is done explicitly using a cast operator like (type_name). It is best to cast to a higher data type to avoid data loss as casting to a lower type may truncate the value. There are two types of casting in C - implicit casting which happens automatically during assignment, and explicit casting which requires a cast operator. Implicit casting is done when assigning a value to a compatible type while explicit casting is needed when types are incompatible.
Learn all the essentials of building Angular 2 applications right here.
https://www.udemy.com/angular-2-training/?couponCode=UANGULAR2
This is a beginner level course aimed at those new to Angular 2 and Typescript. No previous knowledge of either is required before starting this course.
This course combines slides, projects and quizzes in a clear, concise and engaging way to guide you through the core concepts of Angular 2 and Typescript.
You will gain a solid foundation for building real-world applications following best practices and the Angular 2 style guide. This includes how to build components, create shared services, navigate between views, manage data, and managing user and system events.
The document discusses functions, modules, and how to modularize Python programs. It provides examples of defining functions, using parameters, returning values, and function scope. It also discusses creating modules, importing modules, and the difference between running a Python file as a module versus running it as the main script using the __name__ == "__main__" check. The key points are that functions help break programs into reusable and readable components, modules further help organize code, and the __name__ check allows code to run differently depending on how it is imported or run directly.
JAVASRIPT and PHP Basics# Unit 2 WebdesignNitinShelake4
The document provides information about a course on JavaScript taught by Mr. N. L. Shelake in the Department of Information Technology at Sanjivani College of Engineering. It includes the course contents, which cover topics such as the history of JavaScript, basic syntax including variables, operators, conditionals and loops. It also discusses embedding JavaScript in HTML documents and form validation using JavaScript.
JavaScript New Tutorial Class XI and XII.pptxrish15r890
The document provides an introduction to JavaScript including:
- JavaScript was developed by Branden Eich in 1995 and is a lightweight, interpreted programming language designed for creating network-centric applications.
- JavaScript is dynamic and commonly used for client-side scripting to interact with users and make dynamic web pages. It has object-oriented capabilities.
- The document discusses JavaScript variables, data types, comments, and keywords as well as uses like client-side validation, manipulating HTML, and presentations.
Functions: Positional Parameter Passing, Returning Values, Scope of
Variable, Local and Global Variables, Function Composition, Lambda or
anonymous function
Modules: Concept of modules, packages and library in Python, Importing
Modules
This document provides an overview of functions in JavaScript. It discusses functions as objects that have a [[Call]] property allowing them to be executed. It describes function declarations vs expressions and how declarations are hoisted. Functions can be treated as values that can be assigned to variables or passed as arguments. Parameters and the arguments object are covered. The document also discusses mimicking function overloading, using functions as object methods, and how the this keyword works differently depending on how a function is called using call, apply, or bind.
- A structure is a user-defined data type that groups logically related data items of different data types into a single unit. Structures allow related data to be accessed and managed together.
- Structures can contain nested structures as members. Nested structure members are accessed using two period operators (e.g. e1.doj.day).
- Structures can be passed to functions as parameters and returned from functions. Pointers to structures are declared and accessed using arrow (->) operator instead of period operator.
- A union shares the same memory space for multiple data types, allocating only enough space for its largest member. Unions allow different types to share the same memory location.
Java Strings Tutorial | String Manipulation in Java | Java Tutorial For Begin...Edureka!
**** Java Certification Training: https://www.edureka.co/java-j2ee-soa-training ****
This Edureka tutorial on “Java Strings” will talk about one of the most important classes of Java i.e String class. It will also talk about the various methods and interfaces implemented by the String class. Through this tutorial you will learn the following topics:
Java Strings
String Pool
Creating a String
String Methods
Check out our Java Tutorial blog series: https://goo.gl/osrGrS
Check out our complete Youtube playlist here: https://goo.gl/gMFLx3
Follow us to never miss an update in the future.
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
The document summarizes Angular directives including ngIf, ngFor, ngSwitchCase, ngClass, and ngStyle. It describes how ngIf and ngFor are structural directives that change the DOM layout by adding and removing elements. NgIf and ngFor use an asterisk syntax that gets desugared into <ng-template> elements. NgFor iterates over collections and supports additional syntax like trackBy. NgSwitch is a set of cooperating directives that displays different elements based on a switch expression. NgClass and ngStyle are attribute directives that update CSS classes and styles on elements.
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | EdurekaEdureka!
This Edureka "Angular 4 Tutorial" will help you to learn about different Angular components and their features. Angular is a framework to develop highly scalable, fast, and testable web client-side applications. Below are the topics covered in this tutorial:
1) Webpage Development
2) DOM Manipulation
3) Traditional WebApp Vs SPA
4) Angular Introduction
5) Angular Features
6) Angular Installation
7) Building Blocks of Angular
8) Angular Architecture
Here is a structured training on Angular, check out the details: https://goo.gl/5rQOdw
Subscribe to our channel to get updates. Check our complete Angular playlist here: https://goo.gl/kgMONz
This document discusses function overloading, inline functions, and friend functions in C++. It defines function overloading as having two or more functions with the same name but different parameters, allowing for compile-time polymorphism. Inline functions have their body inserted at call sites for faster execution. Friend functions are non-member functions that have access to private members of a class. Examples are provided to demonstrate overloaded functions, inline functions checking for prime numbers, and using a friend function to check if a number is even or odd. Important concepts and questions for discussion are also outlined.
The document discusses different storage classes in C programming. It describes automatic, external, static, and register storage classes. Automatic variables are stored in memory and have block scope, while external variables are stored in memory and have global scope. Static variables can be internal or external, and their value persists between function calls. Register variables are stored in CPU registers for faster access, but compilers may ignore this specification. Each storage class has different properties for storage location, initial value, scope, and lifetime of variables.
Object Oriented Programming is a programming paradigm that uses objects and their interactions to design applications and computer programs. The document discusses the limitations of procedural programming and how object oriented programming aims to address these. It introduces key concepts of OOP like classes, objects, encapsulation, inheritance and polymorphism. Classes act as a blueprint to create real objects with data and behaviors. The document provides examples of defining empty classes and creating multiple objects in Python.
C++ functions require prototypes that specify the return type and parameters. Function overloading allows multiple functions to have the same name but different signatures. Default arguments allow functions to be called without providing trailing arguments. Inline functions expand the function body at the call site for small functions to reduce overhead compared to regular function calls.
This document discusses singly linked lists and circular linked lists. It begins with an introduction to linked lists and their advantages over arrays. It then covers the basic concepts of singly linked lists including their structure, basic operations like creation, insertion, deletion and traversal. It also discusses circular linked lists, their structure and how operations on them are similar to singly linked lists. It lists some applications of linked lists and concludes with discussing the disadvantages of linked lists.
Type casting is converting a variable from one data type to another. It is done explicitly using a cast operator like (type_name). It is best to cast to a higher data type to avoid data loss as casting to a lower type may truncate the value. There are two types of casting in C - implicit casting which happens automatically during assignment, and explicit casting which requires a cast operator. Implicit casting is done when assigning a value to a compatible type while explicit casting is needed when types are incompatible.
Learn all the essentials of building Angular 2 applications right here.
https://www.udemy.com/angular-2-training/?couponCode=UANGULAR2
This is a beginner level course aimed at those new to Angular 2 and Typescript. No previous knowledge of either is required before starting this course.
This course combines slides, projects and quizzes in a clear, concise and engaging way to guide you through the core concepts of Angular 2 and Typescript.
You will gain a solid foundation for building real-world applications following best practices and the Angular 2 style guide. This includes how to build components, create shared services, navigate between views, manage data, and managing user and system events.
The document discusses functions, modules, and how to modularize Python programs. It provides examples of defining functions, using parameters, returning values, and function scope. It also discusses creating modules, importing modules, and the difference between running a Python file as a module versus running it as the main script using the __name__ == "__main__" check. The key points are that functions help break programs into reusable and readable components, modules further help organize code, and the __name__ check allows code to run differently depending on how it is imported or run directly.
JAVASRIPT and PHP Basics# Unit 2 WebdesignNitinShelake4
The document provides information about a course on JavaScript taught by Mr. N. L. Shelake in the Department of Information Technology at Sanjivani College of Engineering. It includes the course contents, which cover topics such as the history of JavaScript, basic syntax including variables, operators, conditionals and loops. It also discusses embedding JavaScript in HTML documents and form validation using JavaScript.
JavaScript New Tutorial Class XI and XII.pptxrish15r890
The document provides an introduction to JavaScript including:
- JavaScript was developed by Branden Eich in 1995 and is a lightweight, interpreted programming language designed for creating network-centric applications.
- JavaScript is dynamic and commonly used for client-side scripting to interact with users and make dynamic web pages. It has object-oriented capabilities.
- The document discusses JavaScript variables, data types, comments, and keywords as well as uses like client-side validation, manipulating HTML, and presentations.
This document outlines the objectives of a lecture on JavaScript. It introduces JavaScript, discusses data types, operators, flow control, functions, events, objects, arrays, and the Document Object Model. It provides examples of JavaScript concepts like functions, events, and objects. The document is intended to teach the basics of JavaScript programming.
This document outlines the objectives of a lecture on JavaScript. It will introduce JavaScript, including using script tags and linking external JavaScript files. It will cover JavaScript expressions, operators, functions, flow control, objects, arrays, the Document Object Model, forms, cookies and more. The lecture aims to provide an overview of the JavaScript language and how it is used for client-side scripting.
This document provides an overview of JavaScript. It discusses that JavaScript is an object scripting language used to create dynamic online content. It can be used by HTML authors to dynamically script page behavior on both the client-side and server-side. The document then covers basic JavaScript structures like using the <SCRIPT> tag to embed scripts in HTML and external scripts. It also discusses data types in JavaScript, variable declaration, and other syntax conventions.
This document provides an overview of JavaScript, including:
- JavaScript can run in browsers without needing Java and is used for client-side scripting. It allows dynamic interactions with web pages.
- JavaScript code can be included inline, embedded in <script> tags, or linked externally from .js files. External is preferred for maintenance.
- Variables, data types, operators, and control structures are explained. Objects are collections of properties and methods.
- Client-side scripting benefits include offloading processing to clients and faster responses to user events. Disadvantages include lack of JavaScript support and cross-browser inconsistencies.
- AJAX made JavaScript more important by enabling asynchronous data requests without blocking the browser.
This document provides an outline and overview of client-side technologies including JavaScript, DOM, and jQuery. The outline includes sections on JavaScript concepts like data types, control structures, arrays, functions, and objects. It also covers DOM levels and manipulating the DOM, as well as introductions to jQuery for selecting elements, changing styles, and handling events. The presentation provides an overview of these key client-side technologies for students.
This document provides an outline and overview of client-side technologies including JavaScript, DOM, and jQuery. The outline covers JavaScript concepts like data types, control structures, arrays, functions, and objects. It also covers DOM levels and manipulating the DOM. Finally, it discusses jQuery and how to load, select elements, handle events, and more. The presentation aims to familiarize students with these important front-end technologies.
Introduction to JavaScript course. The course was updated in 2014-15.
Will allow you to understand what is JavaScript, what's it history and how you can use it.
The set of slides "Introduction to jQuery" is a follow up - which would allow the reader to have a basic understanding across JavaScript and jQuery.
JavaScript is the world's most popular programming language. It is used to add interactive effects to web pages. JavaScript code can be inserted into HTML pages between <script> tags. Common JavaScript statements include conditional statements like if/else and loops. Variables are used to store and manipulate data in JavaScript. Common data types include strings, numbers, booleans, arrays, and objects. Functions allow code reuse and organization. Operators are used to assign values, compare values, and perform arithmetic. jQuery is a popular JavaScript library that simplifies DOM manipulation and event handling.
JavaScript can change HTML content, attributes, styles, and validate data. It can be placed in the <body> and <head> sections between <script> tags. Functions and events allow JavaScript code to run when events occur. JavaScript can output to alerts, the document, elements, and the console. It uses data types like numbers, strings, Booleans, arrays, and objects. Conditionals like if/else and switch statements allow different code blocks to run based on conditions. Loops like for, for/in, while, and do/while repeat code.
JavaScript was designed to add interactivity to HTML pages. It is a scripting language that is usually embedded directly into HTML pages and allows for dynamic text, event handling, reading/writing HTML elements, and validating form data. JavaScript supports both client-side and server-side scripting and was originally developed by Netscape under the name LiveScript before being renamed. It provides programming capabilities to HTML authors and allows for dynamic content, user interaction, and validation without server requests.
1. JavaScript is an object-oriented programming language used to make web pages interactive. It was created by Netscape and allows developers to automate page elements and add interactivity.
2. JavaScript can be used to validate forms, open and close windows, perform calculations, and make pages feel fresh by updating elements like dates. It adds multimedia and allows pages to be customized based on user input.
3. JavaScript interacts with users by processing forms, validating input, and producing dynamic pages tailored to individual users. It is widely supported and accessible to beginners.
- JavaScript is a lightweight, interpreted programming language designed for creating network-centric applications. It is complementary to and integrated with HTML and Java.
- JavaScript is widely used for client-side validation, manipulating HTML pages, user notifications, and back-end data loading to provide dynamic and interactive features to web pages.
- Popular JavaScript frameworks include jQuery, Angular, React, and Node.js which is used to build fast and scalable network applications and web servers.
This document provides an overview of Module 2 of a course on Internet and Web Technology. It covers topics related to JavaScript, including:
- Programming fundamentals of JavaScript like variables, functions, and statements
- Different types of operators in JavaScript like arithmetic, comparison, logical, and assignment operators
- Defining and calling functions
- Using built-in functions like alert(), confirm(), and prompt()
- Best practices for writing JavaScript code
The document provides an overview of JavaScript topics including what JavaScript is, where it is used, syntax features like variables, conditionals, and loops. It also discusses JavaScript design principles like progressive enhancement and graceful degradation. Key JavaScript concepts like objects, arrays, functions, and built-in objects like String, Math, and Date are described. The document is a module syllabus that introduces foundational JavaScript concepts.
Impurities of Water and their Significance.pptxdhanashree78
Impart Taste, Odour, Colour, and Turbidity to water.
Presence of organic matter or industrial wastes or microorganisms (algae) imparts taste and odour to water.
Presence of suspended and colloidal matter imparts turbidity to water.
How Binning Affects LED Performance & Consistency.pdfMina Anis
🔍 What’s Inside:
📦 What Is LED Binning?
• The process of sorting LEDs by color temperature, brightness, voltage, and CRI
• Ensures visual and performance consistency across large installations
🎨 Why It Matters:
• Inconsistent binning leads to uneven color and brightness
• Impacts brand perception, customer satisfaction, and warranty claims
📊 Key Concepts Explained:
• SDCM (Standard Deviation of Color Matching)
• Recommended bin tolerances by application (e.g., 1–3 SDCM for retail/museums)
• How to read bin codes from LED datasheets
• The difference between ANSI/NEMA standards and proprietary bin maps
🧠 Advanced Practices:
• AI-assisted bin prediction
• Color blending and dynamic calibration
• Customized binning for high-end or global projects
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...ijfcstjournal
One of the major challenges for software, nowadays, is software cost estimation. It refers to estimating the
cost of all activities including software development, design, supervision, maintenance and so on. Accurate
cost-estimation of software projects optimizes the internal and external processes, staff works, efforts and
the overheads to be coordinated with one another. In the management software projects, estimation must
be taken into account so that reduces costs, timing and possible risks to avoid project failure. In this paper,
a decision- support system using a combination of multi-layer artificial neural network and decision tree is
proposed to estimate the cost of software projects. In the model included into the proposed system,
normalizing factors, which is vital in evaluating efforts and costs estimation, is carried out using C4.5
decision tree. Moreover, testing and training factors are done by multi-layer artificial neural network and
the most optimal values are allocated to them. The experimental results and evaluations on Dataset
NASA60 show that the proposed system has less amount of the total average relative error compared with
COCOMO model.
本資料「To CoT or not to CoT?」では、大規模言語モデルにおけるChain of Thought(CoT)プロンプトの効果について詳しく解説しています。
CoTはあらゆるタスクに効く万能な手法ではなく、特に数学的・論理的・アルゴリズム的な推論を伴う課題で高い効果を発揮することが実験から示されています。
一方で、常識や一般知識を問う問題に対しては効果が限定的であることも明らかになりました。
複雑な問題を段階的に分解・実行する「計画と実行」のプロセスにおいて、CoTの強みが活かされる点も注目ポイントです。
This presentation explores when Chain of Thought (CoT) prompting is truly effective in large language models.
The findings show that CoT significantly improves performance on tasks involving mathematical or logical reasoning, while its impact is limited on general knowledge or commonsense tasks.
A SEW-EURODRIVE brake repair kit is needed for maintenance and repair of specific SEW-EURODRIVE brake models, like the BE series. It includes all necessary parts for preventative maintenance and repairs. This ensures proper brake functionality and extends the lifespan of the brake system
Third Review PPT that consists of the project d etails like abstract.Sowndarya6
CyberShieldX is an AI-driven cybersecurity SaaS web application designed to provide automated security analysis and proactive threat mitigation for business websites. As cyber threats continue to evolve, traditional security tools like OpenVAS and Nessus require manual configurations and lack real-time automation. CyberShieldX addresses these limitations by integrating AI-powered vulnerability assessment, intrusion detection, and security maintenance services. Users can analyze their websites by simply submitting a URL, after which CyberShieldX conducts an in-depth vulnerability scan using advanced security tools such as OpenVAS, Nessus, and Metasploit. The system then generates a detailed report highlighting security risks, potential exploits, and recommended fixes. Premium users receive continuous security monitoring, automatic patching, and expert assistance to fortify their digital infrastructure against emerging threats. Built on a robust cloud infrastructure using AWS, Docker, and Kubernetes, CyberShieldX ensures scalability, high availability, and efficient security enforcement. Its AI-driven approach enhances detection accuracy, minimizes false positives, and provides real-time security insights. This project will cover the system's architecture, implementation, and its advantages over existing security solutions, demonstrating how CyberShieldX revolutionizes cybersecurity by offering businesses a smarter, automated, and proactive defense mechanism against ever-evolving cyber threats.
First Review PPT gfinal gyft ftu liu yrfut goSowndarya6
CyberShieldX provides end-to-end security solutions, including vulnerability assessment, penetration testing, and real-time threat detection for business websites. It ensures that organizations can identify and mitigate security risks before exploitation.
Unlike traditional security tools, CyberShieldX integrates AI models to automate vulnerability detection, minimize false positives, and enhance threat intelligence. This reduces manual effort and improves security accuracy.
Many small and medium businesses lack dedicated cybersecurity teams. CyberShieldX provides an easy-to-use platform with AI-powered insights to assist non-experts in securing their websites.
Traditional enterprise security solutions are often expensive. CyberShieldX, as a SaaS platform, offers cost-effective security solutions with flexible pricing for businesses of all sizes.
Businesses must comply with security regulations, and failure to do so can result in fines or data breaches. CyberShieldX helps organizations meet compliance requirements efficiently.
This document provides information about the Fifth edition of the magazine "Sthapatya" published by the Association of Civil Engineers (Practicing) Aurangabad. It includes messages from current and past presidents of ACEP, memories and photos from past ACEP events, information on life time achievement awards given by ACEP, and a technical article on concrete maintenance, repairs and strengthening. The document highlights activities of ACEP and provides a technical educational article for members.
1. IT for Engineers
Sanjivani Rural Education Society’s
Sanjivani College of Engineering, Kopargaon-423603
(An Autonomous Institute Affiliated to Savitribai Phule Pune University, Pune)
NAAC ‘A’ Grade Accredited, ISO 9001:2015 Certified
Department of Information Technology
(NBA Accredited)
Mr. N. L. Shelake
Assistant Professor
3. JavaScript
JavaScript is a High Level, versatile and widely used
programming language primarily for web development.
It is a client-side scripting language, executed by web
browsers, making web pages interactive.
JavaScript can also be used for server-side development
with technologies like Node.js.
JavaScript Mr. N. L. Shelake Department of Information Technology
4. JavaScript
Its ability to add interactivity and dynamic behavior to
websites
It is one of the core technologies used for web
development, alongside HTML (Hypertext Markup
Language) and CSS (Cascading Style Sheets).
JavaScript Mr. N. L. Shelake Department of Information Technology
5. History of JavaScript
JavaScript was created by Brendan Eich in 1995
Netscape Communications Corporation
Initially named "Mocha" and then "LiveScript," it was eventually
renamed JavaScript as part of a partnership with Sun
Microsystems (now Oracle)
It is not related to JAVA
Mainly designed for client-side scripting in web browsers
JavaScript
JavaScript Mr. N. L. Shelake Department of Information Technology
6. History of JavaScript
The first public release of JavaScript was in Netscape Navigator
2.0 in 1995
It allowed developers to add interactive elements and dynamic
behavior to web pages, making the web more engaging for users.
JavaScript's adoption was accelerated by the "Browser Wars" of
the late 1990s and early 2000s, primarily between Netscape
Navigator and Microsoft's Internet Explorer
Implemented their own versions of JavaScript
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
7. History of JavaScript
To address these issues and create a standardized specification for
JavaScript, the ECMA established and ECMAScript standard in
1997.
ECMAScript defines the core features of JavaScript.
The first standardized version was ECMAScript 1
European Computer Manufacturers Association. The organization
was founded in 1961 to standardize computer systems in Europe.
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
8. What is JavaScript?
JavaScript is a high-level, interpreted scripting language primarily
used for adding interactivity and behavior to web pages.
It allows developers to create dynamic content, manipulate the
Document Object Model (DOM), and interact with users.
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
9. Why JavaScript?
The primary language for web development
JavaScript is supported by all major web browsers (Cross-
Browser Compatibility)
JavaScript is a versatile language that can be used for both front-
end and back-end development
has led to the creation of numerous libraries, frameworks, and
tools that simplify and accelerate web development. like React,
Angular etc (Community)
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
10. Why JavaScript?
JavaScript's support for asynchronous programming, building
responsive and non-blocking applications.
A large pool of JavaScript developers available in the job market,
As compare to other programming language
JavaScript is based on open web standards, making it accessible
and transparent. ECMA
JavaScript can easily integrate with other web technologies like
HTML and CSS, making it an integral part of the web
development stack
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
11. Sample Program
<html>
<body>
<h2>What Can JavaScript Do?</h2>
<p id=“hellodemo">JavaScript can change HTML content.</p>
<script>
document.getElementById(“hellodemo").innerHTML = "Hello";
</script>
</body>
</html>
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
12. How do you declare variables in JavaScript?
Variables can be declared using var, let, or const followed by the
variable name. For example
var x = 15;
let x = 5;
const x = 5;
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
13. What is the difference between let, const, and var
for variable declaration?
var has function-level scope and can be redeclared within the
same function.
let and const have block-level scope and cannot be redeclared
within the same block.
const is used for variables that should not be reassigned.
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
14. Basic Syntax
Variables: Declare variables using var, let, or const.
var has function-level scope.
let and const have block-level scope.
const is used for constants..
JavaScript Mr. N. L. Shelake Department of Information Technology
15. Basic Syntax
Data types: JavaScript has dynamic types.
Primitive types: Number, String, Boolean, Undefined,
Null.
Reference types: Object, Array, Function.
JavaScript Mr. N. L. Shelake Department of Information Technology
16. Basic Syntax
Operators: Arithmetic, Comparison, Logical, Assignment,
Ternary.
Conditionals: if, else if, else, switch.
Loops: for, while, do...while, for...in, for...of.
JavaScript Mr. N. L. Shelake Department of Information Technology
17. Basic Syntax
Operators:
Arithmetic - + / * % ++ --
Assignment =, +=,-=,*=,/=
Comparison ==,!=, >, <, >=, <=,
Logical &&, ||, !
JavaScript Mr. N. L. Shelake Department of Information Technology
18. Basic Syntax
Operators: Arithmetic, Comparison, Logical, Assignment,
Ternary.
Conditionals: if, else if, else, switch.
Loops: for, while, do...while, for...in, for...of.
JavaScript Mr. N. L. Shelake Department of Information Technology
19. Basic Syntax
if (condition)
{
}
if (condition)
{
}
else
{
}
if (condition)
{
}
elseif
{
}
Else
{
}
If if else elseif
JavaScript Mr. N. L. Shelake Department of Information Technology
20. Basic Syntax
Operators: Arithmetic, Comparison, Logical, Assignment,
Ternary.
Conditionals: if, else if, else, switch.
Loops: for, while, do...while, for...in, for...of.
JavaScript Mr. N. L. Shelake Department of Information Technology
21. Basic Syntax
Switch switch(expression) {
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
}
JavaScript Mr. N. L. Shelake Department of Information Technology
22. Basic Syntax
<script> let day;
switch (new Date().getDay()) {
case 0: day = "Sunday"; break;
case 1: day = "Monday"; break;
case 2: day = "Tuesday"; break;
case 3: day = "Wednesday"; break;
case 4: day = "Thursday"; break;
case 5: day = "Friday"; break;
case 6: day = "Saturday";
}
document.getElementById(“sample").innerHTML = "Today is " + day;
</script>
JavaScript Mr. N. L. Shelake Department of Information Technology
23. Basic Syntax
Operators: Arithmetic, Comparison, Logical, Assignment,
Ternary.
Conditionals: if, else if, else, switch.
Loops: for, while, do...while, for...in, for...of.
JavaScript Mr. N. L. Shelake Department of Information Technology
24. Basic Syntax
<html>
<body>
<h1>Sample JavaScript Program</h1>
<p id=“sample"></p>
<script>
document.getElementById(“sample").innerHTML = "My First JavaScript";
</script>
</body>
</html>
JavaScript Mr. N. L. Shelake Department of Information Technology
25. Basic Syntax
<html>
<body>
<p id="demo"></p>
<script>
let x, y, z;
x = 5;
y = 6;
z = x + y;
document.getElementById("demo").innerHTML =
“addition is " + z + ".";
</script>
</body>
</html>
JavaScript Mr. N. L. Shelake Department of Information Technology
26. Basic Syntax
<html><body>
<h2>JavaScript For Loop</h2>
<p id="demo"></p>
<script>
let text = "";
for (let i = 0; i < 5; i++)
{
text += "The number is " + i + "<br>";
}
document.getElementById("demo").innerHTML = text;
</script>
</body> </html>
JavaScript Mr. N. L. Shelake Department of Information Technology
27. Basic Syntax
Output:
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript For Loop
The number is 0
The number is 1
The number is 2
The number is 3
The number is 4
28. Basic Syntax
<html>
<body>
<h1>Sample JavaScript Program</h1>
<p id="sample">Hi! JavaScript </p>
<button type="button"
onclick='document.getElementById("sample").innerHTML = "Hello
JavaScript!"'>Click Here</button>
</body> </html>
JavaScript Mr. N. L. Shelake Department of Information Technology
30. Embedding with JavaScript
Embedding JavaScript refers to the practice of including
JavaScript code within an HTML document.
This can be done in several ways to add interactivity,
dynamic behavior, or functionality to a webpage.
JavaScript Mr. N. L. Shelake Department of Information Technology
31. Embedding with JavaScript
Inline Script: You can embed JavaScript directly within
an HTML file using a <script> tag.
External Script: For larger JavaScript code or when you
want to reuse the same code across multiple pages, it's
common to place the code in an external JavaScript file
with a .js extension. You then reference this file in your
HTML using the <script> tag's src attribute.
JavaScript Mr. N. L. Shelake Department of Information Technology
32. Validation
Form validation used to usually take place at the server,
following client submission of all required data with a
click of the Submit button.
The server would have to send all the data back to the
client and ask that the form be resubmitted with accurate
information if the data entered by the client was missing
or inaccurate.
This was a very time-consuming procedure that used to
strain the server greatly.
JavaScript Mr. N. L. Shelake Department of Information Technology
33. Validation
JavaScript provides a way to validate form's data on the
client's computer before sending it to the web server. Form
validation generally performs two functions.
JavaScript Mr. N. L. Shelake Department of Information Technology
34. Validation
Basic Validation − First of all, the form must be checked
to make sure all the mandatory fields are filled in. It
would require just a loop through each field in the form
and check for data.
Data Format Validation − Secondly, the data that is
entered must be checked for correct form and value. Your
code must include appropriate logic to test correctness of
data.
JavaScript Mr. N. L. Shelake Department of Information Technology
35. Sample Demonstration
JavaScript program that calculates the area of a circle. Accept user
input radius, perform the calculation and display the result.
<html>
<head>
<title>Circle Area Calculator</title>
</head>
<body>
<h1>Circle Area Calculator</h1>
<label for="radius">Enter the radius of the circle:</label>
<input type="number" id="radius" placeholder="Enter radius">
<button onclick="calculateArea()">Calculate Area</button>
<p id="result"></p>
JavaScript Mr. N. L. Shelake Department of Information Technology
36. Sample Demonstration
<script>
function calculateArea()
{
const radius = parseFloat(document.getElementById('radius').value);
if (isNaN(radius) || radius <= 0)
{
document.getElementById('result').textContent = "Please enter a valid positive number for
the radius.";
return;
}
const area = Math.PI * Math.pow(radius, 2);
document.getElementById('result').textContent = `The area of the circle with radius $
{radius} is ${area.toFixed(2)}.`;
}
</script></body></html>
JavaScript Mr. N. L. Shelake Department of Information Technology
37. PHP
The term PHP is an acronym for PHP: Hypertext
Preprocessor.
PHP is a server-side scripting language designed
specifically for web development.
It is open-source which means it is free to download and
use. It is very simple to learn and use.
The files have the extension “.php”.
Web Design Mr. N. L. Shelake Department of Information Technology
38. PHP
Rasmus Lerdorf inspired the first version of PHP and
participated in the later versions.
It is an interpreted language and it does not require a
compiler.
PHP code is executed in the server.
It can be integrated with many databases such as Oracle,
Microsoft SQL Server, MySQL, PostgreSQL, Sybase, and
Informix.
Web Design Mr. N. L. Shelake Department of Information Technology
39. PHP
It is powerful to hold a content management system like
WordPress and can be used to control user access.
It supports main protocols like HTTP Basic, HTTP Digest,
IMAP, FTP, and others.
Websites like www.facebook.com and www.yahoo.com
are also built on PHP
Web Design Mr. N. L. Shelake Department of Information Technology
40. PHP
One of the main reasons behind this is that PHP can be
easily embedded in HTML files and HTML codes can also
be written in a PHP file.
The thing that differentiates PHP from the client-side
language like HTML is, that PHP codes are executed on
the server whereas HTML codes are directly rendered on
the browser.
PHP codes are first executed on the server and then the
result is returned to the browser
Web Design Mr. N. L. Shelake Department of Information Technology
41. PHP
Simple and fast
Efficient
Secured
Flexible
Cross-platform, it works with major operating systems
like Windows, Linux, and macOS.
Open Source
Powerful Library Support
Database Connectivity
Web Design Mr. N. L. Shelake Department of Information Technology
43. PHP Mr. N. L. Shelake Department of Information Technology
Syntax
<html>
<head>
<title>PHP Example</title>
</head>
<body>
<?php echo "Hello, World! This is PHP
code";?>
</body></html>
Output:-
Hello, World! This is PHP code
44. PHP Mr. N. L. Shelake Department of Information Technology
PHP Variables
Variables are "containers" for storing information
A variable can have a short name (like x and y) or a more
descriptive name (age, carname, total_volume).
PHP variable names are case-sensitive!
45. PHP Mr. N. L. Shelake Department of Information Technology
PHP Variables
Rules for PHP variables:
A variable starts with the $ sign, followed by the name of the
variable
A variable name must start with a letter or the underscore
character
A variable name cannot start with a number
A variable name can only contain alpha-numeric characters
and underscores (A-z, 0-9, and _ )
Variable names are case-sensitive ($age and $AGE are two
different variables)
46. PHP Mr. N. L. Shelake Department of Information Technology
PHP Example
<html> <body>
<?php
$txt = "Hello world!";
$x = 5;
$y = 10.5;
echo $txt;
echo "<br>";
echo $x;
echo "<br>";
echo $y;
?> </body> </html>
Hello world!
5
10.5
47. PHP Mr. N. L. Shelake Department of Information Technology
PHP Example
<html>
<body>
<?php
$temp = "HelloWorld";
echo "PHP First Program $temp!";
?>
</body>
</html>
PHP First Program HelloWorld!
48. PHP Mr. N. L. Shelake Department of Information Technology
PHP Example
<html>
<body>
<?php
$x = 5;
$y = 4;
echo "Addition is".($x + $y);
?>
</body>
</html>
Addition is 9
49. PHP Mr. N. L. Shelake Department of Information Technology
PHP Datatypes
PHP supports several data types that are used to represent
different kinds of values. Here are some of the commonly used
data types in PHP
Integers: Example: $number = 42;
Floats (Floating-point numbers): $floatNumber = 3.14;
Strings: $text = "Hello, PHP!";
Booleans: $isTrue = true;
Arrays: $fruits = array("apple", "orange", "banana");
NULL: $variable = NULL;
Constants: define("PI", 3.14);
50. PHP Mr. N. L. Shelake Department of Information Technology
Operator and Expression
Same as, discussed in JavaScript
Arithmetic Operators:
Addition (+): $sum = 5 + 3; // $sum is now 8
Subtraction (-): $difference = 7 - 4; // $difference is now 3
Multiplication (*): $product = 2 * 6; // $product is now 12
Division (/): $quotient = 10 / 2; // $quotient is now 5
Modulus (%): $remainder = 11 % 3; // $remainder is now 2
51. PHP Mr. N. L. Shelake Department of Information Technology
Operator and Expression
Same as, discussed in JavaScript
Assignment Operators:
Assignment (=): $variable = 10; // Assigns the value 10 to
the variable
Addition Assignment (+=), Subtraction Assignment (-=):
$x = 5;
$x += 3; // Equivalent to $x = $x + 3; // $x is now 8
52. PHP Mr. N. L. Shelake Department of Information Technology
Operator and Expression
Same as, discussed in JavaScript
Comparison Operators:
Equal (==): $result = (5 == 5); // $result is true
Identical (===): $result = (5 === "5"); // $result is false
Not Equal (!=): $result = (10 != 5); // $result is true
Not Identical (!==): $result = (10 !== "10"); // $result is true
Less than(<)
Greater than(>)
53. CSS Mr. N. L. Shelake Department of Information Technology
Operator and Expression
Same as, discussed in JavaScript
Logical Operators:
AND (&&): $result = (true && false); // $result is false
OR (||): $result = (true || false); // $result is true
NOT (!): $$result = !true; // $result is false
Increment and Decrement Operators
Increment (++): $counter = 5; $counter++; // $counter is now 6
Decrement (--): $counter = 5; $counter--; // $counter is now 4
54. PHP Mr. N. L. Shelake Department of Information Technology
Operator and Expression
Concatenation Operator::
Concatenation (.):
$string1 = "Hello";
$string2 = " World!";
$greeting = $string1 . $string2;
// $greeting is now "Hello World!"
55. PHP Mr. N. L. Shelake Department of Information Technology
Operator and Expression
In PHP, an expression is a combination of values, variables,
operators, and functions that, when evaluated, produces a
single value.
Expressions can be simple or complex, depending on the
operations involved.
$sum = 5 + 3; // Addition
$difference = 7 - 4; // Subtraction
$product = 2 * 6; // Multiplication
$quotient = 10 / 2; // Division
$remainder = 11 % 3; // Modulus
56. PHP Mr. N. L. Shelake Department of Information Technology
Control statements
if Statement:
The if statement is used for conditional execution of code.
<?php
$a = 10;
if ($a > 5) {
echo "a is greater than 5";
} else {
echo "a is not greater than 5";
}
?>
57. PHP Mr. N. L. Shelake Department of Information Technology
Control statements
While Loop:
The while loop executes a block of code as long as the
specified condition is true.
<?php
$i = 1;
while ($i <= 5) {
echo $i;
$i++;
} ?
58. PHP Mr. N. L. Shelake Department of Information Technology
Control statements
for Loop:
The for loop is used to iterate a statement or a block of
statements.
<?php
for ($i = 1; $i <= 5; $i++) {
echo $i;
}
?>
59. PHP Mr. N. L. Shelake Department of Information Technology
Control statements
foreach Loop::
The foreach loop is used for iterating over arrays.
<?php
$colors = array("red", "green", "blue");
foreach ($colors as $value) {
echo $value;
}
?>
60. PHP Mr. N. L. Shelake Department of Information Technology
Control statements
break and continue statement:
The break statement is used to exit a loop prematurely.
The continue statement is used to skip the rest of the code
inside a loop for the current iteration.
<?php
for ($i = 1; $i <= 10; $i++) {
if ($i == 5) {
break; // exit the loop when $i is 5
}
echo $i; } ?>
61. PHP Mr. N. L. Shelake Department of Information Technology
Hosting tool: XAMPP
XAMPP is a free, open-source cross-platform web server
solution stack package developed by Apache Friends. The
name "XAMPP" is an acronym for the components it bundles:
X - Cross-platform
A - Apache HTTP Server
M - MariaDB (or MySQL)
P - PHP
P - Perl
62. PHP Mr. N. L. Shelake Department of Information Technology
Hosting tool: XAMPP
XAMPP is a free, open-source cross-platform web server
solution stack package developed by Apache Friends. The
name "XAMPP" is an acronym for the components it bundles:
X - Cross-platform
A - Apache HTTP Server
M - MariaDB (or MySQL)
P - PHP
P - Perl
63. PHP Mr. N. L. Shelake Department of Information Technology
Hosting tool: XAMPP
Apache Web Server:
XAMPP includes the Apache HTTP Server, one of the most
widely used web servers globally. It provides a robust and flexible
platform for hosting websites and applications.
Database Support (MariaDB or MySQL):
MariaDB, a fork of MySQL, is the default database system
included in XAMPP. MySQL can also be used interchangeably.
PHP, Perl, and Other Programming Languages:
XAMPP supports PHP, a server-side scripting language widely
used for web development. Perl is also included, making it versatile
for various scripting needs.
64. PHP Mr. N. L. Shelake Department of Information Technology
Hosting tool: XAMPP
phpMyAdmin:
XAMPP comes bundled with phpMyAdmin, a web-based
administration tool for managing MySQL and MariaDB
databases.
Open Source and Cross-Platform:
XAMPP is open-source software, freely available for
Windows, Linux, and macOS. This cross-platform compatibility
makes it easy for developers to work on different operating
systems.
65. PHP Mr. N. L. Shelake Department of Information Technology
Hosting tool: XAMPP
Easy Installation and Configuration:
XAMPP has a straightforward installation process, making it
suitable for both beginners and experienced developers.
Configuration files are easily accessible for customization.
Development and Testing Environment:
XAMPP is designed for creating a local development
environment, allowing developers to test and debug their web
applications before deploying them to a live server.
Wide Adoption:
Due to its ease of use and comprehensive features, It is widely
adopted by developers and used in educational.
66. PHP Mr. N. L. Shelake Department of Information Technology
MySQL
MySQL is an open-source relational database management system
(RDBMS) that is widely used for managing and organizing data.
It is a key component of the LAMP (Linux, Apache, MySQL,
PHP/Python/Perl) and MEAN (MongoDB, Express.js, AngularJS,
Node.js) stacks, making it a popular choice for web applications.
Components of MySQL:
MySQL Server - manages databases, processes queries, and controls
access
MySQL Workbench: allows developers to design, model
MySQL Shell: enables administrators and developers
MySQL Connector: Provides connectors for various programming
languages
67. PHP Mr. N. L. Shelake Department of Information Technology
MySQL
MySQL is a powerful, reliable, and widely used relational
database management system.
Its open-source nature, scalability, and strong community support
make it a preferred choice for developers and businesses looking
for a robust and efficient database solution.
68. PHP Mr. N. L. Shelake Department of Information Technology
Sample Questions
Write an PHP program that prompts the user to enter two numbers, calculates their Division and display
it.
<html>
<head><title>Division Calculator</title></head>
<body>
<h1>Division Calculator</h1>
<form method="post" action="">
<label for="num1">Enter the first number:</label>
<input type="number" step="any" id="num1" name="num1" required>
<br><br>
<label for="num2">Enter the second number:</label>
<input type="number" step="any" id="num2" name="num2" required>
<br><br>
<button type="submit">Calculate Division</button>
</form>
69. PHP Mr. N. L. Shelake Department of Information Technology
Sample Questions
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST")
{
$num1 = $_POST["num1"];
$num2 = $_POST["num2"];
if ($num2 == 0)
{
echo "<p style='color: red;'>Error: Division by zero is not allowed.</p>";
}
else {
$result = $num1 / $num2;
echo "<p>The result of dividing $num1 by $num2 is: " . round($result, 2) . "</p>";
}
}
?> </body> </html>
70. PHP Mr. N. L. Shelake Department of Information Technology
Sample Questions
Question 1 a) 5 Marks
b) 5 Marks
Question 2 a) 5 Marks
b) 5 Marks
Question 3 a) 5 Marks
b) 5 Marks
Total Marks 30 Marks
Total Time 1.5 Hours