Thursday 29 February 2024

Sanchar Saathi Web Portal Kya hai

Sanchar Saathi portal दूरसंचार विभाग की एक नागरिक केंद्रित पहल है, जिसका उद्देश्य मोबाइल उपभोक्ताओं को सशक्त बनाना, उनकी सुरक्षा को मजबूत करना और सरकार की नागरिक केंद्रित पहलों के बारे में जागरूकता बढ़ाना है। Sanchar Saathi portal निम्नलिखित बातों को करने द्वारा नागरिकों को सशक्त बनाता है:

1. उनके नाम पर जारी किए गए मोबाइल कनेक्शन को जानना और उन्हें अपने मोबाइल नंबर का उपयोग करके लॉगिन करके अनुरोध करना। इसके लिए TAFCOP मॉड्यूल का उपयोग किया जाता है।

2. अपना खोया या चोरी हुआ मोबाइल ब्लॉक या ट्रैक करना। इसके लिए CEIR मॉड्यूल का उपयोग किया जाता है। 

3. अपने वायरलाइन इंटरनेट सर्विस प्रोवाइडर को जानना। इसके लिए KYI मॉड्यूल का उपयोग किया जाता है। 

4. भारतीय नंबर के साथ आने वाले अंतर्राष्ट्रीय कॉल को रिपोर्ट करना। इसके लिए RICWIN मॉड्यूल का उपयोग किया जाता है। 

5. नए या पुराने मोबाइल फोन खरीदते समय डिवाइस की वास्तविकता की जांच करना। इसके लिए KYM मॉड्यूल का उपयोग किया जाता है।

संचार साथी एक सरकारी वेब पोर्टल है, जो भारतीय मोबाइल उपयोगकर्ताओं को उनके खोए गए स्मार्टफोन को ट्रैक और ब्लॉक करने में मदद करता है। इसका उद्देश्य है आईडेंटिटी चोरी, फॉर्ज्ड केवाईसी, और बैंकिंग धोखाधड़ी जैसे अपराधों को रोकना। इस पोर्टल का उपयोग करके मोबाइल फोन उपयोगकर्ताएं अपने नाम से जुड़े मोबाइल कनेक्शन को जान सकती हैं, उन्हें उनकी जरूरत न होने वाले कनेक्शन को डिस्कनेक्ट करने की अनुमति मिलती है, खोए गए मोबाइल फोन को ब्लॉक/ट्रेस कर सकती हैं, और नए/पुराने मोबाइल फोन खरीदते समय डिवाइस की असलीता को जान सकती हैं। संचार साथी में कई मॉड्यूल हैं जैसे CEIR, TAFCOP, KYI, RICWIN आदि। इसके अलावा, Keep Yourself Aware सुविधा अंत उपयोगकर्ता सुरक्षा, दूरसंचार, और जानकारी सुरक्षा से जुड़े नवीनतम अपडेट और जागरूकता सामग्री प्रदान करती है ।

इस पोर्टल के कुछ महत्वपूर्ण मॉड्यूल हैं:

CEIR (सेंट्रल इक्विपमेंट आईडेंटिटी रजिस्टर): इसमें आप अपने खोए या चोरी हुए मोबाइल को ब्लॉक कर सकते हैं।
TAFCOP (अपने मोबाइल कनेक्शन को जानें): इसमें आप अपने नाम से जुड़े मोबाइल कनेक्शन की संख्या जान सकते हैं।

Tarang Sanchar Web Portal Kya hai

तरंग संचार एक वेब पोर्टल है, जो मोबाइल टॉवर्स और इलेक्ट्रोमैग्नेटिक फ्रीक्वेंसी (ईएमएफ) इमिशन कंप्लायंस के बारे में जानकारी साझा करने के लिए है। इसे दूरसंचार विभाग ने उद्योग के साथ सार्वजनिक निजी साझेदारी (पीपीपी) मोड में विकसित किया है। इस पोर्टल के माध्यम से लोग अपने क्षेत्र में मोबाइल टॉवर्स से निकलने वाले विकिरण को ट्रैक कर सकते हैं और उनकी नियमितता की जांच कर सकते हैं।

