Sunday, 16 December 2018

11th C Cloud Computers parallel computinmg

Concept of Cloud Computers: (12 minutes)
Click Here

Introduction to Parallel Computing: (3 minutes)
Click Here

Thursday, 29 November 2018

11-C String comparison in python

You can use ( > , < , <= , <= , == , !=  ) to compare two strings. Python compares string lexicographically i.e using ASCII value of the characters.
Suppose you have str1  as "Mary"  and str2  as "Mac" . The first two characters from str1  and str2 ( M  and M ) are compared. As they are equal, the second two characters are compared. Because they are also equal, the third two characters ( r  and c) are compared. And because 'r'  has greater ASCII value than 'c' , str1  is greater than str2 .
Here are some more examples:

Wednesday, 21 November 2018

11-C Prog- Write a algorithm and program sorting the elements using Bubble sort through function

                                                                                            Graphics; Click Here
def b_s(n):
    l=[]
    for i in range(n):
        num=int(input("enter the number:"))
        l.append(num)
    #bubble sort
    for k in range(0,n,1):
        for j in range(0,n-1,1):
            if l[j]>l[j+1]:
                t=l[j]
                l[j]=l[j+1]
                l[j+1]=t
            print("Stage=",k+1,"inside list=",j+1,"=",l)
        print("Stage=",k+1,"Final list=",l)
    print("Final Result list=:",l)
#main program
n=int(input("enter size of list:"))
print("size of list:",n)
b_s(n)


Input
enter size of list:5
size of list: 5
enter the number:5
enter the number:2
enter the number:7
enter the number:10
enter the number:1

Output
Stage= 1 inside list= 1 = [2, 5, 7, 10, 1]
Stage= 1 inside list= 2 = [2, 5, 7, 10, 1]
Stage= 1 inside list= 3 = [2, 5, 7, 10, 1]
Stage= 1 inside list= 4 = [2, 5, 7, 1, 10]
Stage= 1 Final list= [2, 5, 7, 1, 10]

Stage= 2 inside list= 1 = [2, 5, 7, 1, 10]
Stage= 2 inside list= 2 = [2, 5, 7, 1, 10]
Stage= 2 inside list= 3 = [2, 5, 1, 7, 10]
Stage= 2 inside list= 4 = [2, 5, 1, 7, 10]
Stage= 2 Final list= [2, 5, 1, 7, 10]

Stage= 3 inside list= 1 = [2, 5, 1, 7, 10]
Stage= 3 inside list= 2 = [2, 1, 5, 7, 10]
Stage= 3 inside list= 3 = [2, 1, 5, 7, 10]
Stage= 3 inside list= 4 = [2, 1, 5, 7, 10]
Stage= 3 Final list= [2, 1, 5, 7, 10]

Stage= 4 inside list= 1 = [1, 2, 5, 7, 10]
Stage= 4 inside list= 2 = [1, 2, 5, 7, 10]
Stage= 4 inside list= 3 = [1, 2, 5, 7, 10]
Stage= 4 inside list= 4 = [1, 2, 5, 7, 10]
Stage= 4 Final list= [1, 2, 5, 7, 10]

Stage= 5 inside list= 1 = [1, 2, 5, 7, 10]
Stage= 5 inside list= 2 = [1, 2, 5, 7, 10]
Stage= 5 inside list= 3 = [1, 2, 5, 7, 10]
Stage= 5 inside list= 4 = [1, 2, 5, 7, 10]
Stage= 5 Final list= [1, 2, 5, 7, 10]


Final Result list=: [1, 2, 5, 7, 10]

Input
enter size of list:5
size of list: 5
enter the number: 6
enter the number: 5
enter the number: 4
enter the number: 3
enter the number: 1

Output
Stage= 1 inside list= 1 = [5, 6, 4, 3, 1]
Stage= 1 inside list= 2 = [5, 4, 6, 3, 1]
Stage= 1 inside list= 3 = [5, 4, 3, 6, 1]
Stage= 1 inside list= 4 = [5, 4, 3, 1, 6]
Stage= 1 Final list= [5, 4, 3, 1, 6]

Stage= 2 inside list= 1 = [4, 5, 3, 1, 6]
Stage= 2 inside list= 2 = [4, 3, 5, 1, 6]
Stage= 2 inside list= 3 = [4, 3, 1, 5, 6]
Stage= 2 inside list= 4 = [4, 3, 1, 5, 6]
Stage= 2 Final list= [4, 3, 1, 5, 6]

Stage= 3 inside list= 1 = [3, 4, 1, 5, 6]
Stage= 3 inside list= 2 = [3, 1, 4, 5, 6]
Stage= 3 inside list= 3 = [3, 1, 4, 5, 6]
Stage= 3 inside list= 4 = [3, 1, 4, 5, 6]
Stage= 3 Final list= [3, 1, 4, 5, 6]


Stage= 4 inside list= 1 = [1, 3, 4, 5, 6]
Stage= 4 inside list= 2 = [1, 3, 4, 5, 6]
Stage= 4 inside list= 3 = [1, 3, 4, 5, 6]
Stage= 4 inside list= 4 = [1, 3, 4, 5, 6]
Stage= 4 Final list= [1, 3, 4, 5, 6]

