Sunday, October 21, 2018

Dashain vibes(2075)

MY EXPERIENCE OF DASHAIN 2075

As holidays knocked my door I was very happy  As we had planned to visit my hometown “kavre” which is no less than a paradise.I couldn’t wait to be there and enjoy the natural beauty of the place. The very next of the vacation we left for our hometown and the journey was very nice. We left to our hometown right next day of gatasthapana.Me my brother and sister went in bus.After we finally reached there I was very excited to meet and talk to my mother after long time.Days passed so fast and we realized that tomorrow was the seventh auspicious of the great festival Dashain i.e. Fulpati. My mom started all the preparations and I was all busy with my cousins and friends.


The very next day i.e. Fulpati, early in the morning we got a phone call and unexpectedly got the bad news that was one of our relative expired. It was so sad to hear this news as it was dreadful feeling for us. Yet, we knew we could do nothing and we were okay. The same way other days passed and we did nothing special as there was no happiness between us. Though it was a great gathering of our family. It was so interesting to hear the political gossips when everyone was together. Yet it was really good experience to be to my beautiful hometown “kavre”. We got to meet everyone almost after a year and enjoyed a lot.So we came back to ktm right after tika.I wanted to make t memorable as I had done lots of shopping for this but god had othr plan nevertheless we enjoyed a lot.


Thursday, October 5, 2017

Dashain special 2074

MY EXPERIENCE OF DASHAIN 2074



Finally the day came for which I was very excited. This time I was very restless about when my exam will finish because my exam was till fulpati and I was eagerly waiting to go to village to visit my mom. My sister and my brother were waiting for my exam to finish. Finally one day before fulpati I went to village with my sister and father. That day I was very tired so we did not do anything interesting except for playing swing.



On the day of fulpati I woke up early and went to the house in the village where jamara was kept and did jamara puja. We cut goat in our own home and had delicious meat. Me and my mother went to devithan
and also made Prasad. WE enjoyed the day by having meat while listening and dancing in Dashain songs. We also cleaned kalikathan for puja.

On the day of Astami we woke up early and made Prasad .today we went to kalikathan for puja which is next to our house. After puja we washed clothes bath and cleaned our house. We played swing and enjoyed a lot.

On the day of Nawami we again made Prasad in the
morning and went to kalikathan for puja, in our home we cut goat and had meat. We all family members were together so we enjoyed a lot.

Finally the day of tika I was very excited for it. Today also we did puja and my father brought jamara. As tika was to be taken in 11:55 only so we did some house chores and became ready for tika. For tika we all went to grandfather’s
brother’s house and put tika in 11:55.the whole day went putting tika and getting blessing. It was an awesome experience with all my family members and friends.




Wednesday, August 23, 2017

Father's Day 2074

HAPPY FATHER’S DAY

MY DEAREST FATHER


If I could explain how much I love you
If I could say I can’t live without you
If I could say how much I miss you
If I could say I can do anything for you
Anything for your happiness
If I could say I am incomplete without You

But Today in the occasion of Father’s Day
I only want to say
“THANKYOU”
THANKYOU for being an inseperable part of my life
For scolding me in my wrong and praising me in my rights
For giving me freedom To DREAM
And providing me all the opportunities to make it come true
For teaching me how to learn from failure.
For loving me and inspiring me every day
For taking my problem as your own
 I can’t imagine a day without You
Overall “THANKYOU”
HAPPY FATHER’S DAY


What I learnt from my father
I learnt to believe in myself
I learnt to work hard and struggle
To fight for my dream and
Sacrifice for my dream
I learnt value of each rupee he spend on my education
I learnt that my success gives him huge happiness which is PRICELESS
I leant to cope with difficulties
And to have faith in myself in difficult times
I learned to live and keep moving with a smile
All the lessons of my life I learned from my father
He is my first teacher
I love and respect him from my inner heart

MY PERFECT FAMILY WITH MY PERFECT FATHER




Monday, August 14, 2017

Krishnna Astami Special 2074

KRISHNA ASTAMI


The festival of Krishna Ashtami marks the birth of Lord Krishna, one of the ten incarnations of Hindu Lord Vishnu. The Hindu community in Nepal celebrates this festival with lot of fanfare. Devotees of Lord Krishna observe fast, consuming only fruits and milk products. They visit temples in huge numbers to have the darshan of their lord.


Fast Facts 
Month
September
Nature
Hindu Festival
Celebrated On
7th day of the dark lunar fortnight in August or September
Reason of Celebration
Birth Anniversary of Lord Krishna


Who is Krishna?
Lord Krishna is regarded as the 8th avatar or 'incarnation' of Lord Vishnu. Krishna belonged to the Vrishni clan (yadu vansa) of Yadavas from Mathura. He was the eighth son of King Vasudev and Queen Devaki of Mathura. He was born exactly at midnight. His incarnation took place to end the ill doings of his wicked maternal uncle Kansa. He was biological child of Vasudev and Devaki, but he was brought up by Nanda and Yasoda Maiya. 
Krishna’s childhood is full of fun and love. His youth is romantic and example of love and friendship with Gopis and Gopinies. He was married to Rukmani. His beloved Gopini was Radha

Krishna has very important role in Holy Battle of Mahabharata. He was the Chariot Rider of Arjun. He was the main character who supported Pandavs against Kauravs to win the holy war. His holy advices are known as Bhagwat Gita, where he teaches Arjun about Dharma and Paap (Sin). He did not physically take part in the battle, but he was the heart and soul of Pandavs. The pandavs had never won the war without his help.

He is worshiped with so many names: Krishna, Murari, Hari, Gopal, Shyam, Nanda Lala, Makhan Chor and hundreds of other names. In fact, Krishna said “you just remember me, whatever name, I will be with you, if I know you are calling me”. He is named Krishna because he is Dark. Krishna in Sanskrit is Dark (Black). He is regarded as inventor of Basuri/Murali (flute). He was fond of playing flute. He always had flute in his hand. He played his flute in Brindhaban and Mathura. It is said, the vibration of his music is still floating in the environment of those places.

Why do we celebrate Krishna Jansathami?

In Bhagavad Gita Krishna says, “Whenever there is predominance of evil and decline of good doings (religion), I will reincarnate again and again to end the evil and to save the Dharma (good)”. Krishna Jayanti is cel ebration of victory of good and Dharma over devil and bad power. We celebrate this day to to remember that when the pot of sin is filled, there is an end to the devil, God will come to rescue. Krishna Janmasthami reminds us those stories of battle between good and evil and tells us that the good always wins.


 A glimpse of celebration of Krishna Janmasthami in Nepal

·      Sri Krishna Janmastami also known as Krishna Jayanti or Janmashtami is not only celebrated in Nepal with great vigor but also in India, its neighboring country.

·      People consider this day an occasion great rejoicing. The 'Bhagavataam' (Bhagwat Ramayan, the story of Lord Krishna), is recited. Rhymes are sung and devotees pray. Temples are profusely adorned for the auspicios occasion. Kirtans are sung, the conch is blown, bells are rung, and Sanskrit hymns are recited to admire incredible deeds of Lord Krishna.
·      Religious ceremonies observed in Patan Durbar Square is famous all over Nepal. The devotees gather in the temple and offer prayers, flowers, food and sweets to the Lord.
·      Sacred devotional music is played all night.


·      People observe fast till midnight. It is believed that Krishna was born at midnight.
·      At midnight, devotees throng temples to take part in the special 'Aarati'. Birth of Krishna is relived. People sing and dance with great joy. Beautiful cradles are installed in temples and small idols of the 'Balgopal' are placed in them.
·       Some sing ancient rhymes, others clap their hands, while some pray. Crowds of men and women edge their way slowly up narrow steps through the seated devotees to the temple's dark interior to where the main idol stands. There they offer flowers, coins and food and wait for a glimpse of Krishna Janmastami festival at Krishna Mandir the idol. After the temple priest gives them 'prasad' they make their way home.

Happy Krishna Janmasthami ……!!!

God Bless We All.












Thursday, May 5, 2016

Mothers day special(2073)

Mother’s Day



