Santa Claus SSC GK.in : Computer Language
Showing posts with label Computer Language. Show all posts
Showing posts with label Computer Language. Show all posts

Thursday, November 13

Class-8 Chapter 7( Conditional Statements in Python)

 Chapter 7: Conditional Statements in Python

Exercises (Pgs. 130-132)

A. Tick (✓) the correct answers.

1. b

2. b

3. b

4. b

5. b

B. Fill in the blanks.

1. loop

2. condition

3. else

4. sequential

5. Slicing

C. Write T for True and F for False.

1. T

2. T

3. F

4. T

5. F



A. Answer the following questions in short .

Q.1        What is Python ?

 Ans:-    Python is a programing language. We can create mobile app, website and software using it's code. 


Q.2        Who developed Python and When ?

Ans:-    Guido Van Rossum developed Python in February 1991


Q.3        Name any four app or website developed in Python. Ab

Ans:-    Youtube , Google, Quara and Dropbox  is developed using python language. 


Q.4        Why Python is most popular then other language ?

Ans:-    It is simple to read and write. All codes are written in English meaningful. 


Q.5       Name the latest version of Python ?

Ans:-   Its latest version is "Python 3.14.0 in  October 2025"


Q.6    Write features of python . 

Ans:-    Some features of Python are :


Easy to use 
Object Oriented
Expressive Language
Interpreter Language
It's Completeness
Cross-platform Language
Free and Open Source
Variety of Usage /Application 

B. Answer the following questions in long.

Q.1    Explain the purpose of conditional statements in Python Programming .

Ans:- The conditional statements enable decision-making by choosing a block of code to execute based on the outcome of the given condition. Every decision involves an option between two alternatives ‘Yes’ and ‘No’.


Q.2    What is the difference between an if statement and an if-else statement ?

Ans:- 'if ' statement :- Executes a block of code if a condition is `True`. If the condition is `False`, the code inside the `if` block is skipped, and no alternative is provided.

'if-else' statement:- Executes one block of code if the condition is `True`, and another block if the condition is `False`, ensuring that exactly one block of code runs based on the condition.

Q.3    How do iterative statement differ from sequential statement in Python ?

Ans:-    Iterative statements :- in Python, such as `for` and `while` loops, allow code to be executed repeatedly as long as a specified condition holds true. They are useful for repetitive tasks or when the number of iterations is unknown or dynamic.


Sequential statements:- On the other hand, execute instructions one after another in the exact order they appear in the code. Each line of code runs once, without any repetition or looping. Sequential statements are the default flow of control in Python.


Q.4    Describe the purpose and usage of the append() ,insert() , and remove () methods in Python lists. 

Ans:-    . Python provides several built-in methods to manipulate lists. Here are some common ones:

append( ):- Adds an element to the end of the list.

           Example:-  my _ list.append(‘orange’) # Adds ‘orange’ to the end of the list


• insert( ):- Inserts an element at the specified position.

            Example:-  my _ list.insert(2, ‘grape’) # Inserts ‘grape’ at index 2


remove( ):- Removes the first occurrence of the specified element.

           Example:-  my _ list.remove(‘apple’) # Removes the first occurrence of ‘apple’


Q.5    What is the pop() method in Python , and how can it be useful when modifying lists ? 

Ans:-    The pop( ) method removes and returns an element at the specific index. If no index is provided, it removes the last item. 

removed _ item = my _ list.pop(2) # Removes and returns the item at index 2



Python Programs 


1. Add Two Numbers


num1 = 1

num2 = 6

sum = num1 + num2

print('The sum of two number is ', sum)


2. Add the Numbers with User Input


num1 = input('Enter first number')

num2 = input('Enter second number')

Sum = float(num1) + float(num2)

print('the sum of two number is', sum)


3 . Checking Even or Odd Number

num = int(input("Enter a number"))
if num % 2 == 0 :
        print("The number is even")
else :
       print("The number is odd")

4. Checking Age

age = int(input("Enter your age"))
if age >= 18 :
        print("You are an adult")
else :
        print("You are not an adult")

5. Checking Temperature

temperature = int(input("Enter the temperature"))
if temperature > 30 :
        print("It's a hot day")
else :
        print("It's a cool day")


