Saturday, January 28, 2023

12th Computer Science || Practical Lists || Class 12 || Science & Commerce!l

 C++ Programm Practicals Lists


1) To perform arithmetical operation (+,*,-,/,%)

2) To find area and circumference of circle.

3) To find simple interest.

4) a) To swap the two numbers using third variable.

4) b) To swap the two numbers without using third variable.

5) To convert the temperature in Fahrenheit to temperature in celsius.

6) To find input number is positive or negative.

7) To find input number is even or odd.

8) To find the greatest number among two variable.

9) To find input year is leap year or not leap year.

10) To find input age is eligible for vote or not.

11) To display days of week of given input numbers.

12) To find input character is vowel or consonant.

13) To find marks obtained and percentage of five subject and display grade.

Percentage | Grade

>=80   | A+

>=60   | A

>=45   | B

<45    |  C

14) To find the factorial of given number.

15) To find the sum of series:-

a) 1 + a + a2 + a3 + a4 + ....+an

b) 1 + 2 + 3 + 4 + .... + n

c) 1 + 1/2 + 1/3 + 1/4 + .... + 1/n

16) To display the pattern :-

a) // for Solution Click

1 

1 2

1 2 3

1 2 3 4

1 2 3 4 5


b) // for Solution Click

1 

2 2

3 3 3

4 4 4 4

5 5 5 5 5 

c) // for Solution Click

1

2 3

4 5 6 

7 8

9

17) To find minimum or smallest number of given arrays values. 


Tuesday, January 17, 2023

12th CMS || Communication and Network Concepts || Questions Lists!

 Q1) What do you mean by Computer Network? Explain the types of Computer Network.

Q2) Write the advantage and disadvantage of Computer network.

Q3) Explain the transmission Media and it's types with diagram.

Q4) Write the difference between following:-

a) LAN and WAN   b) Guided Media and Unguided Media

Q5) What do you mean by Network Topology? Explain its types.

Q6) Define the following Network devices:-

1) Modem 2) Repeater 3) Hub 4) Switch 5) Bridge 6) Router 7) Gateway 8) Network Card

Q7) What do you mean by Protocol? Explain the following types of  Protocol.

Q8) Explain function of hub and router. 

Ans:

Hub: A hub contains multiple ports. When a packet arrives at one port, it is copied to all the ports 

of the hub. When the packets are copied, the destination address in the frame does not change to a 

broadcast address. It does this in a rudimentary way, it simply copies the data to all of the Nodes 

connected to the hub. 

2. Router : routers are networking devices that forward data packets between networks using 

headers and forwarding tables to determine the best path to forward the packets

Q9) Expand the following terms 

 (i) URL (ii) ISP (iii) DHTML (iv) CDMA


10) Wireless/Mobile Computing

Wireless communication is simply data communication without the use of landlines. Mobile 

computing means that the computing device is not continuously connected to the base or central 

network.

1. GSM(Global System for Mobile communication): it is leading digital cellular system. 

In covered areas, cell phone users can buy one phone that will work any where the standard is 

supported. It uses narrowband TDMA, which allows eight simultaneous calls on the same radio 

frequency.

2. CDMA(Code Division Multiple Access): it is a digital cellular technology that uses 

spread-spectrum techniques. CDMA does not assign a specific frequency to each user. Instead 

,every channel uses the full available spectrum. 

3. WLL(Wireless in Local Loop) : WLL is a system that connects subscribers to the public 

switched telephone network using radio signals as a substitute for other connecting media. 

4. Email(Electronic Mail): Email is sending and receiving messages by computer.

5. Chat: Online textual talk in real time , is called Chatting.

6. Video Conferencing: a two way videophone conversation among multiple participants is 

called video conferencing.

7. SMS(Short Message Service): SMS is the transmission of short text messages to and 

from a mobile pone, fax machine and or IP address.

8. 3G and EDGE: 3G is a specification for the third generation of mobile communication of 

mobile communication technology. 3G promises increased bandwidth, up to 384 Kbps when a 

device is stationary.

EDGE(Enhanced Data rates for Global Evolution ) is a radio based high speed mobile 

data standard.