“A mother is the truest friend we have, when trials heavy and sudden fall upon us; when adversity takes the place of prosperity; when friends desert us; when trouble thickens around us, still will she cling to us, and endeavor by her kind precepts and counsels to dissipate the clouds of darkness, and cause peace to return to our hearts.” 
 Washington Irving

A poem Dedicated to my mother
You filled my life with colours,
And always wiped my tears,
I hope that whenever you think of me,
A part of u u will always see,
Wishing u a happy mothers day




MOM I LOVE YOU

Sunday, October 25, 2015

Dashain 2072


 Hindus Great festival                              
            Dashain








Dashain  is the greatest  festival of Nepal Hindus. Like other festivals, it is also based on the lunar clendar and falls in the months of Aswin or Kartik. Dashain is observed for 15 days from the new moon day (Ghatasthapana) to the full moon day (Kojagrat Purnima). It is a festival of great delight, enthusiasm and rapture.

The time of Dashain is very fine. The weather is fair and mild. There is no more mud or dust. Farmers are getting relief from their tiring season of plantations and weddings. Schools, colleges, factories and offices remain close. Fair and pleasant weather, ripening and rustling crops, busy roads and paths, crowded shops, speedy renovations and cleanliness of roads, temples, taps, etc., and decorations all indicate the arrival of the greatest festival.


MY experience of Dashain 2072
My experience of Dashain  2072 was very good. It was really awesome. Our school closed from 28th Ashoj after the mid terminal examination. I enjoyed my Dashain vacation and had a very good time with my parents and relatives.
7th day (Fulpati)
Karthik 3rd was the fulpati day the 7th day of dashain.In that day We all woke up early in the morning.We did puja and went to pashupati mandir. I was a bit sad also because for the first time due to economic blockade I was unable to go to my village.My sister luckily went village with my elder brothers.SO my uncle,aunty me and my small brother were here.Because We were getting bored
So we made a plan to visit Bhrikutimandav for shopping and entertainment.But   due to economic blockade We had to go by walking.So we first went to Bhatbhatini Shopping mall did some shopping there and then went to Ratnapark to go to Bhrikutimandav.We had very fun playing adventurous games.
When we came back home we were very tired.

8th day(Astami)
In the eighth day we all woke up early in the morning.It was a pleasant morning. That day also we went to Pashupatinath and did puja there than came back home and sacrificed animals i.e. goat to eat the meat. Since we were not going to our villages so we had called our father’s sisters (fupu) to come to take meal in our house. It was a family gathering.They arrived at 10:00 o’clock and whole day we enjoyed playing cards, gossiping and eating delicious dishes. Whole day we had a great fun. I enjoyed a lot with my sisters and their sons and daughters.

9th day (Nawami, Dashami)
This time in Dashain Nawami and Dashami was in the same day.
In the morning we did puja and nine girls including me were called to do puja in that day.the time to put tika was on sharp 10:55.I was very eagerly waiting for that time. Finally at 10:55 exactly we kept tika and I got blessings from my elders which were priceless.After sometime we went to our relative’s home and mamghar to put tika.
We clicked too many photos and made it memorable.





Thursday, October 22, 2015

SLC COMPUTER EXERCISES 2072


                         
SUNRISE PUBLICATIONS
CHAPTER 1
COMPUTER NETWORKING AND TELECOMMUNICATION

1.      State true or false:

a)      Communication is the process of sending message from one point to another.____________
b)       In half duplex mode of communication, data can be transmitted in both directions simultaneously.___________
c)       Metropolitan Area Network connects two or more LAN together with in a large city or state._______
d)      Computer network allows sharing of software only._____________
e)       Coaxial cable has much greater bandwidth than fiber optic cable.___________
f)        A gateway is a network device which connects two dissimilar networks together.__________
g)       Each computer or device in a network is called node._____________
h)       Peer-to-peer is a network model which has more security than client server._________


2.      Choose the correct answer:
  a.  Which of the following acts as the central authority in the network?
        i. protocol                 ii.client              iii.server                 iv.none of the above
 b.which of the following is not Media connector?
       i.BNC                      ii.terminator        iii.RJ-45                   iv.NIC
c. In which of the following network model all the computers have equal access?
      i.Peer-to-peer network              ii.apple talk network
      iii.Client/server network            iv.None of the above
d.Which is an internetworking device that connects two dissimilar networks?
    i.Bridge                    ii.Gateway             iii.Switch                    iv.Router
e.Which of the following device is multi ports repeater?
    i.Hub                        ii.router                 iii.bridge                      iv.gateway
f.Which of the following is not a protocol?
   i.TCP/IP                   ii.IPX/SPX          iii.NETBIOS/NETBUI        iv.Client
g.Which of the following is not the network operating system?
   i.windows               ii.MS-DOS          iii.Linux                         iv.None of the above

h.The speed of Modems is measured in terms of
   i.mbps                    ii.bps                   iii.kbps                            iv.bits

i.Which of the following is not guided communication media?
   i.radio wave           ii.fiber optic cable             iii.satellite                   iv.Infrared

j.Which of the following topology uses hub as compulsory device
   i.star topology        ii.Bus topology              iii.Ring topology            iv.None of the above

k.Which is not network hardware component?
   i.HUB                  ii.Reapeater                     iii.Router                          iv.Windows NT

l.In which communication media does light travel in the form of light signal?
   i.Telephone wire         ii.Fiber optic          iii.Coaxial cable                iv.Twisted pair cable



3. Match the following points:
a.        Column A                                             Column B
 i. Computer network                                    Windows NT
 ii. Network OS                                             HTTP
iii. Transmission channel                              Resource Sharing
iv. Protocol                                                    UTP
                                                                                   Bit

b.         Column A                                             Column B
i. Wi Fi                                                           Network within a building
ii.Linear Bus                                                  Software component
iii.BNC                                                          Topology
iv.Device Driver                                           Transmission Media
                                                                       Media connector         



4. Answer the following questions:

a. What is Communication? From which word is it derived?
b. What is data transmission mode? List different types of data transmission modes.
c. List the elements of data communication.
d. Distinguish between simplex and duplex mode of communication.
e. Write the difference between guided and unguided media with example.
f. Define computer network and justify that, how does it reduces operation cost?
g. Write any two advantages and two disadvantage of computer network.
h. What is Local Area Network? Write its importance.
i. What is Metropolitan Area Network? Write its features.
j. What is Wide Area Network? Mention its characteristics.
k. List the different services provided by computer network.
l. What is networking architecture or model? List its types.
m. What is Protocol? List any four types of common protocols.
n. Sketch and explain about star topology.
o. Draw and explain about ring topology.


5. Write technical terms for the following statements:

a. The modes of transmission in which communication takes place from both the sides simultaneously.
b. A computer network limited within a room.
c. The interconnection between two or more computers through physical and logical components to share resources.
d.The set of rules and procedures that makes the communication possible among  different computers in a network.
e.The computer that acts as the central authority on a network.
f. The computer on which users run applications.
g. The amount of data that can be transmitted through communication channels in a fixed time period.
h. A network which is extended beyond the boundary of countries.
i. A device with multiple ports that joins multiple computer together.
j. The software which controls and manages all the operation in computer network.
k. The computer that controls and coordinates all the activities of the entire computer in a network.
l. The physical interface between cabling and network places.
m.The topology in which all the computers are connected by a common distribution channel.
n. The device which accepts weak signals regenerates them and sends them back on their way.
o. The topology on which all the computers are connected to each other in a closed circular loop.
p. A communication media which use light to carry a data signal through the cable.
q. The physical layout or cabling structure of computers on Local area network.
r. The device that connects communication media with network devices.
s. An intelligent device that connects two different networks by setting best network traffics.
t. The device which connects similar networks having same protocols.


6. Write the full forms of the following:
LAN, MAN, WAN, Wi-Fi, NIC, VOIP, UTP, Modem, NOS, PPP, SMTP, POP, IMAP, NNTP,
NetBEUI, NCP, BNC, GPS, MAC


CHAPTER 2
INTERNET AND ITS SERVICES

1.      Fill in the blanks:
a.       Internet is also known as network of __________________.
b.      Mozilla Firefox is ________________ program.
c.       __________________is an online textual communication with each other in real time.
d.      _________________ is a protocol used to upload and download information.
e.       The process of copying and storing data, files, programs, etc. from internet server to user’s computer is known as_________________.