6. Find single or double digit number in python by user input.


a = int(input("Enter your number"))

if (a < 9) :

        print("this is single digit number")

else :

        print("this is double digit number")


Output

Enter your number - 2

This is single digit number


7.    Print your name and class


print ("Ayushi Bharti")

print ("class-7")


Output

Ayushi Bharti

class-7


8.    Add Two Strings

fname = "Shree"

sname = "  Ram"

Tname = fname + " " + sname

print (Tname)


Output

Shree Ram


9.    Print any string in Uppercase by user Input.

text = input ("Enter a string: ")

print ("Uppercase: ", text.upper())


Output

Enter a string: ram

RAM


10.    Print any string in lowercase by user Input.

text = input("Enter a string :")

print("lowercase :",text.lower())


Output

Enter a string : RAM

ram


11.    Make a grading system using python program.


Marks = Int(input("enter your marks"))

if (Marks >= 90):

    print("Grade A+")

elif (Marks >= 75):

    print("Grade A")

elif (Marks >= 60):

    print("Grade B")

elif (Marks >= 40):

    print("Grade C")

else:

    print("fail")


Output

Enter your marks 90

Grade A+



12.    Multiply a string by user input


a = input("Enter your name:-")

z = a * 3

print(z)


Output

Enter your name :- Raghav

RaghavRaghavRaghav









Read More

Monday, May 26

MS EXCEL FOR CLASS 7 ( Ch.- 2)


DATE ;   26 /5/ 2025

CLASS     7th 

CHAPTER  02 

Formulas and functions  in Excel 
 
Checkpoint (Pg. 31)
Write T for True and F for False.
1. F
2. T
3. F

Exercises (Pgs. 41-43)
A. Tick (✓) the correct answers.
1. c
2. b
3. a
4. a
5. a

B. Fill in the blanks.
1. equals (=)
2. ampersand (&)
3. mixed
4. AVERAGE
5. DIV/0!

C. Write T for True and F for False.
1. T
2. F
3. T
4. T
5. F


    Answer the following questions in short 

Q. 1    What are formulas in excel ?

Ans    Formulas in excel are sets of instructions given by the user to perform  calculations, just like in mathematics .


Q. 2    What are operators in excel ?


Ans    Operators  are the symbols use to perform calculations such as " + " for addition " - ' for subtraction " * ' for multiplication and " / " for division .






Q.3    Explain the rules of writing formula in MS Excel? With examples
 

 Ans    Start with an equal sign ( = ) 
Example=    ("=5+3")



Q. 4    What is the full from of BIDMAS ?


 Ans    The full from of BIDMAS is   Brackets ,  Indices , division and multiplication , addition and subtraction



B.     Answer the following questions in Long.

Q.1    What are the different types of cell references in Excel ? Explain with example .


Ans:- There are three types of cell references in a formula: Relative, Absolute, and Mixed.

 Relative Cell Reference: A Relative cell reference is the most common type of reference in Excel. It is the default reference used when you create a formula. When you copy a formula that uses relative cell references to another cell, the references (both the row and column) change automatically based on the new location of the formula. This makes relative references especially useful when performing similar calculations across multiple cells.

Absolute Cell Reference: An Absolute cell reference does not change when you copy the formula to another cell. It is fixed to a specific cell. This is useful when you always want to refer to the same cell, no matter where the formula is copied. Absolute references are written with a dollar sign ($) in front of the column letter and row number. For example, $B$2 is an absolute reference.

Mixed Cell Reference: A Mixed cell reference is a combination of both Relative and Absolute cell references. In this type of reference, one part of the cell address is relative, and the other is absolute. This means that either the column reference is relative, while the row reference is absolute, or vice versa.

Q.2    What are functions in excel ? Example 
Ans:-     Functions are pre-defined formulas that help you perform specific calculations quickly and easily. These functions can be used for both simple and complex operations.
Example :- SUM functions is used to automatically calculate the total . 

Q.3    How can you prevent errors such as #DIV/0! , #REF! , and #NAME? when working with Excel formulas ?
 Ans:- You can prevent these errors by using the following methods:

#DIV/0!: This error occurs when a number is divided by zero. To avoid this, you can use an IFERROR or IF function to check for zero before performing the division. For example, =IF(B1=0, “Error”, A1/B1) will return “Error” if B1 is zero.