11) NETWORK SECURITY CONCEPTS

Protection methods 

1 Authorization - Authorization confirms the service requestor's credentials. It determines if 

the service requestor is entitled to perform that operation. 

2 Authentication - Each entity involved in using a web service the requestor, the provider 

and the broker(if there is one) - is what it actually claims to be.

3 Encryption – conversion of the form of data from one form to another form.

4 Biometric System - involves unique aspect of a person's body such as Finger-prints, 

retinal patterns etc to establish his/her Identity.

5 Firewall - A system designed to prevent unauthorized access to or from a private network is called firewall. it can be implemented in both hardware and software or combination or both.

12) WEB SERVERS Terminology.

WWW (WORLD WIDE WEB)

It is a small part of Internet. It is a kind of Application of internet.It is a set of protocols that allows us 

to access any document on the Net through a naming system based on URLS. Internet was mainly 

used for obtaining textual information. But post-WWW the internet popularity grew tremendously 

because of graphic intensive nature of www.

Attributes of WWW

(i) User friendly- www resources can be easily used with the help of browser.

(ii) Multimedia documents-A web page may have graphic, audio, video, and animation etc at a 

time.

(iii) Hypertext and hyperlinks-the dynamic links which can move towards another web page is 

hyperlink.

(iv) Interactive -www with its pages support and enable interactivity between users and servers.

(v) frame-display of more than one section on single web page.

Web server- It is a WWW server that responds to the requests made by web browers.

 e.g. : Apache, IIS, PWS(Personal web server for Windows 98).

Web browser- It is a WWW client that navigates through the World Wide Web and displays web 

pages. E.g.: FireFox Navigator, Internet Explorer etc. 

Web sites- A location on a net server where different web pages are linked together by dynamic 

links is called a web site. Each web site has a unique address called URL.

Web page - A document that can be viewed in a web browser and residing on a web site is a web 

page.

Home page- a web page that is the starting page and acts as an indexed page is home page.

Web portal - that facilitates various type of the functionality as web site. for e.g. 

www.yahoo.com,www.rediff.com

Domain name- An internet address which is a character based is called a Domain name. Some 

most common domains are com, edu, gov, mil, net, org, and co.Some domain names are location 

based also. For e.g. au for Australia, a for Canada, in for India etc.

URL- A URL (uniform resource locator) that specifies the distinct address for each resource on the 

internet.e.g.http://encycle.msn.com/getinfo/stypes.asp

Web hosting - means hosting web server application on a computer system through which 

electronic content on the internet is readily available to any web browser client. 

HTML -

It stands for Hyper Text Markup Language that facilitates to write web document that can be 

interpreted by any web browser. It provide certain tags that are interpreted by the browser how to

display and act with the text, graphics etc. tags are specified in <>.

12th CMS || Database Concept || Questions Lists!

 Q1) What is a Database System? What it’s need?

Q2) Define the following terms:-

a) Data    b) Information     c) DBMS   d) RDBMS

Q3) How many types of users works on database system?

Q4) What are various levels of data abstraction in database system?

Q5) How many different types of data independence?

Q6) What are various supported data models of database system?

Q7) Define the following relational model terminology:-

a)Tuple   b)Attribute  c)Degree  d)Cardinality e)Relation   f)Field   g)Table  h)File

Q8) Explain the following types of key with example:-

a)Primary Key b)Candidate Key c)Alternate Key d)Foreign Key

Q9) What do you mean by DBA? Explain the role of DBA.

Q10) What do you mean by SQL? Categorised the following SQL Condition.

Q11) Define the terms:

i. Database Abstraction

Ans: Database system provides the users only that much information that is required

by them, and hides certain details like, how the data is stored and maintained in database at hardware level. This concept/process is Database abstraction.

ii. Data inconsistency

Ans: When two or more entries about the same data do not agree i.e. when one of

them stores the updated information and the other does not, it results in data inconsistency in the database.

iii. Conceptual level of database implementation/abstraction

Ans: It describes what data are actually stored in the database. It also describes the relationships existing among data. At this level the database is described logically in terms of simple data-structures.

iv. Primary Key

Ans : It is a key/attribute or a set of attributes that can uniquely identify tuples within the relation.