2.      Choose the correct answer:
a)      The unique address of a web page on the internet is called
i.URL                 ii. Browser              iii. Protocol                 iv.HTTP
b)      Which is the protocol used in internet?
i. TCP/IP            ii.FTP                      iii.ICP                          iv.ISP
c)      Which one of the following is internet service?
            i.Chat                  ii.e-commerce         iii.e-mail                       iv.all of the above
d)     Which of the following allows the user to surf and interact with the web-page?
i.website            ii.browser                iii.web page                  iv.web server
e)      The ARPAnet was developed by
 i.ANSI              ii.DARPA               iii.POPA                        iv.None of them
f)       Which is the correct email ID?
i.Yahoo@ramesh                       ii.ramesh@yahoo.com
iii.@ramesh.yahoo.com            iv.None of the above
g)      Which device is necessary to operate the internet?
i.CD-ROM         ii. ISP                     iii. Modem                     iv.All of above
h)      Which is web browser software?
 i.Windows 2007                       ii.Internet explorer
 iii.Windows NT                        iv.All of the above
i)        Which is not related to Internet?
             i.ISP                ii.TCP/IP               iii.WWW                       iv.UPS


3. Match the following:
  Column A                                              Column B
Usenet                                                  Instant Chatting  
MSN                                                    Remote Login                               
Telnet                                                   Internet component   
Modem                                                 Newsgroup
                                                             Website


4.Answer the following questions:
a.Define the term”Internet “ and  write its importance in today’s world.
b.List any four services of Internet.
c.List the differnet hardware components required for connecting Internet.
d.What is web browser?Name any two common browser software.
e.What is an ISP?Write two popular ISP’s of our country.
f.Define URl with its parts.
g.What is search engine?List any four search engine names.
h.What is Domain Name System?


5.Differentiate between the following:
a.Email and E fax
b.Internet and Intranet


6. Write technical term for the following:
a. The process of sending and receiving messages electronically through the internet.
b. The very first page of every web site.
c.A company that provides internet services to the users.
d. Software or programs that search the website for us.
e. Software that is used for surfing information through the internet.
f. The process of copying files,documents, programs,etc from users computer to the web server.
g.  An internet tool that helps to download /upload the file.
h. Buying and selling products and services online.
i. The private network within an organization that utilizes the internet services.


7. write full forms of the following:
TCP/IP, HTTP, NTC, FTP, WWW, IRC, NSFNet, URL, ISP, DARPA, ISDN, HTML, MIIS.DNS



       
CHAPTER 3
COMPUTER SECURITY


1. State true or false:
a)      Computer security is concerned with hardware security only.________
b)       Backup is used for scanning and protecting computer from viruses._____________
c)      The use of ID card prevents unauthorized person from being entered in computer room._________
d)     The lost data and information can be easily recovered in computer.____________
e)      The required voltage for computer system is 220 to 240.________
f)       Scandisk is a disk tool that allows checking files, folders, bad sectors, lost clusters, lost chains and any errors of the specific disk.___________


2. Select the best answer:
a)      Which of the following is not hardware security method?
i.Insurance                    ii.Maintenance            iii.Closed-circuit cameras          iv.Hard lock key
b)      Which of the following measure allows to protect compouters being opened from unauthorized user?
i.Antivirus program      ii.Password                 iii.Debug                                    iv.program
c)      The computer security is purely concerned with the following
i.Hardware security                                          ii.software security
iii.Hardware and software security                  iv.Data security
d)     Which of the following is not power supply decice?
i.Volt guard                                                      ii.UPS
iii.Constant Voltage Transformer                    iv.Power Plug
e)      Which of the following is not software security measure?
i.Virus Scanning          ii.Scandisk                  iii.Password                                iv.Security Guard


3.Match the following:
  Column A                                                       Column B                     
Hard Lock Key                                         Hardware Security
Spike guard                                               Software security    
Insurance                                                   Power protection device
Burlar alram                                              Computer Security
                                                                  Prevents unauthorized entrance


4. Answer the following questions:
a)      What do you mean by computer security?List three reasons to keep our computer secure and safe.
b)      What is hardware security?Mention different measures to protect the computer hardware.
c)      What do you mean by Software security?List any four software security measures.
d)     Write the importance of data and software security.
e)      Why backup system of data and software is necessary.
f)       What is password?Write the  common rules for making a strong password?
g)      Define fragmentation and write the purpose of defragmentation.
h)      Why is power protection device needed in computer?Name any four such devices.
i)        Write the role of UPS and spike guard in terms of power protection.


5. Write technical term for the following:
a)      The method applied to increase the life of computers and  its assets.
b)      The secret word or phrase of authorized users to open computer and access programs.
c)      The scattering of the parts of the same disk file over different locations.
d)     The process of re-writing parts of a file to contiguous sector on a hard disk to increase the speed of access and retrieval.
e)      The process of making a reserve copy of file,which can be restored in case of original file is corrupted.
f)       The power regulating device this supplies constant power to the computer from its backup system.
g)      The software used to scan,locate and detect the disk for viruses.
h)      An utility program used to detect and repair lost clusters and bad sectors of hard disk.


6.Write the full forms of the following:
CPU, UPS, CCTV, CVT, AC, DC, DVD, RAM



CHAPTER 4
                                                              COMPUTER VIRUS


1. Fill in the blanks:
a)      Computer virus _____________itself.
b)      _____________ is used to remove virus from computer.
c)      _____________viruses corrupt only executable files form the computer.
d)     The first person who introduced the concept of replicating program was______________.
e)      ______________viruses are very difficult to identify and detect by anti-virus.
f)       We should ____________Latest and updated antivirus in our computer.


2. Match the following:
Column A                                   Column B
CPAV                                Propagating virus
Software piracy                 Antivirus software    
Worm                                Virus transfer                         
Password                           Purpose of virus development
                                          Virus safety measure


3. Select the correct answer:
a)      Computer virus are known as
i.computer programs             ii.biological problems
iii.hardware components       iv. None of the above
b)      Which of the following is not anti-virus
i.AVG                                   ii.NAV                      iii,Kaspersky                      iv.I Love you
c)      Which of the following virus infects the various parts of operating system?
i.boot sector                         ii. Worm                    iii.Macro                             iv.system infector
d)     Which is the source for virus transfer?
i.Mouse                               ii.Pen drive                 iii.Printer                            iv.None of the above
e)      Which software protects from computer virus?
i.Antivirus software            ii.Word processing software
iii.Spreadsheet software     iv.Backup software
f)       Computer virus can destroy
i.Hardware                         ii.Software                  iii.Data                                iv.All
g)      Boot sector virus infects
i.System files                     ii.Master boot record
iii.Application software     iv.Document file


4.Answer the following questions:
a)      What is computer virus?Name the world’s first PC virus.
b)      List any four reasons of creating Virus?
c)      Mention the different types of computer viruses.
d)     Write any four symptoms of virus infection.
e)      How does virus transfer from one computer to another computer.
f)       What is antivirus?List any four antivirus software.
g)      Mention any four sources of virus transfer.
h)      List any four preventive measures or safety measures from computer viruses.


5. Write technical terms:
a.       A program that destroys other program.
b.      The software used to scan computer memory and disk to detect viruses.
c.       The viruses which have combination features of boot sector viruses and program viruses.
d.      A type of computer virus that infects the document or template of word processing or spreadsheet.
e.       The Program which is used to detect and eliminate computer virus.


6. Write full forms of the following:
MCP, MBR, NAV, CPAV, PAV, KAV, USB





CHAPTER 5
CYBER LAW AND ETHICAL ISSUES


     1. State true or false:
a)      Cyber law of Nepal was introduced in 2060 B.S.
b)      Cyber law covers those areas including ICTS.
c)       Internet pornography is a type of cyber crime.
d)     The term ‘cyberspace’ was used by William Gibson for the first time.
e)      Cyber ethics are moral principles that make aware to the computer users.


2. Match the following:
       Column A                                   Column B
  Digital Signature                          Cyber crime
  Forgery                                         Electronic security system
  Encryptions                                   Cyber law
  Copy right                                     Locking message
                                                        Computer crime