Tuesday 20 February 2024

Projection and Selection Practice Questions in relational algebra

 Projection and Selection Practice Questions:

Student

S_ID

NAME

Branch

1

A

CS

2

B

IT

3

C

CS

4

D

CS

5

E

EE

6

F

EC

7

G

EE


 

 

  1. Find the names of all students from CS branch.

Π name (σ Branch = ‘CS’ (Student))



Account (account_no, branch_name, balance)

  • Find those account numbers where balance is less than 1000.

Π account_no (σ balance<1000 (Account))


Loan(loan_no, branch_name, amount) 

  • Find those loan numbers which are from Delhi branch with amount greater than 1000.

Π loan_no (σ branch_name=’Delhi’ ^ amount>1000 (Loan))

 

Branch (Branch_name, Branch_city, assets) 

  • Find branch_name and branch_city with assets more than 100000.

Π branch_name , branch_city (σ assets>100000 (Branch))


Projection Operator in Relational Algebra

 

Projection Operator-

 

  • Projection Operator (π) is a unary operator in relational algebra that performs a projection operation.
  • It displays the columns of a relation or table based on the specified attributes.
  • It is a fundamental / Basic operator
  • It is a unary operator

Syntax-

 

π<attribute list>(R)

 

Example-

 

Consider the following Student relation-

IDNameSubjectAge
100AshishMaths19
200RahulScience20
300NainaPhysics20
400SameerChemistry21

Student


Result for Query πName, Age(Student)-

 

NameAge
Ashish19
Rahul20
Naina20
Sameer21


Result for Query πID , Name(Student)-

IDName
100Ashish
200Rahul
300Naina
400Sameer

 

Important Points-

 

Point-01:

 

  • The degree of output relation (number of columns present) is equal to the number of attributes mentioned in the attribute list.

Point-02:

 

  • Projection operator automatically removes all the duplicates while projecting the output relation.
  • So, cardinality of the original relation and output relation may or may not be same.
  • If there are no duplicates in the original relation, then the cardinality will remain same otherwise it will surely reduce.

 

Point-03:

 

  • If attribute list is a super key on relation R, then we will always get the same number of tuples in the output relation.
  • This is because then there will be no duplicates to filter.

Point-04:

 

  • Projection operator does not obey commutative property i.e.

π <list2> (π <list1> (R)) ≠ π <list1> (π <list2> (R))


Point-05:

 

  • Selection Operator performs horizontal partitioning of the relation.
  • Projection operator performs vertical partitioning of the relation.

 

Point-06:

 

  • There is only one difference between projection operator of relational algebra and SELECT operation of SQL.
  • Projection operator does not allow duplicates while SELECT operation allows duplicates.
  • To avoid duplicates in SQL, we use “distinct” keyword and write SELECT distinct.
  • Thus, projection operator of relational algebra is equivalent to SELECT operation of SQL.

















Selection Operator in Relational Algebra

 

Selection Operator-

 

·   Selection Operator (σ) is a unary operator in relational algebra that performs a selection operation.

·   It selects those rows or tuples from the relation that satisfies the selection condition.

·   It is a fundamentals / Basic operator

·   It is a Unary Operator

 

σ<selection_condition>(R)

 

·   Select tuples from a relation “Books” where subject is “database”

σsubject = “database” (Books)

·   Select tuples from a relation “Books” where subject is “database” and price is “450”

σsubject = “database”  price = “450” (Books)

·   Select tuples from a relation “Books” where subject is “database” and price is “450” or have a publication year after 2010

σsubject = “database”  price = “450”  year >”2010″ (Books)

Important Points-

 

Point-01:

 

·   We may use logical operators like  , ! and relational operators like  = , ≠ , > , < , <= , >= with the selection condition.

Point-02:

 

·   Selection operator only selects the required tuples according to the selection condition.

·   It does not display the selected tuples.

·   To display the selected tuples, projection operator is used.

Point-03:

 