v. Candidate Key

Ans : All attributes combinations inside a relation that can serve as primary key are candidate key as they are candidates for being as a primary key or a part of it.

vi. Relational Algebra

Ans : It is the collections of rules and operations on relations(tables). The various operations 

are selection, projection, Cartesian product, union, set difference and intersection, and joining of relations.

vii. Domain

Ans : it is the pool or collection of data from which the actual values appearing in a given column are drawn.


Q12) What is relation? What is the difference between a tuple and an attribute?

Q13) Define the following terminologies used in Relational Algebra:

(i) selection (ii) projection (iii) union (iv) Cartesian product

Q14) What are DDL and DML?

Q15) Differentiate between primary key and candidate key in a relation?

Q16) What do you understand by the terms Cardinality and Degree of a relation in relational database?

Q17) Differentiate between DDL and DML. Mention the 2 commands for each category.

Q18) What is a Constrains? Explain the different types of constraints.



Sunday, June 12, 2022

Class-11 || Algorithm of Simple Interest

 Simple Interest Algorithm

Step1 :- Start

Step2 :- store 10 into P, 2 into N, 3 into R

Step3 :- calculate si=P*N*R/100

Step4 :- Print the value of Simple Interest

Step5 :- Stop


Friday, April 15, 2022

Human Science || Health Care || About Physiotherapy Concept!

Physiotherapy as described by World Physiotherapy is a health care profession concerned with human function and movement and maximising physical potential.


Physical therapy (PT), also known as physiotherapy, is one of the allied health professions.

It is provided by physical therapists who promote, maintain, or restore health through physical examination, diagnosis, prognosis, patient education, physical intervention, rehabilitation, disease prevention, and health promotion.


Sunday, January 16, 2022

Class-09 | Chapter-2 | The Adventures of Toto | Moment | Questions Answer Solutions!

Questions and Answers

Q.1. How does Toto come to grandfather’s private zoo ?

 Ans. A tanga-driver used to keep a little’red monkey tied to a feeding trough. Grandfather buys the monkey from the tanga-driver for five rupees. He brings it home and names it Toto. In this way, Toto comes to grandfather’s private zoo.

प्रश्न 1. टोटो दादाजी के निजी चिड़ियाघर में कैसे आता है ?

 उत्तर। एक तांगा-चालक एक छोटे से लाल बंदर को चारागाह से बांधकर रखता था। दादाजी ने बंदर को तांगा-चालक से पांच रुपये में खरीदा। वह इसे घर लाता है और इसे टोटो नाम देता है। इस तरह टोटो दादा के निजी चिड़ियाघर में आ जाता है।

Q.2. “Tota was a pretty monkey.” In what sense is Toto pretty?

 Ans. Toto is a pretty monkey. He has bright eyes which always sparkle with mischief. He has white teeth like pearls. He often displays them in a smile. He has a long tail which serves him as a third hand.


प्रश्न 2. "तोता एक सुंदर बंदर था।" टोटो किस अर्थ में सुंदर है?
 उत्तर। टोटो एक सुंदर बंदर है। उनकी तेज आंखें हैं जो हमेशा शरारतों से चमकती रहती हैं। उसके मोती जैसे सफेद दांत हैं। वह अक्सर उन्हें एक मुस्कान में प्रदर्शित करता है। उसकी एक लंबी पूंछ है जो उसे तीसरे हाथ के रूप में कार्य करती है।

Q.3. Why does grandfather take Toto to Saharanpur and how? Why does the ticket collector insi on calling ‘Toto a dog? 

Ans. Tota did not allow other animals to sleep in peace at home. Secondly, his presence in the house was still a secret. So grandfather takes Toto to Saharanpur with him. He takes him in a train. The ticket-collector wants grandfather to pay for the monkey’s ticket. So he insists on calling him a dog.

प्रश्न 3. दादा टोटो को सहारनपुर क्यों ले जाते हैं और कैसे? टिकट कलेक्टर 'टोटो को कुत्ता' कहने पर क्यों जोर देता है?