3. Choose the correct answer:
a)      Which of the following is computer crime?
i.piracy                    ii.pornography                  iii.harassment                iv.All of above
b)      When did cyber law introduced in Nepal.
i.2002 A.D.             ii.2003 A.D.                      iii.2004 A.D.                  iv.2005 A.D.
c)      Which of the following is not computer crime?
i.Plagiarism             ii.Password guessing         iii.Internet                      iv.virus transferring
d)     Which of the following is included in cyber law?
i.Trademark right    ii.Copyright                       iii.Data privacy               iv.All of the above
e)      Which of the following is not computer ethics?
i.Not to steal data                   ii.Not to bear false message
iii.Not to use Internet             iv.Not to harm the society


4.Answer the following questions:
a.       What do you mean by cyber space?What does it include?
b.      Define computer crime and mention any four such crimes.
c.       List any four provisions made in the Cyber law of Nepal?
d.      What are the areas that can be covered by Cyber law of Nepal?
e.       Define Computer Ethics and list any four ethical standards.
f.       Differentiate between hacking and cracking.


5.Write technical terms for the following:
a.       The process of unauthorized access to an information system intentionally.
b.      The rules and procedures relates to the internet and cyberspace.
c.       Moral rules to be followed by computer and other professionals.
d.      A security mechanism used on the internet that relies on two keys, one public and one private.
e.       Virtual space created by computer networks, internet to make communication.
f.       A person who uses a computer to gain an unauthorized access.
g.      A computer user who attempts to break into copyright protected software or an information system.
h.      The rules and regulation to systematize the computer related technology.


6. Write full forms of the following:
   ICT, IT, ATM, NITC, CCA, ETDSA, NITDC, MOST, HLCIT



CHAPTER 6
MULTIMEDIA AND ITS APPLICATION



1. Match the following:
Column A                                 Column B
TOEFL                                    Multimedia software
PowerPoint                              Multimedia component      
Speaker                                    Interactive multimedia
Advertisement                          Virtual reality
                                                 Multimedia application


2. Select the best answer:
a)      Which of the following media are used in Multimedia system?
i.Text-audio                                                  ii.Text-visual
iii.Text, graphic, audio and visual                iv.Text, graphic and sound
b)      Which of the following is multimedia application?
i. Education                       ii.Entertainment                   iii.virtual reality          iv.All  of above
c)      Which of the following is software used in multimedia technology.
i.Office XP                       ii.Adope Photoshop             iii.Basic                       iv.None of the above
d)     Which of the following is note multimedia software?
i. Windows media player                                ii.Windows XP
iii.Adobe illustrator                                        iv.Macromedia flash
e)      Which of the following are components of multimedia?
i.Computer                     ii.Software                             iii.Projector                   iv.All of above
f)       Which is a technology that allows people to enter and interact with three dimensional computer graphics world?
i.Virtual system             ii.Virtual reality                     iii.Graphics system       iv.All of the above
g)      Which of the following is main component of multimedia?
i.Floppy disk                 ii.Hard disk                            iii.Sound card               iv.Magnetic tap



3.Answer the following questions:
a.       What is multimedia?What are the major types of multimedia?
b.      Write the advantages and disadvantages of multimedia.
c.       Differentiate between Linear multimedia and non-linear multimedia.
d.      List any four hardware components required for making a computer multimedia capable.
e.       Mention different types of software used in multimedia.
f.       List any four application field of multimedia.
g.      What is the difference between multimedia system and multimedia technology?
h.      How does multimedia help in business and education?
i.        What are the elements of multimedia ?list them.
j.        What is Virtual Reality?
4. Write technical term for the following:
a.       The process of displaying alphanumeric characters on the screen to present information.
b.      An integration of audio,video,graphics and text.
c.       It is simulation movement created by displaying a series of particular frames or pictures.
d.      The artificial environment created by computer technology to entertain user.
e.       A high capacity storage device that can read and write data into storage media.
f.       The computer having capability to integrate two or more types of media for information presentation.
g.      The program used to create and present multimedia system.


5. Write full forms of the following:
CBE, CAL, CAI, CBT, BMP, GIF, JPEG, LCD, CD-ROM, DVD



CHAPTER 7
COMPUTER NUMBER SYSTEM



1. Answer the following questions:
a)      What is number system? Write the meaning of base or radix of any number system.
b)      What do you mean by decimal number system?
c)      What is binary number system? Write the digits used in this number system.
d)     What do you mean by octal number system? What is its base value?
e)      What is hexadecimal number system? Write the symbols used in this number system beside the digits.
f)       Define bit and byte in terms of data representation in computer.
g)      What is ASCII? Write the ASCII value of characters from A to Z.


2.  Convert the following binary numbers into decimal numbers:
     a) (1101) ­­­­­­­­­2                b) (11011)2                c) (10101)2                d) (10110)2                e) (1110110)2   
3. Convert the following decimal into binary:
     a)  (75)10                  b) (1010)10                  c) (1162)10                  d) (653)10                  e) (1562)10
4.  Convert the following decimal into octal:
     a) (275)10                 b) (335)10                   c) (245)10                    d) (1562)10                e) (567)10
5.  Convert the following octal into decimal:
     a) (535)8                  b) (425)8                    c) (562)8                      d) (7533)8                  e) (6274)8 
6.  Convert the following octal into binary:
      a) (117)8                 b) (246)8                    c) (2562)8                   d) (6523)8                  e) (5474)8
7.  Convert the following binary numbers into octal numbers:
      a) (101101)2           b) (1101101)2            c) (10111101)2            d) (1011011)2          e) (1101011110)2
8.  Convert the following decimal numbers into hexadecimal numbers:
     a) (375)10                 b) (245)10                  c) (4563)10                   d) (7567)10               e) (2989)10  
9.  Convert the following hexadecimal numbers into decimal numbers:
     a) (AB8)16               b) (DAD) 16              c) (CAFE) 16                d) (BAD) 16              e) (5643)16
10. Convert the following binary numbers into hexadecimal numbers:
    a) (10111101)2                   b) (11011111)2                     c) (1011011)2           
    d) (110110101)2                e) (110111011110)2
11. Convert the following hexadecimal numbers into binary numbers:
    a) (CBD) 16            b) (CAFE) 16             c) (9876)16                  d) (BAD) 16                  e) (A0FC) 16
12. Perform the following binary additions:
    a) (111+110)2                   b) (10101+11010)2                c) (111011+111)2
     d) (111111+1001110)2     e) (1100011+101011)2
13. Perform the following binary subtractions:
      a) (1111-11)2                    b) (110111-101)2                  c) (111101-1001)2
      d) (10101011-1011)2        e) (101111-111)2
14. Perform the following binary multiplications:
      a) (101)2 × (10)2               b) (1101)2× (11)2                   c) (1011)2 × (110)2
      d) (1101)2 × (110)2           e) (11101)2 × (101)2
15. Perform the following binary divisions:
     a) (11010 ÷ 11)2                b) (101110 ÷ 101)2               c) (1101100÷110)2
     d) (10011100÷111)2         e) (1011111÷111)2
16. Perform the following binary calculations:
     a) (1101+110+1110)2                        b) (110101-11010+111)2
     c) (1011)2 × (101)2÷1001)2
17. Write the full forms of the following:
     a) Bit                       b) BCD                          c) ASCII                 d) EDCDIC                e) LSB
     f) MSB                    g) LSB

18. Write suitable technical term for the following:
a)      A set of symbol used to express quantities as the base for counting.
b)      The smallest unit of measuring computer data.
c)      The collection of four binary digits.
d)     Internationally accepted code to represent characters in computers with seven or eight binary digits.

CHAPTER 8
DATABASE MANAGEMENT SYSTEM:MS-ACCESS