·   Selection operator always selects the entire tuple. It can not select a section or part of a tuple.

Point-04:

 

·   Selection operator is commutative in nature i.e.

σ A B (R) = σ  A (R)

OR

σ (σ A(R)) = σ (σ B(R))

 

Point-05:

 

·   Degree of the relation from a selection operation is same as degree of the input relation.

Point-06:

 ·        The number of rows returned by a selection operation is obviously less than or equal to the number of rows in the original table.

·        Minimum Cardinality = 0

·        Maximum Cardinality = |R|

 

 

Friday 16 February 2024

Class 11 CS Practical - 52

 

52 - Write a program in Python to find the mean of numeric values stored in the given tuple.

T=eval(input("Enter a numeric tuple: "))

print("Tuple is: \n", T)

mean=sum(T)/len(T)

print("Mean of the numeric values of the tuple = ",mean)


Output:

Enter a numeric tuple: (2, 8, 9, 6, 5)

Tuple is: 

 (2, 8, 9, 6, 5)

Mean of the numeric values of the tuple =  6.0





Thursday 15 February 2024

Class 11 CS Practical - 51

 

51 - Write a program in Python to count the frequency of all elements of a tuple


T= (10, 20, 30, 20, 40, 30, 20, 50)

print("Tuple is: ",T)

Uni= ()

for i in T:

    if i not in Uni:

        Uni = Uni + (i,)

for i in Uni:

    print(i,":",T.count(i))


Output:

Tuple is:  (10, 20, 30, 20, 40, 30, 20, 50)

10 : 1

20 : 3

30 : 2

40 : 1

50 : 1

Class 11 CS Practical - 50

 

50 - Write a program in Python to count the frequency of all elements of a list.

L= [10, 20, 30, 20, 40, 30, 20, 50]

print("List is: ",L)

Uni= []

Freq= []

for i in L:

    if i in Uni:

        index=Uni.index(i)

        Freq[index]+= 1

    else:

        Uni.append(i)

        Freq.append(1)

for i in range(len(Uni)):

    print(Uni[i],":",Freq[i])


Output:

List is:  [10, 20, 30, 20, 40, 30, 20, 50]

10 : 1

20 : 3

30 : 2

40 : 1

50 : 1

Class 11 CS Practical - 49

 

49 - WAP in the Python to create a list and find the mean of all numeric values stored in the list.


L=eval(input("Enter a list: "))

n=len(L)

N=[]

for i in L:

    if isinstance(i,int) or isinstance(i,float):

        N.append(i)

print("Mean of numeric values stored in the list:")

print(sum(N)/len(N))


Output:

Enter a list: [5,'A',9,6.5,'Python',3.5]

Mean of numeric values stored in the list:

6.0



Class 11 CS Practical - 48

 

48 - WAP in Python to create a dictionary with name of employee, their salary and access them.


Emp={}

c='y'

while c in 'yY':

    name=input("Enter the name of employee: ")

    salary=float(input("Enter the salary of employee: "))

    Emp[name]=salary

    c=input("Do you want to add more emp(y/n): ")

print("Details of Employee:")

print(Emp)

Output:

Enter the name of employee: Ram

Enter the salary of employee: 38545

Do you want to add more emp(y/n): y

Enter the name of employee: Raj

Enter the salary of employee: 45854

Do you want to add more emp(y/n): y

Enter the name of employee: Aman

Enter the salary of employee: 47825

Do you want to add more emp(y/n): n

Details of Employee:

{'Ram': 38545.0, 'Raj': 45854.0, 'Aman': 47825.0}


Class 11 CS Practical - 47

 47 - WAP in Python to input a string and display the frequency of each character using dictionary


S=input("Enter a string: ")

F={}

for i in S:

    if i in F:

        F[i]+=1

    else:

        F[i]=1

print("Frequency of characters in the given string: ")

for i, j in F.items():

    print(i,":",j)



Output:

Enter a string: S P SHARMA

Frequency of characters in the given string:

S : 2

  : 2

P : 1

H : 1

A : 2

R : 1

M : 1