#REF! :- This error happens when a formula refers to an invalid cell, often caused by deleting a referenced cell. To avoid this, make sure not to delete cells that are being used in formulas or use absolute references when necessary.

#NAME? :-  This error indicated that there is a problem with the formula's syntax such as an unknown function name or type in reference . 

Q.4   Explain about Simple formula and compound formula ? 
Ans:-  Simple formula :- A simple formula contains only one operator . We can use + sign to add the numeric value example:- 5+3 or  A1+ A2 , here we used one operator so this is simple formula. 
Compound formula :-  A compound formula is used when you need more than one operator to perform a calculation . For example :- Average Marks = Total marks /number of terms and unit test , Here We used + sign for total and division sign for division, so we used two operators so this is compound formula.








Read More

Thursday, April 24

Networking concepts Class -8th



Class- 8th 


Networking Concepts 


A. Answer the following questions in short 

Q.1    How many types of network are in computer network ?

Ans:- i)    PAN ( Personal Area Network ) 
         ii)    LAN ( Local Area Network )
        iii)    MAN( Metropolitan Area Network ) 
        iv)     WAN ( Wide Area Network )   
        v)     CAN ( Campus Area Network )    

Q.2    How many types of topology are in Network ? 

   Ans:-    There are six type of topology 
        1.    Point to point Topology 
    2.    Bus Topology 
    3.    Ring Topology 
    4.   Star Topology 
    5.    Tree Topology 
    6.    Mesh Topology 




Q.3   Explain differences between Internet and Intranet ? 

Ans:-    Intranet :-     This is a private network used within an organisation ,accessible only to its members or authorised users.


Internet :-    This is public network that is open to everyone , allowing anyone to connect to it . 
 


Q.4    What do you under stand by Server ?

Ans:-    Websites are not stored on a personal computer , but on powerful computers known as servers. These servers act as large storage centres that hold information and data of websites


   







B. Answer the following question in long .

Q.1    What is computer network ,and what are its key components ? 

Ans:-    A computer network connects two or more computers or devices to share information , resources and services. 

Key components of computer network :-   Key components required for building a wired network include a Network Interface Card , Rj 45 Cables , and hubs switches to manage data flow between devices.  






Q.2    Explain the differences between a PAN, LAN and WAN . 

Ans:-     PAN -: A personal area network ( PAN) allows communication between devices like personal computers , mobile phones ,digital cameras , personal digital Assistants , and tablet ,this type of network typically covers a small area . 

LAN:-  A local area network ( LAN) is a network that connects two or more computers and other devices such as printers and scanners , within a limited area. This could be with in a single room , building or even a small campus. 

WAN:- A wide  area network connects multiple computers that are located for a part , often in different cities , countries , or even continents .These computers are linked using telecommunication lines or satellite signals.











Q.3    Describe the role of a Network Interface card in a computer network ? 

Ans:-     A Network Interface Card( NIC) is a hardware component that enables a computer or a node to connect to a network . Most modern computer motherboards come with an inbuilt NIC. The NIC allows the computer to participate in network communication by providing a link between the computer and the network . 








Q.4    What is a hub , and how does it work in a network ? 

Ans:-     A hub is a basic networking device that connects multiple computers and other devices to enable data exchange. It functions as a central point for data transmission , forwarding from one connected device to all other . 

Working of hub :- 1. When a device sends data to a hub, the respects and amplifies the signal. 
2. Each part can then connect to a different device an the network. 





Q.5     Explain the concept of Networking topology .Name the different types of Network topologies ? 

 Ans:-  Network topology refers to the arrangement or layout of various nodes , links and other peripherals devices . It helps determine how efficient and reliable data transmission will be across the network. 

There are six types of network topology :- 
1. Point to point topology 
2. Bus topology 
3. Ring topology 
4. Star topology 
5. Tree topology 
6. Mesh Topology 




What am I?

1. Intranet
2. Node
3. Personal Area Network (PAN)
4. Metropolitan Area Network (MAN)
5. Web Server
6. Network Interface Card (NIC)
7. Switch
8. Star Topology




Read More

Friday, April 18