1. State true or false:
a)      MS-Access is spreadsheet software.
b)      The default extension of MS-Access file is .DBF.
c)      Primary key field cannot be left blank.
d)     We cannot change data type of a field.
e)      Memo field is used to store long information beyond of the text.
f)       Yes/No Logical field stores one bit of data.
g)      More than one table can be created in MS-Access.
h)      Query can be used to apply mathematical calculations in the table.
i)        We can make the form as the source of table.
j)        * is a wild card that represents any one character in an expression.
k)      A form allows displaying one complete information at once.
l)        A query is used to select records from many tables.
m)    Index decreases the speed of the query and short operations.
n)      Report is used to prepare database for final printing.
o)      Field name can be up to the 98 characters long.


2.  Select the best answer:
a)      Which of the following is not MS-Access database object?
i. Table                      ii. Form                     iii. Query                          iv. Print
b)      Which of the following data type is appropriate to store gender of person in terms M or F?
i. Memo                     ii. Currency              iii. Yes no                         iv. Auto number
c)      Form is designed for
i. filters data              ii. Sort data               iii. Sort data                      iv. Modify data
d)     Query is used to
i. retrieves data from database                   ii. Create table in database
iii. Print database                                       iv. All of above
e)      Report is used for
i. Printing database                                     ii. Process database
iii. Filter database                                       iv. None of the above
f)       Which of the following is not a data type?
i. Picture                  ii.date/time                  iii.text                              iv.number
g)      What is the maximum length of text field?
i.512 characters                                          ii.50 characters
iii. 255 characters                                       iv.No limit
h)      Which of the following is not field property?
i. indexed               ii. Field size                 iii.color                            iv.format
i)        What field type is used to store picture in a table?
i.memo                  ii.OLE                          iii.hyperlink                      iv.None
j)        Which of the following uniquely identifies any field.
i.Index                  ii.Memo                         iii.Primary key                 iv.Query
k)      The object of MS-Access that stores the data is known as
i.Query                 ii.Table                          iii.Form                            iv.report
l)        Which is the example of Relational Database Management System?
i.Oracle                ii.FoxBASE                   iii.Sybase                          iv.FoxPro
m)    The datatype which is used for only integer value.
i.text                     ii.currency                     iii.number                         iv.OLE
n)      What kind of data are kept in memo field?
i.Name of Student                                    ii.Students phone number
iii.Students Bio data                                 iv.Students picture
o)      Which of the following is not the datatype of MS-Access?
i.yes/no                ii.true/false                   iii.on/off                               iv.All
p)      A field is also known as
i.records               ii.column                     iii.Database                          iv.entity
q)      Which of the following field property limits from wrong data entry.
i.Input mask         ii.caption                     iii.required                            iv.validation rule



3.Match the following:

a)                Column A                                           Column B
    Index                                                   database
    Data redundancy                                 software
    Record                                                 easy to search
    DBMS                                                  repetition of data
                                                                 Tuple


b)                Column A                                           Column B
          Form                                                   database 
          Primary key                                        data type
          Advance Filter                                    text control
          Hyperlink                                            unique identification of record
                                                                            Query


c)                Column A                                           Column B
          Sort                                                      mass change
          Single precision                                   DBMS
          FoxPro                                                 memo field
          Update query                                       sub type of number
                                                                       Arranging data


d)               Column A                                           Column B
          Mark ledger                                        Predefined formats
          Wild cards                                          database
          Wizard                                                primary key
          Relationship                                        * and?
                                                                      Report




4. Answer the following questions:
a.       Define the terms data and information with examples.
b.      What do you mean by database? Write two databases.
c.       What is Database Management System(DBMS)?List any four common DBMS.
d.      Differentiate between DBMS and RDBMS.
e.       What is MS-Access? Write it’s any two features.
f.       Mention any four major objects of MS-Access.
g.      What is table? What are the ways of creating table in MS-Access?
h.      What is field data type? Write any four data types used in MS-Access.
i.        Write any two advantage and two disadvantages of DBMS.
j.        List the basic elements of database.
k.      Define field property and write the use of Input mask and validation rule.
l.        What is primary key?Write its importance.
m.    What is meant by sorting data? Write the types of data  sorting.
n.      What is indexing?Write the indexing options.
o.      What is Query?Write its use.
p.      What do you mean by filtering data?
q.      What is form?Write its advantages over table.
r.        What is report? Write its importance.
s.       Write suitable data types to store employee’s name, date of birth, salary and photograph.


5. Write the full form of the following:
DBMS, RDBMS, SQL, MDB, DBA, DDBMS, HDBMS, OODBMS
 


Lab Activities
1.      Open the MS-Access program then create a database named “School” and perform the following tasks:
a.       Create a table named “Student “ having the following table structure
Field Name         Data type                       Description
Std ID                text                   Set this field as primary key. Assign value like C10A01,                
                                                                         C10A02, C10A3, etc. Here C10 represents class, A      
                                                                         Represents section and 01 represent roll no.
       Name                  Text                               Name of the student
       Class                   Number                         Class of the student       
       Section                Text                               Section of student like ‘A’, ‘B’,’C’, etc
       Roll No.              Number                         Roll numbers of students
       DOB                   Date/Time                      Date of birth of students
       Photo                  OLE object                    Photo of students
       Tel No.                Text                               Home telephone number
       Remarks              Memo                            any remark about student   
       Address               Text                               address of the students
b.      Open the student table in datasheet view then fill at least 15 records of students.
c.       Arrange records on the base of name on ascending order.
d.      Create a form on the basis of “student” table and save as “Student form”.
e.       Fill 10 more records using the “student form”
f.       Create a query name”student info” display the records only including name, address and Tell No.
g.      Create a query named”student rec.”  To display the records only including name, class, section, Roll No. and DOB.
h.      Prepare a report on the basis of query named “student info”
i.        Prepare a report on the basis of query named “student Rec.”
j.        Prepare a report on the basis of table named “student”
2.      Create  a database named “Record” and prepare a table “student” having the following table structure:
Field Name                       Data type
Std ID                              Number
Name                                Text
Class                                 Number
Address                            Text
DOB                                 Date/Time
Tel no                               Number
a.       Set the primary key in the field Std ID.
b.      Open the student table in Design view then add three more fields section, parents name and sex
c.       Open the student table in datasheet view then add records for 10 students.
d.      Arrange the student name in ascending order.
e.       Prepare a Query to display only the records of those students whose address is “Butwal”.
f.       Prepare a Query to display only the records of those students whose DOB is under 5/12/1992.

3.      Prepare a database named “Student”and prepare a table “Marks”having the following structure:
Field Name               Data type
Roll No                     Number
Name                         Text
Gender                       Yes/No
English                       Number
Nepali
Science
a.       Add any five records in the “Marks” table.
b.      Prepare a Query to display only the records of male students.
c.       Prepare a Query to display only the records of those students who got less than 60 marks in Nepali.
d.      Prepare a report from the above Query then print it.
4.      Prepare a database for the account system of your school and also prepare required Query Form and                                    Report.
5.      Prepare a database for the library system of your school.




CHAPTER 9
REVIEW OF CONTROL STATEMENTS


1.          Answer the following questions:

a)      What do you mean by control structure? List its types.
b)      Define the terms branching and jumping.
c)      What do you mean by control flow statement? List its types.
d)     What is looping? Write any three looping statements.
e)      Mention the differences between For next loop and while wend loop.
f)       Write any two differences between pre-test and post-test looping structure.
g)      What is nested looping? Write with example.
h)      Define counter and accumulator in terms looping.
i)        What is function? List the types of function used in QBASIC.


2.      Write the output of the following:

a)       CLS                                                                                       
FOR A= 1 TO 5                                          
FOR B= 1 TO A                                  
PRINT B;                                             
NEXT B                                               
PRINT       
NEXT A
END                                                      


b)      CLS
FOR I= 1 TO 5      
FOR J= 5 TO I STEP-1
PRINT J
NEXT
PRINT
NEXT I
END



c)      CLS
FOR I = 1 TO 8
READ N (I)
R3=N (I) MOD 3
R (5) =N (I) MOD 5
IF R3 = 0 AND R5=0 THEN
D=D+1
END IF
NEXT I
PRINT D
DATA 3, 5,12,15,45,60,25,90



d)     CLS
A=1111
FOR I= 1 TO 5
PRINT A
A= (A-10)/I
NEXT I
END

3.      Debug the following programs?
a.       CLS
REM to print first 100 natural numbers
C=0
DO
NEXT C
PRINT C$
LOOP WHILE C<100