उत्तर। तोता घर में दूसरे जानवरों को चैन से नहीं सोने देता था। दूसरे, घर में उनकी उपस्थिति अभी भी एक रहस्य थी। तो दादा टोटो को अपने साथ सहारनपुर ले जाते हैं। वह उसे ट्रेन में ले जाता है। टिकट-कलेक्टर चाहता है कि दादाजी बंदर के टिकट के लिए भुगतान करें। इसलिए वह उसे कुत्ता कहने की जिद करता है।

Q.4. How does Toto take a bath? Where has he learnt to do this? How does Toto almost boil himself alive?

Ans. During cold winter Toto is habitual of taking bath in hot water. Firstly he tests the temperature of the water. Then he carefully steps into the bath. He has learnt to do this by watching grandfather taking bath in the same way. One day he enters a large kitchen kettle which had been left on the fire to boil for tea. Soon the water starts boiling. Finding it cold outside, he starts jumping. Grandmother arrives and takes him out of the kettle half boiled.

प्रश्न 4. टोटो कैसे नहाता है? उसने ऐसा करना कहाँ सीखा है? टोटो लगभग खुद को जिंदा कैसे उबाल लेता है?

उत्तर। ठंड के मौसम में टोटो को गर्म पानी से नहाने की आदत होती है। सबसे पहले वह पानी के तापमान की जांच करता है। फिर वह ध्यान से स्नान में कदम रखता है। दादाजी को इसी तरह नहाते देख उसने ऐसा करना सीखा है। एक दिन वह एक बड़ी रसोई की केतली में प्रवेश करता है जिसे चाय के लिए उबालने के लिए आग पर छोड़ दिया गया था। जल्द ही पानी उबलने लगता है। बाहर ठंड देखकर वह कूदने लगता है। दादी आती हैं और उन्हें आधी उबली केतली से बाहर निकालती हैं।

Q.5. Why does the author say, `Toto was not the sort of pet we could keep for long’?
 
 Ans. Toto was a very mischievous monkey. He had been doing many topsy-turvy-things irr the house. He was always tearing things to pieces. He had broken many costly dishes in the house. The author finds it difficult for his family to afford the frequent joss of dishes. So he says, `Toto was not the sort of pet we could keep for long.’

प्रश्न 5. लेखक क्यों कहता है, 'टोटो उस तरह का पालतू जानवर नहीं था जिसे हम लंबे समय तक रख सकते थे'?

 उत्तर। टोटो बहुत शरारती बंदर था। वह घर में कई उलट-पुलट कर रहा था। वह हमेशा चीजों को टुकड़े-टुकड़े कर देता था। उसने घर में कई कीमती बर्तन तोड़े थे। लेखक को अपने परिवार के लिए व्यंजनों का बार-बार आनंद उठाने में कठिनाई होती है। तो वे कहते हैं, 'टोटो उस तरह का पालतू जानवर नहीं था जिसे हम लंबे समय तक रख सकें।

Class-11 | C++ Concept | Computer Science | Questions Answer Solutions!

 1. What is the purpose of a header file in a program?

Ans. Header files provide function prototypes, definitions of library functions, declaration of data types and constants used with the library functions.

2. What main integer types are offered by C++?

Ans. C++ offered three types of integers : short, int and long. Each comes in both signed and unsigned versions.

3. Explain the usage of following with the help of an example:

(i) constant (ii) reference (iii) variable (iv) union

Ans. (i) constant: The keyword const can be added to the declaration of an object to make that object a constant rather

than a variable. Thus, the value of the named constant cannot be altered during the program run. The general form of

constant declaration is as follows: const type name = value. Example: const int a=10;

(ii) reference: A reference is an alternative name for an object. 

A reference variable provides an alias for a previously defined variable. 

The general form of declaring a reference variable is: 

Type &ref-var = var-name;

where type is any valid c++ data type, ref-var is the name of reference variable that will point to variable denoted by

var-name. Example:

int total;

int &sum=total;

total=100;

cout<<"Sum="<<sum<<"\n";

cout<<"Total="<<total<<"\n";

In above code both the variables refer to the same data object in the memory, thus, print the same value.


(iii) variable: Variables represent named storage locations whose value can be manipulated during program run.