Stage= 5 inside list= 1 = [1, 3, 4, 5, 6]
Stage= 5 inside list= 2 = [1, 3, 4, 5, 6]
Stage= 5 inside list= 3 = [1, 3, 4, 5, 6]
Stage= 5 inside list= 4 = [1, 3, 4, 5, 6]
Stage= 5 Final list= [1, 3, 4, 5, 6]

Final Result list=: [1, 3, 4, 5, 6]
>>>

11-C Prog- Counting the number of operation while sorting the elements


#INSERTION SORTING

def ins_sort(n):                                                         
    alist=[]
    for i in range(n):
        num=int(input("Enter the number"))
        alist.append(num)
    count=0
    print("Original list is:",alist)
 
    for i in range (1,len(alist)):
        key=alist[i]
        j=i-1
        while j>=0 and key < alist[j]:
            alist[j+1]=alist[j]
            j=j-1
        else:
            alist[j+1]=key
        count=count+1

        print("steps=",i,"list=",alist)
     
    print("list after sorting using insertion sort:",alist)
    print("The number of operation while sorting the elements in insertion sort method is=",count)

#main program
n=int(input("Enter the size of insertion sort"))
ins_sort(n)


>>>
= RESTART: C:/Users/Student/AppData/Local/Programs/Python/Python37-32/ins.py =
Input

Enter the size of insertion sort 5
Enter the number 6
Enter the number 5
Enter the number 4
Enter the number 3
Enter the number 1
Original list is: [6, 5, 4, 3, 1]

Output
steps= 1 list= [5, 6, 4, 3, 1]
steps= 2 list= [4, 5, 6, 3, 1]
steps= 3 list= [3, 4, 5, 6, 1]
steps= 4 list= [1, 3, 4, 5, 6]
list after sorting using insertion sort: [1, 3, 4, 5, 6]
The number of operation while sorting the elements in insertion sort method is = 4




#BUBBLE SORTING

def b_s(n):
    l=[]
    for i in range(n):
        num=int(input("enter the number:"))
        l.append(num)
   count=0
    #bubble sort
    for k in range(0,n,1):
        for j in range(0,n-1,1):
            if l[j]>l[j+1]:
                t=l[j]
                l[j]=l[j+1]
                l[j+1]=t
           count=count+1
            print("Stage=",k+1,"inside list=",j+1,"=",l)
        print("Stage=",k+1,"Final list=",l)
    print("Final Result list=:",l)
    print("The number of operation while sorting the elements in bubble sort method is=",count)

#main program
n=int(input("enter size of list:"))
print("size of list:",n)
b_s(n)



Input
enter size of list:5
size of list: 5
enter the number: 6
enter the number: 5
enter the number: 4
enter the number: 3
enter the number: 1

Output
Stage= 1 inside list= 1 = [5, 6, 4, 3, 1]
Stage= 1 inside list= 2 = [5, 4, 6, 3, 1]
Stage= 1 inside list= 3 = [5, 4, 3, 6, 1]
Stage= 1 inside list= 4 = [5, 4, 3, 1, 6]
Stage= 1 Final list= [5, 4, 3, 1, 6]

Stage= 2 inside list= 1 = [4, 5, 3, 1, 6]
Stage= 2 inside list= 2 = [4, 3, 5, 1, 6]
Stage= 2 inside list= 3 = [4, 3, 1, 5, 6]
Stage= 2 inside list= 4 = [4, 3, 1, 5, 6]
Stage= 2 Final list= [4, 3, 1, 5, 6]

Stage= 3 inside list= 1 = [3, 4, 1, 5, 6]
Stage= 3 inside list= 2 = [3, 1, 4, 5, 6]
Stage= 3 inside list= 3 = [3, 1, 4, 5, 6]
Stage= 3 inside list= 4 = [3, 1, 4, 5, 6]
Stage= 3 Final list= [3, 1, 4, 5, 6]


Stage= 4 inside list= 1 = [1, 3, 4, 5, 6]
Stage= 4 inside list= 2 = [1, 3, 4, 5, 6]
Stage= 4 inside list= 3 = [1, 3, 4, 5, 6]
Stage= 4 inside list= 4 = [1, 3, 4, 5, 6]
Stage= 4 Final list= [1, 3, 4, 5, 6]

Stage= 5 inside list= 1 = [1, 3, 4, 5, 6]
Stage= 5 inside list= 2 = [1, 3, 4, 5, 6]
Stage= 5 inside list= 3 = [1, 3, 4, 5, 6]
Stage= 5 inside list= 4 = [1, 3, 4, 5, 6]
Stage= 5 Final list= [1, 3, 4, 5, 6]

Final Result list=: [1, 3, 4, 5, 6]
The number of operation while sorting the elements in bubble sort method is = 20









Tuesday, 13 November 2018

11-C 29 Write a algorithm and python program sorting the numbers using insertion through function

                                                                                  Graphics Click Here