Computer Language Class-6

 Class -6 ( 18 April 2025) 


( Ch-1 . Computer Language ) 


A. Answer the following questions in short.

Q.1        What is computer language ? 

Ans:-    Computer language is used to develop applications that enable us to interact with computers in various way .


Q.2    Which is called program? 

Ans:-   A set of instructions given to a computer to perform a task is called a program.




Q.3     How many types of computer languages ​​are there?

Ans:-   There are five types of computer language -:

1.    First Generation  Language( Machine language) 

2. Second Generation  Language( Assembly Language) 

3. Third Generation  Language( High- Level Language)

4.    Fourth Generation  Language( Modern High Level Language ) 

5.    Fifth Generation  Language(Advanced High Level Language ) 



SSCGK's Youtube Channel - sscgk.in


Q.4    How many digits are there in the binary number system?

Ans:-    Binary number system has 2 digits ( 0 and 1) .


Q.5 Who wrote the world's first computer program ?


Ans- Mathematician Ada Lovelace wrote the world's first computer program.



B.    Answer the  following questions in long.


Q.1    What is the purpose of low - level language ?

Ans :-  Low- level language is the only language that a computer directly understand . It uses binary digit s (0 and 1 ) to write instruction  . Programming       in machine  language is challenging and time - consuming because writing and  testing programs in this language is difficult .

Buy Amazon basics TWS in-Ear Earbuds( 74% Off) - Click me 


Q.2    What do you understand by source code and object code .

Ans -    The program written in assembly language  is called source program or source  code . When this program is  converted into machine language using a translator it is known as the object program or object code.


Q.3    What role does an assembler play in Assembly Language ?

Ans-:    . An assembler converts assembly language code into machine language that computers can understand. It translates human-readable mnemonics and symbols into binary code, making it possible for a computer to perform operations as instructed by the programmer


Q.4    What are mnemonics ? 

Ans:-    Mnemonics are abbreviations that represent operations. For example, if the operation code for the addition operation in machine language is ‘0010’, it can be written as ‘ADD’ in assembly language.


Q.5    How is an interpreter different from a compiler ?

Ans:-    The difference between an interpreter and a compiler is as follows: 

Interpreter:-     i) An interpreter translates the source code line by-line into machine language.

   ii) The time taken by an interpreter to begin is usually quicker.

iii) With an interpreter, compilation and execution occur simultaneously.

Compiler:-  i) A compiler translates the entire program into machine language all at once. 

ii) The time taken by a compiler to begin is generally longer.

iii)With a compiler, compilation happens before execution.


Q.6     Match the following :- 

Ans:-     1. First generation Language               a) Low -Level Language                   

                2. Third Generation Language             b) Cobol 

                3. Fourth Generation Language           c) SQL

Read More

Friday, April 4

Class-7th Number system

Class-7th ( 15 April 2025) 

Ch-1 .Number System 






A. Answer the following question in short.

Q.1      How many types of  number system are there in computer. 

Ans:-     There are four types of number system:-    

 1. Decimal  Number System     2. Binary  Number System     3. Octal  Number System     4. Hexadecimal  Number System 

Q.2     Convert binary number ( 11110) 2  into decimal number (?)10   

Ans:-        ( 11110) 2 =  ( ? )10  



Q.3    Convert  decimal number ( 9 )10 into binary number ( ? ) 2

Ans:- 

            

  Q.4   What is base of Binary, Decimal , Octal & Hexadecimal number system ? 

Ans:-     Number System                         Base 

                Binary                                          2

                Decimal                                        10

                Octal                                             8

               Hexadecimal                                16 

Q.5          Solve this binary addition 

    i)    (1 0 0 0)  + (0 1 1 1)

                Ans :-    1 0 0 0                            

                            + 0 1 1 1 

                               1 1 1  1

ii)     (1 1 1 1 1)     +   (0 1 0 1 1)

Ans:-              1    1    1    1        ------- carry over 

                        1   1    1     1     1

                  +   0    1    0    1    1

                      1 0    1    0    1    0




B. Answer the following question in long.

Q.1    What is a number system ? describe different type of system.

Ans   A number system is a method for expressing and representing numbers. The most  commonly used number system are Decimal, Binary, Octal and Hexadecimal. Each of these systems has its own set of  digits and the total number of digits used in a system is called base or radius. The base is written as a subscript after the number.