Variables are generally declared as: type name; where type is any C++ data type and name is the variable name. A

variable can be initialized either by a separate assignment statement following its declaration as shown below:

int age; age = 10;

(iv) union: A union is a memory location that is shared by two or more different variables, generally of different types

at different times. Defining a union is similar to defining a structure. Following of declaration declares a union share

having two variables and creates a union object cnvt of union type share:

union share{

int i;

char ch;

};

union share cnvt;

union can referred to the data stored in cnvt as either an integer or character. To assign the integer 20 to element i of

cnvt, write - cnvt.i = 20; 

To print the value of element ch of cnvt,

 write - cout<<cnvt.ch;

5. What is the difference between fundamental data types and derived data types? Explain with examples.

Ans. Fundamental data types                                    

1) These are the data types that are not composed of any other data type.

2) There are five fundamental data types: char, int, float, double and void.

3) Example: int a=10; float b; 

 Derived data types

1) These are tha data types that are composed of fundamental data types.

2) These are: array, function, pointer, reference, constant, class, structure, union and enumeration.

3) Example: float marks[50]; Const int a=5;

5. How many ways can a variable be initialized into? Give examples for each type of initialization.

Ans. A variable can be initialized into two ways as following:

(i) By separate assignment statement: Example: int age;

age = 10;

(ii) At the time of declaration: Example: int age = 10;

(iii) Dynamic initialization: Example: float avg = sum/count;

6. How are the following two statements different?

char pcode = 75;

char pcode = ‘K’;

Ans. The first statement treats 75 as ascii value and converts it into its relative character ‘K’ whereas second statement

stores character ‘K’ and does not make any conversion.

7. How are the following two statements different?

char pcode = 75; short pcode = 75;

Ans. The first statement treats 75 as ascii value and converts it into its relative character ‘K’ whereas second statement

treats 75 as number.

8. If value is an identifier of int type and is holding value 200, is the following statement correct?

char code = value

Ans. VALID Statement

9. The data type double is another floating-point type. Then why is it treated as a distinct data type?

Ans. The data type double is treated as a distinct data type because it occupies twice as much memory as type float, and

stores floating-point numbers with much larger range and precision. It stands for double precision floating-point. It is

used when type float is too small or insufficiently precise.

10. Explain the impact of access modifier const over variables. Support your answer with examples.

Ans. The access modifier const can be added to the declaration of an object to make that object a constant rather than a

variable. Thus, the value of the named constant cannot be altered during the program run whereas the value of the

variable can be changed during the program run.

Example: void main()

{

const int a=10;

int b=20;

a++;

cout<<"a="<<a;

b++;

cout<<"b="<<b;

}

11. What are arithmetic operators in C++? Distinguish between unary and binary arithmetic operators. Give examples for each of them.

Ans. Following are the arithmetic operators in C++: addition(+), subtraction(-), multiplication(*), division(/) and reminder(%).

Unary arithmetic operators 

1) Unary Operators has only one operand.

2) The Unary Operators are ++,--,&,*,+, - etc.

3) Example: short x = 987; x = -x;

Binary arithmetic operators

1) Binary operators (”bi” as in “two”) have two operands

2) The +, -, &&, <<, ==, >> etc. are binary operators.

3) Example: int x, y = 5, z;

z = 10;

x = y + z;


12. What is the function of increment/decrement operators? How many varieties do they come in? How are these two varieties different from one another?

Ans. The increment operator, ++ adds 1 to its operand and the decrement operator -- subtract 1 from its operands.

The increment/decrement operator comes in two varieties as following: (i) Prefix version and (ii) Postfix version:

Prefix version 

1) Performs the increment or decrement operation before using the value of the operand.

2) 

Example: sum = 10;

ctr = 5;

sum = sum + (++ctr);


Postfix version

1) First uses the value of the operand in evaluating the expression before incrementing or decrementing the operand’s value.

2)

Example: sum = 10;

ctr = 5;

sum = sum + (ctr++);

Computer Objective Questions || Practice Set || Shishu Varg || Class 4 & 5

1) What is the first mechanical calculating device of the world? Answer:- Abacus Q2) Who is Know as the world's First Programmer...