Operating Web and Java Notes
Operating Web and Java Notes
create their profile and provide them with a username and special characters. This decreases ability of automated
password. The information thus remains secure until their attacks by trying different character combinations.
password is secure. Be cautious not to leave passwords around and do not share
them with friends.
Never use names of near and dear ones as passwords.
E-Governance of Communications and Information Technology, manages the
The government’s ability to give citizens access to information is portal.
goidirectory.nic.in
made easier by the usage of ICT. The government has established
ICT-enabled services, such as the registration of birth and death All websites from the Indian Government, from all levels and
throughout all sectors, can be accessed through this portal. Sites
certificates, the purchase of train tickets, the submission of RTI
requests, etc. for several Indian states and union territories are also included, as
are those for legislative and judicial branches of government. It also
Initiative
offers details about various industries, including agriculture and
The national satellite-based computer network, NICNET, was
education.
launched in India in 1987, providing the primary impetus for e-
Operating Web Class 12 Notes
Governance. The District Information System of the National
Informatics Center (DISNIC) programme, which aims to Online Shopping and Bill payments
computerise all district offices across the nation, was then An online shopping application allows customers to make
introduced in 1990. purchases of goods over the Internet. The customer can go to a
The Department of Electronics and Information Technology (DEITY) number of websites to conduct online purchasing.
and Department of Administrative Reforms and Public Grievances Benefits of Online Shopping
(DAR&PG) created the National e-Governance Plan (NeGP) in 2006, Online shopping is useful in many situations. Here, we discuss
which has helped the e-Governance process. some of the situations :
Operating Web Class 12 Notes The customer does not have enough time to visit a store
E-Governance Sites and purchase goods.
Some of the Central initiatives for e-governance include: The store where you will get what you need may be very far
National e-Governance Plan (NeGP) off.
National e-Governance Division (NeGD) The money spent in travelling to the store, parking the car,
e-Governance Infrastructure etc., is much more than overhead if any in online shopping.
Mission Mode Projects The product you may require is not available at your market.
Citizens Services You want to send a product to your friend; you can do
Business Services online shopping and provide the receiver’s address. You
Government Services save your time and energy for delivery of the product to
Projects and Initiatives your friend’s house located in a different city.
R&D in e-Governance You do not have time during the shopping hours. You can
if( (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) sum = first + second;
System.out.println(c + " is an alphabet"); first = second;
else second = sum;
System.out.println(c + " is not an alphabet"); }
} }
} }
Fundamentals of Java Programming Class 12 Questions and
Output - Answers
a is an alphabet 25. Write a program to check whether the string is palindrome or
Fundamentals of Java Programming Class 12 Questions and not.
Answers class Example {
Looping statement related program – public static void main(String[] args) {
23. Write a program to Find Factorial of a Number String str = "MADAM", r_str = "";
n=1*2*3*4*…*n int strLength;
public class Example {
int strLength = str.length();
public static void main(String[] args) {
for (int i = (strLength - 1); i >=0; i--) {
r_str = r_str + str.charAt(i); 27. Write a program to design simple calculator using switch
} statement.
import java.util.Scanner;
if (str.toLowerCase().equals(r_str.toLowerCase())) { class Example {
System.out.println(str + " is a Palindrome"); public static void main(String[] args) {
}
else { char ch;
System.out.println(str + " is not a Palindrome"); Double number1, number2, result;
}
} Scanner input = new Scanner(System.in);
}
System.out.println("Choose an operator: +, -, *, or /");
Output - System.out.println("1. +");
MADAM is a Palindrome System.out.println("2. -");
Fundamentals of Java Programming Class 12 Questions and System.out.println("3. *");
Answers System.out.println("4. /");
26. Write a program to check whether a number is prime or not.
public class Example { System.out.println("Select choice");
int len=str.length();
System.out.println(len);
}
}
Output -
6
32. Write a program to convert the string in uppercase format.
public class Example {
public static void main(String[] args) {
String str="anurag";
String upper=str.toUpperCase();
System.out.println(upper);
}
}
Output -
ANURAG
33. Write a program to convert the lowercase string to uppercase
string.
public class Example {
public static void main(String[] args) {
String str="ANURAG";
String lower=str.toLowerCase();
System.out.println(lower);