Posts

Showing posts from 2021

Adding JavaScript To HTML Page

 JavaScript is applied to HTML page in a similar manner like CSS. Whereas CSS uses <link> elements to apply external stylesheets and <style> elements to apply internal stylesheets to HTML, JavaScript only needs one friend in the world of HTML, the <script> element. There are three different ways using which user can add JavaScript into webpage. 1. Inline JavaScript 2. Internal JavaScript 3. External JavaScript   Inline JavaScript JavaScript written within the HTML element with the event handling attribute then it is called as inline JavaScript. This method is used when we have to call a function in the HTML event handler attribute. Many cases where we have to add JavaScript directly are onclick, onmouseover, onload etc. In this method, JavaScript can be added in HTML directly without using <script> tag. <HTML> <HEAD> <TITLE>Inline JavaScript</TITLE> <//HEAD> <BODY> <form> <Input type="Button" value="Cli...

JavaScript

Image
 J avaScript is a light weight object oriented programming language used for scripting the webpages. It is an interpreted and full fledge programming language, used primarily by web browsers to provide dynamic and interactive experience for the end-user. Most of the functions and applications that make the Internet indispensable to modern life are coded in some form of JavaScript.  Today, JavaScript can execute not only in the browser, but also on the server, or actually on any device that has a special program called the JavaScript engine. A JavaScript engine is a computer program that executes JavaScript(JS) code. Uses of JavaScript: 1. Adding interactivity to website : If you want a website to be more than a static page of text, you will need to do some Java Scripting. 2. Developing mobile applications : JavaScript isn't just for website, it's used for those applications you have on your phone and tablet as well. 3. Creating web browser-based games : Ever played a game dire...

PHP: Hardware and Software

Image
 T alking to hardware requirements, it has been seen that PHP sucessfully run on 100 MHz Pentinum machine running Linux and Windows NT , respectively. Performance of such machine was fine for use as a personal development environment. A site expected to receive thousands of requests a day would need faster hardware, of course. Although more resources are needed when comparing a PHP-powered site to a flat HTML site, the requirements are not dramatically different. PHP work on any types of hardware whether it is Intel or , Power PC and Sparc CPUs. Regarding to operating system PHP run smoothly on Windows NT and its successors, but later version of PHP requires at least Windows 2008/Vista. For UNIX operating systems, PHP works well with Linux and Solaris, as well as others. If you have chosen a PPC based system such as a Macintosh, you may chooose Linux PPC, a version of Linux. You may pursue the commercial WebTen Web Server that runs in the Macintosh OS. Chad Cunningham has contribut...

PHP

Image
 PHP is a widely used open source general purpose Server side scripting language that is especially suited for web development and can be embedded into HTML. PHP  that earlier stood for Personal Home Pages is a widely used open source general purpose scripting language and so, now known as Hypertext Preprocessor. PHP is typically used as a server side language(as opposed to a language like JavaScript that's generally executed on the client side).                                    PHP is used to develop dynamic websites or web applications. PHP scripts can only be interpreted on a server that has PHP installed. The client computers accessing the PHP scripts require a web browser only. A PHP file contains PHP tags and ends with the extensions ".php". PHP is known as a server sided language. That's because the PHP doesn't get executed on your computer, but on the computer you...

Greatest number among any 10 numbers

Image
 

What is Function? Write a program to demonstrate any two string function using C.

Image
  A function is a  block of statements that performs a specific task .  In c, we can divide a large program into the basic building blocks known as function. The function contains the set of programming statements enclosed by {}. A function can be called multiple times to provide reusability and modularity to the C program. In other words, we can say that the collection of functions creates a program. The function is also known as  procedure  or  subroutine  in other programming languages.

What is Array in C? Write a program to sort numbers in descending order.

  An array is a collection of data items, all of the same type, accessed using a common name. A one-dimensional array is like a list;  A two dimensional array is like a table;  The C language places no limits on the number of dimensions in an array, though specific implementations may. #include <stdio.h> void main ( ) {   int number [ 30 ] ;   int i , j , a , n ; printf ( "Enter the value of N \n " ) ; scanf ( "%d" , & n ) ;   printf ( "Enter the numbers \n " ) ; for ( i = 0 ; i < n ; ++ i ) scanf ( "%d" , & number [ i ] ) ;   /* sorting begins ... */   for ( i = 0 ; i < n ; ++ i ) { for ( j = i + 1 ; j < n ; ++ j ) { if ( number [ i ] < number [ j ] ) { a = number [ i ] ; number [ i ] = number [ j...

Difference on Break and Continue Statement in C

Image
 

Policy To GONUJI

  Privacy Policy Narendra Kumar Gupta built the GONUJI app as a Free app. This SERVICE is provided by Narendra Kumar Gupta at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at GONUJI unless otherwise defined in this Privacy Policy. Information Collection and Use For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information, including but not limited to Kum...

Love and Romance

Image
  We've all experienced love. We've loved (and been loved by) parents, brothers, sisters, friends, even pets. But romantic love is different. It's an intense, new feeling unlike any of these other ways of loving Why Do We Fall in Love? Loving and being loved adds richness to our lives. When people feel close to others they are happier and even healthier. Love helps us feel important, understood, and secure. But each kind of love has its own distinctive feel. The kind of love we feel for a parent is different from our love for a baby brother or best friend. And the kind of love we feel in romantic relationships is its own unique type of love. Our ability to feel romantic love develops during adolescence. Teens all over the world notice passionate feelings of attraction. Even in cultures where people are not allowed to act on or express these feelings, they're still there. It's a natural part of growing up to develop romantic feelings and sexual attractions to...

Important Questions For Grade XII Management Computer Science Students

Image
1. Program to convert Celsius to Fahrenheit. 2. Program to convert Nepali Rupees to Indian Rupees. 3. Define Data types used in C programming. 4. What are the advantages of Functions? 5. Difference between Structure and Union. 6. Write a program to reverse a number. 7. Make a program to decide whether a number is palindrome or not. 8. Program to add two different matrix. 9. Define Recursion. Give an example of Recursive function. 10. Write a program to print Fibonacci Series.