Q.2    What is the octal number system and why is  it helpful in computer?


Ans:-   The octal number system is a types of counting system that uses a base of  8. It has eight digits 0, 1, 2, 3, 4 .5, 6 and 7 any number in this  system can be written using these  eight digits .Octal system is also a positional number system 


Q.3    Differentiate between hexadecimal and decimal ?

Ans:-   Hexadecimal -The hexadecimal number system is a number system with a base value  of 16 this system uses 16 symbols ; 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,  a,b, c, d, e,and f . The  letter a ,b, c, d, e,  and f represent the decimal values 10, 11, 12, 13, 14, and 15 respectively.

Decimal - The decimal number system is composed of digits from 0 to 9 these ten digits can be combined in various ways to create  a wide range of  number for example some decimal number include  509 , 127 and 542 the base of the decimal number system 10 as there are 10 digits available ( 0 to 9) .


Q.4    How do you convert a binary number to decimal?

Ans  :-     Step-1. Begin with the rightmost digit of the binary number .Assign  powers of 2 to each digit, starting from 0 for the rightmost digit and increasing by 1 as you move to the left .

Step.2-    Multiply each binary digit by 2 raised  to the power of its corresponding position .

Step. 3-    Add all the resulting values . the sum of these values is the decimal equivalent of the binary  number .


Q.5    Write  Binary number for Hexadecimal   (1 to 15 )

Ans    Hexadecimal       Binary 

                   0                          0000

                   1                          0001

                   2                          0010

                   3                          0011

                                           0100    

                  5                          0101

                   6                          0110

                  7                          0111 

                                           1000

                                           1001   

               A( 10 )                  1010

               B( 11 )                  1011 

               C( 12 )                 1100              

               D ( 13 )              1101

               E ( 14 )               1110

               F ( 15 )              1111                                                                     




Read More

Thursday, April 3

Important shortcut Key of Computer field

 Important Shortcut key for Computer Window



Here are some important keyboard shortcuts that can be used on a computer:


1.    Ctrl + Shift + N: Create a new folder.

2.   Ctrl + C: Copy selected text or item

3.   Ctrl + X: Cut selected text or item

4.   Ctrl + V: Paste copied or cut text or item

5.   Ctrl + Z: Undo previous action

6.   Ctrl + A: Select all text or items

7.   Ctrl + F: Find a specific word .

8.  Ctrl + S: Save document or file

9.  Ctrl + N: Open a new document or file

10.  Ctrl + O: Open an existing document or file

11. Ctrl + P: Print the current document or file

12. Alt + Tab: Switch between open windows or applications

13.  Windows key + L: Lock the computer

14.  Windows key + D: Show or hide the desktop

15.  Windows key + E: Open File Explorer

16.  Windows key + R: Open the Run dialog box

17.  F1: Open help Window

18.  F5: Refresh the current webpage 

19.  Ctrl + Alt + Delete: Open Task Manager

20.  Alt + F4 : Closed running program 




Gk Event -1 Session-4 - Click and Write 

Join Telegram for latest updates 

Read More

Thursday, March 27

Full Form for Computer 2026( 6th to 8th)


Note:- Draw a colourful diagram of computer on first page and then write its full form from next page( पहले page पर कंप्यूटर का पूर्ण रंगीन चित्र बनाएं तथा अगले page पर Full forms लिखें।) for class 6th to 8th.


Important Full Forms of Computer Technology


Hardware Components

1.     CPU - Central Processing Unit  

2.     GPU - Graphics Processing Unit  

3.     SSD - Solid State Drive  

4.     HDD - Hard Disk Drive  

5.     NIC - Network Interface Card  

6.     MAC - Media Access Control  

7.     BIOS - Basic Input Output System  

8.     PCB - Printed Circuit Board  

9.     CRT - Cathode Ray Tube  

10.     OLED - Organic Light-Emitting Diode  

11.     VGA - Video Graphics Array  

12.     SVGA - Super Video Graphics Array  


---











 Networking 

13.     LAN - Local Area Network  

14.     WAN - Wide Area Network  

15.     MAN - Metropolitan Area Network  