b.      CLS
REM to print square of 1st 10 numbers
FOR A$=1 TO 10 STEP -1
PRINT A2
NEXT
END

c.       REM to generate series 5, 10, 15……..100
CLS
FOR I= 5 TO 20 STEP -5
PRINT A;
NEXT A
END

d.      CLS
REM to print first 100 natural numbers
C=0
DO
NEXT C
PRINT C$
LOOP WHILE C<100
END

4.      Re-write the following program by changing loop as instructed:
        i.            Using IF…..THEN statement
CLS
A=9
DO WHILE A>=1
B=1
WHILE B<=A
PRINT B;
B=B+2
WEND
PRINT A
A=A-2
LOOP
END

      ii.            Using FOR…NEXT statement
CLS
LET N= 5
LET C=0
DO
LET R= N*10^C
PRINT R
LET C=C+1
LOOP WHILE C<=4
END

    iii.            Using IF……..THEN statement
CLS
LET N= 5
FOR C= 1 TO 5
PRINT N*C
NEXT C
END

    iv.            Using WHILE…….WEND
CLS
S=0
FOR I= 1 TO 10
X= I^1/2
S=S+X
NEXT I
PRINT S
END

5.      Write syntax and function of the following:
a.       SELECT CASE statement
b.      IF……..THEN ……..ELSE statement
c.       WHILE……WEND loop
d.      UCASE$  function
e.       SGN function
f.       LTRIM$ function

LAB ACTIVITIES
1.      Write QBASIC programs to solve the following problems:
a)      WAP to print all the odd numbers between 1 to 50.
b)      WAP to print all the even numbers between 2 to 50 in the descending order.
c)      WAP to print the multiplication table of given number up to 10 terms.
d)     WAP to input any 5 numbers and print them on ascending order.
e)      WAP to input a number and find out factorial of that number.
f)       WAP to accept three numbers and determine the largest one.
g)      WAP to accept three numbers and determine the smallest one.
h)      WAP to accept three numbers and determine the medium number.
i)        WAP to check and print whether the entered number is prime or composite.
j)        WAP to check and print whether the entered number is Armstrong or not.
k)      WAP to check and print whether the entered number is divisible by 5 and 9 or not.
l)        WAP to convert the given decimal number into binary equivalent number.
m)    WAP to convert binary number to decimal equivalent number.
n)       WAP to  check an input number is positive or negative.
o)      WAP to find and print repetition of any characters in a user input sentence.
p)      WAP to input a string then print it in reverse order.
q)      WAP to input a sentence then count the total number of words in the sentence.
r)       WAP to check whether an input word is palindrome or not.
s)       WAP to input words and count total number of vowel and consonants.

2. Write a program to display the following:
a.       1   4  9  16  25  ……………100
b.      1    2  4   7  11  …………10th term
c.       100    95   90    85    ……………..50
d.      3  33  333  3333   33333
e.       1   1  2  3   5   8………10th term

2.      Write a program to print the following numeric and string patterns:
a)      5
54
543
5432
54321

b)      1
12
123
1234
12345

c)      1
22
333
4444
55555

d)     NEPAL
   EPA
      P

e)      *********
  *******
    *****
      ***
        **
         *



f)                           M
                 HMA
              THMAN
           ATHMAND
        KATHMANDU


g)                         *
                 ***
              *****
            *******
          *********
                         
CHAPTER 10
MODULAR PROGRAMMING IN QBASIC

1.      Answer the following questions:
a)      What is modular programming? Write it’s any two advantages.
b)      Define procedure and write its types.
c)      What is user defined function? Which statement is used to define user’s function?
d)     Differentiate between main module and sub module.
e)      Write down the differences between Sub…. End sub and function…. End function statement.
f)       What is parameter? What are the types of parameter that can be used in modular programming?
g)      What is argument? Write the difference between, argument passing by reference and passing by value.
h)      Distinguish between local variable and global variable.
i)        Write function and syntax of the following statements.
i. DIM SHARED       ii.DECLARE           iii.CALL           iv.COMMON SHARED


2. Re-write the following programs by correcting bugs:
a)      DECLARE FUNCTION REV$(ST$)
CLS
INPUT “enter a string”;S$
LET R$=REV$(ST$)
PRINT “The string in reverse is “; A$
END
FUNCTION REV$(ST$)
FOR I= LEN (ST$) TO 1
FV$=RV$+MID$(ST$, 1, I)
NEXT I
RV$=REV$
END FUNCTION

b)      REM program to find the square root of given number
DECLARE SUB SQUARE(N)
ENTER N
DISPLAY SQUARE (N)
END
SUB SQUARE (N)
S=M^0.5
PRINT S
FINISH

c)      REM program to find the square root of given program.
DECLARE SUB square (N)
ENTER n
DISPLAY SQUARE (N)
END
SUB SQUARE (N)
S=m^0.5
PRINT s
FINISH

d)     CLS
DECLARE FUNCTION sum(n)
INPUT”enter how many numbers:-“;n
s=sum(n)
PRINT”Sum=”;sum
END
FUNCTION sum(n)
FOR x= 1 to n
Su=su+sum
NEXT x
Su=sum
END FUNCTION

3. Read the following programs and answer the following questions:
a)      DECLARE SUB STRIN (X$)
X$=”COMPUTER”
END
SUB STRIN(X$)
L=LEN(X$)
FOR I= L TO 1 STEP -2
PRINT MID$(X$,1,1)
NEXT I
END SUB
                                i.            What statement should be added in the main module to execute the program?
                              ii.            What will be the output of the program?
                            iii.            What will be the value of L if X$=”NEPAL”
                            iv.            List out numeric and string variables used in above program.

b)      DECLARE FUNCTION XYZ(N)
CLS
A=135 :B=A
X= XYZ(A)
PRINT “THE RESULT IS “,
IF X=B THEN PRINT “OK” ELSE
PRINT “NO”
END
FUNCTION XYZ(N)
DO WHILE N>0
RE=N MOD 10
N=N/10
T=N*10+RE
LOOP
XYZ=T
END FUNCTION
                                i.            What will be the output of the above program?
                              ii.            If the value of variable N=7 then what will be the value of variable RE?
                            iii.            Can we replace the fourth line of the program X=XYZ(A) by X=XYZ(131) or not?
                            iv.             Count the total number of Global and Local variable in the above given program.
c)      DECLARE SUB SERIES(X,Y,Z)
DECLARE FUNCTION SUM(X,Y)
DIM SHARED I
CLS
INPUT”enter first term”;X
INPUT”common difference”;Y
INPUT”No of terms to be generated”;Z
CALL SERIES(X,Y,Z)
END
SUB SERIES(X,Y,Z)
FOR I= 1 TO Z
PRINT X
X= SUM(X,Y)
NEXT I
END SUB
FUNCTION SUM(X,Y)
SUM=X+Y
END FUNCTION
                                i.            What will be the output of the program if the user inputs 2,3,4 for the variables X,Y,Z respectively?
                              ii.            How many times the function SUM (X,Y) will be executed if the values of X,Y,Z are 2,4 and 6 respectively.
                            iii.            What types of variables X,Y and I are?
                            iv.            Will the program run if the value of Z is less than X and Y?

d)     DECLARE SUB ser(x,y)
CLS
CALL ser(5,6)
END
SUB ser(x,y)
CLS
C=0
FOR a= 1 TO 5
PRINT x;
C=c+y
X=y
Y=c
NEXT a
END SUB
                                i.            Write the output of the above program.
                              ii.            List the variables used in sub program.
                            iii.            What will be the value of variable “c” when loop completes fourth time?
                            iv.            What will be the output if sub procedure is calles with “CALL ser(3,3)

e)      DECLARE SUB result(n$)
INPUT”Enter your string “;n$
CALL result(n$)
END
SUB result (n$)
FORi=Le|EN (n$) to 1 STEP -1
PRINT LEFT$(n$,i)
NEXT i
END SUB
                                i.            How many time loop executes if input string is “KATHMANDU”?
                              ii.            What type of data is assigned in the variable name n$?
                            iii.            What will be the output if the input string is”PALPA”?