def ins_sort(n):                                                         
    alist=[]
    for i in range(n):
        num=int(input("Enter the number"))
        alist.append(num)
   
    print("Original list is:",alist)
 
    for i in range (1,len(alist)):
        key=alist[i]
        j=i-1
        while j>=0 and key < alist[j]:
            alist[j+1]=alist[j]
            j=j-1
        else:
            alist[j+1]=key
        print("step=",i,"list=",alist)
     
    print("list after sorting using insertion sort:",alist)

#main program
n=int(input("Enter the size of insertion sort"))
ins_sort(n)


>>> 
= RESTART: C:/Users/Student/AppData/Local/Programs/Python/Python37-32/ins.py =

Input
Enter the size of insertion sort 5
Enter the number 6
Enter the number 5
Enter the number 4
Enter the number 3
Enter the number 1
Original list is: [6, 5, 4, 3, 1]

Output
steps= 1 list= [5, 6, 4, 3, 1]
steps= 2 list= [4, 5, 6, 3, 1]
steps= 3 list= [3, 4, 5, 6, 1]
steps= 4 list= [1, 3, 4, 5, 6]
list after sorting using insertion sort: [1, 3, 4, 5, 6]
>>> 



Thursday, 25 October 2018

Data File Handling in C++

12-D Blue-print July-2018 (24 marks 1 hour test)


* CBSE Board paper Text file 2mark problem video:

( 9 minutes)  click here


* CBSE Board paper output finding in the file 1 mark:

 Click Here


* CBSE Board Paper output finding file handling-2017 1 mark:  click Here


* CBSE final computer science exam's Binary file based Question in c++-2016 Click Here


*GET 100% MARKS IN COMPUTER SCIENCE 12th CBSE - 06marks(FILE HANDLING)-20minutes: Click Here






Date of Test: 27-07-2018, Friday
Q2.  OOPS (12 marks
  Set-1
    1.         Direct question-2 marks
     2.       Constructor and Destructor-2marks
     3.       Class Writing Program -4marks
     4.       Inheritance Program Problem solving -4 marks

Q2.  Data File Handling  and OOPS (12 marks)
Set-2
     1.       Pointer Programming output probem-2 marks
     2.       Output problem Binary Programming-1 marks
     3.       Text file logic(function only) writing -2 marks
     4.        Binary File logic(function only) writing-3 marks
     5.     Class Writing Program -4 marks
         

Friday, 12 October 2018

April-18 Q.No.-1 C++ Revision Tour and11th Syllabus (12)

* Chapter 01 or Unit 01 4 years Question with Answer: Click Here 2018, 17, 16, 15)



* CLASS 12 BOARD EXAM SOLVED 2016, 2017 COMPUTER SCIENCE QUESTION PAPER C++- 36minutes: click Here



* CLASS 12-D COMMUNICATION AND * * *NETWORK CONCEPTS IN HINDI(38 MINUTES) : click here

Sunday, 7 October 2018

Q. No. 7 Computer Networking (10): Class 12th CS



1. Networking and Communication for Class 12th Computer Science (34 minutes):
    Click Here

2. NETWORKING AND COMMUNICATION || VIDEO 1 || TOPOLOGY AND PLACEMENT OF DEVICES|| GET 100% MARKS IN CS : (7 minutes) :Click Here

CLASS 12 CS COMMUNICATION AND NETWORK CONCEPTS PART 1 IN HINDI: 

Click Here




Evolution of Networking: ARPANET, Internet, Interspace Different ways of sending data across the network with reference to switching techniques (Circuit and Packet switching).

 Data Communication terminologies: Concept of Channel, Bandwidth (Hz, KHz, MHz) and Data transfer rate (bps, Kbps, Mbps, Gbps, Tbps).

 Transmission media: Twisted pair cable, coaxial cable, optical fiber, infrared, radio link, microwave link and satellite link.
 Network devices: Modem, RJ45 connector, Ethernet Card, Router, Switch, Gateway, wifi card.

 Network Topologies and types: Bus, Star, Tree, PAN, LAN, WAN, MAN.

 Network Protocol: TCP/IP, File Transfer Protocol (FTP), PPP, SMTP, POP3 Remote Login (Talent), and Internet Wireless/Mobile Communication protocol such as GSM, CDMA, GPRS, and WLL.
Mobile Telecommunication Technologies : 1G, 2G, 3G and 4G; Mobile processors;
            Electronic mail protocols such as SMTP, POP3
            Protocols for Chat and Video Conferencing VOIP
           Wireless technologies such as Wi-Fi and WiMax

Network Security Concepts:
               Threats and prevention from Viruses, Worms, Trojan horse, Spams
                Use of Cookies, Protection using Firewall, https;
                 ndia IT Act, Cyber Law, Cyber Crimes, IPR issues, hacking.

Introduction To Web services: WWW, Hyper Text Markup Language (HTML), Extensible Markup Language (XML); Hyper Text Transfer Protocol (HTTP); Domain Names; URL; Website, Web browser, Web Servers; Web Hosting, Web Scripting – Client side (VB Script, Java Script, PHP) and Server side (ASP, JSP, PHP), Web 2.0 (for social networking)