16.     PAN - Personal Area Network  

17.     WLAN - Wireless Local Area Network  

18.     SAN - Storage Area Network  

19.     CAN - Campus Area Network  

20.     VPN - Virtual Private Network  

21.     VLAN - Virtual Local Area Network  

22.     ISP - Internet Service Provider  

23.     DNS - Domain Name System  

24.     DHCP - Dynamic Host Configuration Protocol  

25.     TCP - Transmission Control Protocol  

26.     UDP - User Datagram Protocol  

27.     SNMP - Simple Network Management Protocol  

28.     ICMP - Internet Control Message Protocol  

29.     NAT - Network Address Translation  


---


Programming & Software

30.     API - Application Programming Interface  

31.     GUI - Graphical User Interface  

32.     CLI - Command Line Interface  

33.     SDK - Software Development Kit  

34.     JVM - Java Virtual Machine  

35.     JRE - Java Runtime Environment  

36.     XML - Extensible Markup Language  

37.     HTML - Hypertext Markup Language  

38.     SQL - Structured Query Language  

39.     OOP - Object-Oriented Programming  

40.     SaaS - Software as a Service  

41.     PaaS - Platform as a Service  

42.     IaaS - Infrastructure as a Service  


---


 Storage & Data Transfer

43.     RAM - Random Access Memory  

44.     ROM - Read-Only Memory  

45.     USB - Universal Serial Bus  

46.     DPI - Dots Per Inch  

47.     MB - Megabyte  

48.     GB - Gigabyte  

49.     TB - Terabyte  

50.     PB - Petabyte  

51.     EB - Exabyte  

52.     ZB - Zettabyte  

53.     YB - Yottabyte  

54.     KB - Kilobyte  

55.     bps - Bits Per Second  

56.     KBps - Kilobytes Per Second  

57.     MBps - Megabytes Per Second  

58.     GBps - Gigabytes Per Second  

59.     Tbps - Terabits Per Second  

60.     IOPS - Input/Output Operations Per Second  

61.     RPM - Revolutions Per Minute  


Security & Protocols

62.     SSL - Secure Sockets Layer  

63.     TLS - Transport Layer Security  

64.     HTTPS - Hypertext Transfer Protocol Secure  

65.     WEP - Wired Equivalent Privacy  

66.     WPA - Wi-Fi Protected Access  

67.     IDS - Intrusion Detection System  

68.     IPS - Intrusion Prevention System  



Miscellaneous

69.     AI - Artificial Intelligence  

70.     ML - Machine Learning  

71.     IoT - Internet of Things  

72.     ASCII - American Standard Code for Information Interchange  

73.     GSM - Global System for Mobile Communications  

74.     ERP - Enterprise Resource Planning  

75.     CRM - Customer Relationship Management  

76.     OCR - Optical Character Recognition  

77.     MICR - Magnetic Ink Character Recognition  

78.     MIDI - Musical Instrument Digital Interface  

79.     COMPUTER (Common Operating Machine Purposely Used for Technical Education Research) 

80.     IPv6 - Internet Protocol version 6  

81.     CD-ROM - Compact Disc Read-Only Memory  

82.     DVD - Digital Versatile Disc  

83.     FTP - File Transfer Protocol  

84.    HTTP - Hypertext Transfer Protocol  

85.     TFTP - Trivial File Transfer Protocol  

86.     IVR - Interactive Voice Response  

87.     RAID - Redundant Array of Independent Disks  

88.     SCSI - Small Computer System Interface  

89.     UEFI - Unified Extensible Firmware Interface  

90.     VR - Virtual Reality  

91.     WYSIWYG - What You See Is What You Get  

92.     Virus - Vital Information Resources Under Siege

93.     RAT - Remote Access Trojan

94.     WORM - Write Once Read Many

95.     SMTP - Simple Mail Transfer Protocol

96.    FDD - Floppy Disk Drive

97.    FAT - File Allocation Table

98.    FAQ - Frequently Asked Questions

99.    MS - Microsoft 

100.  FIFO - First In First Out


Our Telegram 

 

Read More

Total Pageviews

Popular Posts

© 2014 SSC GK.in . Designed by Bloggertheme9 | Distributed By Gooyaabi Templates
Powered by Blogger.