4.Write the output of the following progams:
        i.            DECLARE SUB numpat(N)
CLS
N=33333
CALL numpat(N)
END
SUB numpat(N)
C=1
WHILE C<=5
PRINT N;
N=N\10
C=C+1
WEND
END SUB

      ii.            DECLARE SUB PATT(X)
CLS
X=1
CALL PATT(X)
END
SUB PATT(X)
FOR I= 1 TO 5
PRINT X
X=(X*10)+I
NEXT I
END SUB

    iii.            DECLARE SUB STPAT(S$)
CLS
S$=”COMPUTER”
CALL STPAT(S$)
END
SUB STPAT(S$)
FOR J= LEN (S$) TO 1 STEP -1
PRINT UCASE$(LEFT$(S$,J))
NEXT J
END SUB

    iv.            DECLARE SUB FEBO(Y,Z)
CLS
Y= 2:Z=1
CALL FEBO (Y,Z)
END
SUB FEBO (Y,2)
X=1
PRINT Y;Z;
LEVEL:
LET S=Y+Z
PRINT S;
Y=Z
Z=S
X=X+1
IF X<=8 THEN GOTO LEVEL
END SUB

      v.            DECLARE FUNCTION AVV(A,B,C)
CLS
A=100: B=200:C=300
PRINT”RESULT”;R
END
SUB AV(A,B,C)
R= (A+B+C)/3
AV=R
END FUNCTION

    vi.            DECLARE FUNCTION R$(A$)
CLS
A$=”SCIENCE”
Y$=R$(A$)
PRINT Y$
END
FUNCTION R$(A$)
FOR I= 1 TO LEN (A$) STEP 2
B$=B$+MID$(A$,I,1)
NEXT I
R$=B$
END FUNCTION

LAB ACTIVITIES

A.    Write QBASIC program using SUB procedure (SUB….END SUB STATEMENT):
1)      Write a program to declare a sub procedure module to find the perimeter of a rectangle.[Hint: P=2(L+B)]
2)      Write a program to calculate the area of a circle.
3)      Write a program to convert meter into kilometer.
4)      Write a program to check and print whether entered number is odd or even.
5)      Write a program to declare a sub-procedure module Name(Z$)to print your name for 5 times.
6)      Write a program to declare a sub-procedure module  to find the greatest among 3 different numbers, where the numbers are passed as parameters.
7)      Write a program to declare a sub-procedure module to calculate cube of a number.The value o fthe number should be input inside the sub-procedure module.
8)      Write a program to check and print whether the entered number is prime or composite.
9)      Write a program to find and print sum of ‘N’ entered number.
10)  Write a QBASIC program using SUB procedure PALINDROME(W$,N$)to check whether input word is palindrome or not.
11)  Write a program to get a number from the user and then print the sum of the digits of the supplied number.
12)  Write a program to find the highest and lowest among 3 entered numbers using two different sub modules.
13)  Write a program to display the multiplication table of entered number upto 10 multiples.
14)  Write a program to count number of consonants in user entered word.
15)  Write a program to calculate area of cube where length is given.[hints:area=6*1/2]
16)  Write a program to calculate compound interest for given principle,rate and time.Hint: i=p[(1+r/100)t -1]
17)  Write a program to print only vowel characters by removing consonants in an user entered word.
18)  Write a program to input any string then display it in alternative case.[for example if you enter”sunrise” then it should be displayed as”sUnRiSe”]
19)  Write a program to convert the entered binary number to equivalent octal number.
20)  Write a program to display all the composite numbers existing in between 1 to 100.
21)  Write a program to input any five numbers then arrange in descending order and display them horizontally.
22)  Write a program to input full name of a person then print initial letters of first name and middle name but full name of last name i.e. caste.[for example R.P.Aryal for Ram Prasad Aryal]
23)  Write a program to detect and print whether entered number is positive ,negative or neutral.
24)  Write a program to calculate sum and average of two fixed numbers i.e. 165 and 265
25)  Write a program to check whether the given number is perfect cube or not.
26)  Write a program to determine if the input number is palindrome or not.
27)  Write a program to count and print number of data divisible by 3 and 5 from the given set of data.[data 5,15,25,45,18,25,60,50]
28)  Write a program to length and breadth of rectangle then calculate its area and perimeter.
29)  Write a program to check whether a person is eligible to caste vote or not according to enter age.[note: a person aged 18 or more can vote]
30)  Write a program to create sub procedure disp(N) to display square and cube of numbers from 1 to Nth term.
31)  Write a program to print the factorial of given number.
32)  Write a program to calculate H.C.F of any two entered numbers.
33)  Write a program to define a sub procedure to print sum of ASCII codes of each characters of user entered word by the user.
34)  Write a program to create sub procedure long(A$,B$,C$) to enter name of three students, then determine the longest name.
35)  Write a program to create a sub procedure to count number of words in the given sentences.
36)  Write a program to count number of odd digits and number of even digits in user entered six digits number.
37)  Write a program  using SUB….END SUB  statement to generate the following output.
a)       
POKHARA
   OKHAR
      KHA
        H

b)      L
AL
PAL
EPAL
NEPAL

c)      U
PUT
MPUTE
OMPUTER
COMPUTERS

d)     N
NE
NEP
NEPA
NEPAL

e)                    *
            ***
         ******
        *******

    
38.  Write programs to generate following series:
a.       1,11,111,upto 10th term
b.      1,4,9,16,25,…..upto 10th term
c.       3,12,27, ………upto 10th term
d.      1 12 123  1234 12345
e.       19 17 15 13 ………upto 1
f.       33333  3333  333  33  3
g.      1 2 4 7 11……..upto 10th term.
h.      2 1 3 4 7 11 …………..upto 11th term.
i.                        1
             121
           12321
         1234321
       123454321
j.        1
12
123
1234
12345
k.      55555
4444
333
22
1

l.        1
10
101
1010
10101

m.    5
45
345
2345
12345

n.      1
23
456
78910

B.Write QBASIC programs using FUNCTION Procedure (FUNCTION ……….END FUNCTION ) statement.
1)      Write a program to convert Nepali Currency (NC) to equivalent American dollar where one dollar = 95(NC).
2)      Write a program to declare a user-defined function to reverse a given string.
3)      Write a program to calculate the simple interest for a given principal, time and rate of interest.
4)      Write a program to create a function area(L,B,H)to calculate and print Total Surface Area(TSA)of box.[hint TSA=2(LB+BH+LH)
5)      Write a program to convert the entered octal number to equivalent decimal numbers.
6)      Write a program to print the smallest number among three numbers.
7)      Write a program to declare a user defined function to count total number of vowels in a given string.
8)      Write a program to declare a user defined function to return the total number of spaces in a given sentence.
9)      Using FUNCTION……END FUNCTION,Write a program to calculate the area of a circle.
10)  Write a function procedure rev(N) that returns a number in reverse order.
11)  Write a program which asks three numbers and displays the middle number among them.
12)  Write a program to check whether supplied word is palindrome or not.
13)  Write a program to calculate and print area (a) of a square.
14)  Write a program to convert temperature centigrade in Fahrenheit[Hint: f=9/4 c+32]
15)  Write a program to detect and print  whether an entered number is odd or even.
16)  Write a program to check  and print  whether an entered number is prime/composite.
17)  Write a program to find the longest string among three strings.
18)  Write a program that allows user to enter a number then check whether the given number is perfect square or not.
19)  Write a program to create a function square (N) and use this function to calculate sum of square numbers from 1 to that number.
20)  Write a program to create a function procedure check$(A,B,C) to enter length of three sides then check whether a triangle can be formed or not.[Note: to form a triangle the sum of two sides must be greater than the third side.]
21)  Write a program to create an user define function square(N) to fing square of number then use this function to calculate sum of square of numbers from 1 to that number.
22)  Write a program to count the occurrence(repetition) of any entered character in the given string.
23)  Write a program to calculate total distance(S) covered by an object where initial velocity(u),acceleration (a)and time(t) is input from the keyboard by the user while executing the program.[Hints=ut+1/2 at2]
24)  Write a program to input complete date of birth of a person then determine his/her present age.
25)   Write a program to calculate area of sphere.[hint:area=4/3Ï€r3]
26)  Write a program to create three different functions for calculating and printing sum,difference and product of two entered numbers.
27)  Write a program to calculate area of triangle where the values of three sides are given.
[hint:area=s(s-a)(s-b)(s-c) where s=(a+b+c)/2
28)  Write a program to check whether the entered number is exactly divisible by 13 or not.
29)  Write a program to display an entered number in reverse order.
30)  Write a program to calculate LCM of any two entered numbers.
31)  Write a program to display the entered string in reverse order.
32)  Write a program to convert temperature farenheight to equivalent centigrade.
33)  Write a program to check whether entered number is palindrome or not.
34)  Write a program to calculate and print the product of each digit of user entered number.
C .Write a program to display the following series:
1.      1  8   27 ……..upto 10th term
2.      2   1   3  4   11   upto 11th term
3.      50  45   35…….5
4.      1
22
333
4444
55555
5.      97531
9753
975
97
9

D.Write a program to display the following patterns:
1)      *SCIENCE*
*CIENCE*
    *IEN*
                  *E*

2)      C
COM
COMPU
COMPUTE
COMPUTERS


CHAPTER 11
FILE HANDLING IN QBASIC



1.      Answer the following questions:
a)      What is file? Differentiate between program file and data file.
b)      What is File handling?What are two access methods of data file?
c)      Differentiate between random access file and sequential access file.
d)     What are the different modes to open the sequential data file.
e)      Distinguish between output mode and append mode.
f)       Write the difference between Write# and Print # statement.
g)      What is the difference between Output and Append mode?
h)      What is the use of EOF() function?
i)        What is meant by file mode?

2.      Debug the following program:
                    i.            REM to store name and age of five persons into the data file “person.dat”.
CLS
OPEN”Person.dat” for INPUT AS#1
For I= 1 to 5
INPUT”Name”;N$
INPUT”Age”;A
INPUT#1,N$,A
ClOSE FILE
END

                  ii.            REM
CLS
OPEN “std.inf” for append as#5
While not EOF(5)
Read #1,N$,A<B<C
T=A+B+C
PRINT total
LOOP
END

3.Write functions of the following statements:
a.       Line Input #
b.      Input$
c.       EOF( )
d.      Mkdir
e.       Shell
f.       Name
g.      Kill

4.Read the following program and answer the questions asked:
a.       CLS
OPEN”Student.dat”for Append AS#1
DO
INPUT”Name of teacher”;N$
INPUT”Faculty”;F$
INPUT”Salary”;sal
Write #1,N$,F$,sal
INPUT “Any more”;y$
LOOP WHILE Ucase$(y$)=”y”
CLOSE #1
End
Questions
1.      What is the purpose of “append “in the second line of program?
2.      What happens if we change the statement write #1, to print#1?

b.      CLS
OPEN”SLC.dat”for Input AS#5
DO WHILE NOT EOF(5)
Line Input#5,Rec$
PRINT  Rec$
LOOP
CLOSE#5
END
Questions
1)      What is the difference between INPUT# and line input#statement?
2)      In which case,the program will give the error message”File not found”?

LAB ACTIVITIES
1.      Write QBASIC program to solve the following problems.
a)      Write a program to open a data file”INFO.DAT” in output mode and store information of employees.Data file should store information such as employees name,post,department and salary.
b)      Write a program to display all the records of sequential data file”Account.dat” on the screen. The data file has the following records:Name,Age and Phone no.
c)      Write a program that allows us to store Name,Department,Post and Salary of employee into a data file “STAFF.DAT”.The program should prompt to the user for adding next records.
d)     Write a menu drive QBASCIC program to handle the following cases:
Case 1: to enter the data refer to Name,Address and Telephone number for 10 persons into a sequential data file”ADDRESS.DAT”
Case 2:to display the records from”ADDRESS.DAT”
Case 3: to quit the program.
e)      A doctor keeps name,age and sex of his patients in a sequential data file “PATIENT.DAT”. Write a QBASIC program to count the number of patient record in the file display only female patients data.
f)       A sequential data file”ABC.REC” contains the name and marks secured  by students in 3 subjects.Assuming the mark for each subject is 32, write a QBASIC program to count the number of passed and no of failed students.
g)      A sequential data file”STUDENT.DAT” contains ten students name,Roll,House,Address.Write a program to read and display last five student’s record.
h)      Name,age and country of the visitors are stored in a sequential file”VISIT.DAT”.Write a program to count and print the number of records inside that file as well as display all the records whose name starts from ‘A’ or ‘a’.
i)        Write a program to search and display only those records according to the entered name by the user from the data file”PERSON.DAT”,(Note:The file contains Name,Address and Phone number as field names).
j)        Write a program to delete some records according to the user’s choice from the data file “Person.DAT”. The data file contains Name,Address and Phone number as field names.
k)      Write a program to add new record in existing data file “Record.dat”.The file contains name,age,address as fields.
l)        Write a program to store book’s name,author and price of the book in a sequential data file”store.dat”.The program provides facility to enter more records.
m)    Write a program to open a sequential file”inform.dat” in output mode to keep various data including name,occupation,address and phone number of persons.
n)      A sequential data file”salary.inf”contains employees name,post,marital status and salary.Write a program to read and display entire data along with 10% tax of salary.
o)      Write a program to read students name and marks in five different subjects from the data file”student.dat” then calculate total marks,percent also determine division according to SLC rule.Finally display all the data in appropriate format.
p)      A data file”Butwal.txt”contains numerous records of citizens including name,nationality,father’s name,date of birth and contact number.Write a program to read all data then display only those data of citizens’s which are located from 10th to 15th position of the data file.
q)      Write a program to read name,post and salary of staff from the data file”staff.dat” then increase salary of staff by 20% if salary is more than 25000/otherwise increase by 15%
r)        Write a program to store five students ID,name,college,stream (science/management) and annual fee in the data file”college.txt”.Make option for more requests.
s)       Nepal Bank Limited Kathmandu needs to keep records of the customers including name,account number,account type (current/saving/fixed/others) and rate of interest.Write a program to create such a serial file “Bank.dat” which helps to do so.
t)       Write a program to display whole the contents of data file”person.txt”
u)      A sequential data file”school.txt” contains few data including students ID,Name,Class, Section,Roll number,Parents name,address and phone number.Write a program to read entire data then remove the data of particular student according to his /her ID entered by the user.
v)      Write a program to open a data file”hospital.dat” in output mode and perform the activities as mentioned below.
                    i.            To store patient’s ID,name, current age, gender, address and contact number.
                  ii.            To display only those patients’ data whose age is more than 25 years and live in “BUTWAL”.
                iii.            To display those patient’s data whose name starts with the letter “R” or”r”.
                iv.            To count total number of patients existing in the data file.
                  v.            To add five more patients data at the end of data file.



CHAPTER 12
STRUCTURED PROGRAMMING:C LANGUAGE


1.      Fill in the blanks:
a)      A large program is divided into separate independent units are called________________.
b)      The structure programming emphasis not to use ____________ Statement in the program.
c)      C is _______________programming language.
d)     The C language was originally developed by ________________ at Bell labs in the mid-1970.
e)      ________________ are the reserved words in the program.
f)       The % d format string is used for ____________________.
g)      Generally C program is written _________________  letters.
h)      The C programming has total ____________ keywords.
i)        A float data type has ____________ bytes.


2.      Match the following:
a)               Column A                                      Column B
           % s                                                 Integer
           % c                                                 Character
           % d                                                 String     
            % f                                                 Float


b)                 Column A                                      Column B
                   Printf()                                            input         
                   Scanf()                                            Header file
                   <Stdio.h>                                        Pre-processor 
                   # include                                         output

     3.Answer the following questions:
a)      What is structure programming?Writetwo examples of structure programming language.
b)      List any two characteristics of structure programming.
c)      What is C language? Who developed it?
d)     Distinguish between C and Qbasic.
e)      List any two common data types of C language.
f)       List any two header files of C language.
g)      Mention any two data type modifier in C language.
h)      What is keyword?Write any two keywords of C language.

4. Write full forms of the following:
    BCPL, ANSI, TC, SPL