Topics

Search This Blog

Friday, March 21, 2025

Full Forms: Computer Security

Computer Security



  • CD: Compact Disc

  • DVD: Digital Versatile Disc

  • IoT: Internet of Things

  • HTTP: Hypertext Transfer Protocol

  • PIN: Personal Identification Number

  • PC: Personal Computer

  • NAV: Net Asset Value

  • AMC: Annual Maintenance Contract

  • CPU: Central Processing Unit

  • UPS: Uninterruptible Power Supply

 

Important Terms: Ethical and Social Issues

Important Terms: Ethical and Social Issues
  1. Digital Divide: Unequal access to ICT resources, leading to disparities in education, employment, and social opportunities between different communities or countries.
  2. Online Harassment: Issues like cyberbullying, trolling, and other forms of online abuse that can harm individuals' mental and emotional well-being.
  3. Privacy Concerns: Challenges related to protecting personal information from being collected, misused, or shared without consent.
  4. Digital Addiction: Over-dependence on ICT tools and platforms, which can affect mental health, relationships, and productivity.
  5. Job Displacement: Automation and ICT innovations replacing traditional roles, leading to unemployment or the need for re-skilling in certain sectors.

Full Form: Ethical and Social Issues in ICT

 Ethical and Social Issues in ICT



  • IT: Information Technology
  • ICT: Information and Communication Technology
  • G2G: Government to Government
  • E-commerce: Electronic Commerce
  • ETA: Estimated Time of Arrival

Full forms: Computer Network and Telecommunication

Computer Network and Telecommunication


  • ARPANET: Advanced Research Projects Agency Network

  • STP: Shielded Twisted Pair

  • UTP: Unshielded Twisted Pair

  • SMA: SubMiniature version A

  • SC: Subscriber Connector or Standard Connector

  • NIC: Network Interface Card

  • MODEM: Modulator-Demodulator

  • LAN: Local Area Network

  • MAN: Metropolitan Area Network

  • WAN: Wide Area Network

  • TCP/IP: Transmission Control Protocol/Internet Protocol

  • HTTP: Hypertext Transfer Protocol

  • SMTP: Simple Mail Transfer Protocol

  • WWW: World Wide Web

  • POP: Post Office Protocol

  • FTP: File Transfer Protocol

  • URL: Uniform Resource Locator

  • ISP: Internet Service Provider

  • ATM: Asynchronous Transfer Mode

  • E-mail: Electronic Mail

  • E-fax: Electronic Fax

  • E-commerce: Electronic Commerce

Thursday, March 20, 2025

VVI: C Programming questions solution

 

C Programming questions solution

1. Write C program to display first 10 natural numbers (1 to 10)

Solution:

#include <stdio.h>

int main()

{

    int i;

    printf("Natural numbers from 1 to 10:\n");

    for (i = 1; i <= 10; i++)

        printf("%d ", i);

    printf("\n");

    return 0;

}

 

2. Write a C programming to display first 20 natural numbers (1 to 20)

Solution:

#include <stdio.h>

int main()

{

    int i;

    printf("Natural numbers from 1 to 20:\n");

    for (i = 1; i <= 20; i++)

        printf("%d ", i);

    printf("\n");

    return 0;

}

 

3. Write a program to print natural numbers from 1 to 50.

Solution:

#include <stdio.h>

int main()

{

    int i;

    printf("Natural numbers from 1 to 50:\n");

    for (i = 1; i <= 50; i++)

        printf("%d ", i);

    printf("\n");

    return 0;

}

 

4. Write a program using C language to display reverse order from the entered number.

[ex: Enter 5 and display the result: 5 4 3 2 1)

Solution:

#include <stdio.h>

int main() {

    int n, i;

    printf("Enter the value of n: ");

    scanf("%d", &n);

    printf("Numbers in reverse order from %d to 1:\n", n);

    for (i = n; i >= 1; i--)

    printf("%d ", i);

    printf("\n");

    return 0;

}

 

5. Write C program to get the output for natural numbers from 5 to 15.

Solution:

#include <stdio.h>

int main()

{

    int i;

    printf("Natural numbers from 5 to 15:\n");

    for (i = 5; i <= 15; i++)

        printf("%d ", i);

    printf("\n");

    return 0;

}

 

6. Write C programming to calculate the sum of first 10 natural numbers.

Solution:

#include <stdio.h>

int main()

{

    int i, sum = 0;

    for (i = 1; i <= 10; i++)

        sum += i;

    printf("The sum of the first 10 natural numbers is: %d\n", sum);

    return 0;

}

 

7. Write C program to display only multiples of 5 from 1 to 50.

Solution:

#include <stdio.h>

int main()

{

    int i;

    printf("Multiples of 5 from 1 to 50:\n");

    for (i = 1; i <= 50; i++)

        if (i % 5 == 0) 

            printf("%d ", i);

    return 0;

}

 

8. Write C programming to display odd numbers from 1 to 19.

Solution:

#include <stdio.h>

int main()

{

    int i;

    printf("1 to 19 odd numbers:\n");

    for (i = 1; i <= 19; i += 2)

        printf("%d ", i);

    printf("\n");

    return 0;

}

 

9. Write C programming to display first 15 odd numbers.

Solution:

#include <stdio.h>

int main()

{

    int i;

    printf("First 15 even numbers:\n");

    for (i = 2; i <= 30; i += 2)

        printf("%d ", i);

    printf("\n");

    return 0;

}

 

10. Write a C program to count and print all odd numbers between 1 and 50.

Solution:

#include <stdio.h>

int main()

{

    int i, sum = 0;

    printf("Odd numbers between 1 and 50 are:\n");

    for (i = 1; i <= 50; i += 2)

    {

        printf("%d ", i);

            sum += i;

    }

        printf("\nSum of odd numbers between 1 and 50: %d\n", sum);

    return 0;

}

 

11. To display the reverse order of odd numbers from 19 to 1 write a programming using C language.

Solution:

#include <stdio.h>

int main()

{

    int i;

    printf("Odd numbers from 19 to 1:\n");

    for (i = 19; i >= 1; i -= 2)

        printf("%d\n", i);

    return 0;

}

 

12. Extend the program to calculate the sum of the first 15 odd numbers.

Solution:

#include <stdio.h>

int main()

{

    int i, sum = 0;

    printf("Odd numbers between 1 and 15 are:\n");

    for (i = 1; i <= 15; i += 2)

    {

        printf("%d\n", i);

            sum += i;

    }

        printf("\nSum of odd numbers between 1 and 15: %d\n", sum);

    return 0;

}

 

13. Write C programming to print the first 15 odd numbers with their squares.

Solution:

#include <stdio.h>

int main()

{

    int i;

    printf("Square of odd numbers between 1 and 15 are:\n");

    for (i = 1; i <= 15; i += 2)

        printf("%d\n", i*i);

    return 0;

}

OR

#include <stdio.h>

int main()

{

    int i;

    printf("Square of odd numbers between 1 and 15 are:\n");

    for (i = 1; i <= 15; i += 2)

        printf("%d = %d\n",i,i*i);

    return 0;

}

 

14. Write a Program to display even numbers from 1 to 20.

Solution:

#include <stdio.h>

int main()

{

    int i;

    printf("Even numbers from 1 to 20:\n");

    for (i = 2; i <= 20; i += 2)

        printf("%d ", i);

    return 0;

}

 

15. Write C programming to display the sum of the first 15 even numbers.

Solution:

#include <stdio.h>

int main()

{

    int i, sum = 0;

    printf("Even numbers between 1 and 30 are:\n");

    for (i = 2; i <= 30; i += 2)

    {

        printf("%d ", i);

            sum += i;

    }

        printf("\nSum of even numbers between 2 and 30: %d\n", sum);

    return 0;

}

 

16. Write a C program to identify if a given number is even or odd.

Solution:

#include <stdio.h>

int main()

{

    int num;

    printf("Enter a number: ");

    scanf("%d", &num);

    if (num % 2 == 0)

        printf("%d is an even number.\n");

    else

        printf("%d is an odd number.\n");

    return 0;

}

C Programming (Multiplication Table)

 [Multiplication table in C]

1. Write C programming to display multiplication table of 6.

Solution:

#include <stdio.h>

int main() 

{

    int num=6, i;

    printf("Enter a number: ");

    printf("Multiplication Table for %d:\n", num);

    for (i = 1; i <= 10; ++i)

    printf("%d x %d = %d\n", num, i, num * i);

    return 0;

}


2. Write C programming to display multiplication table of any number entered by the user.

Solution:

#include <stdio.h>

int main() 

{

    int num, i;

    printf("Enter a number: ");

    scanf("%d", &num);

    printf("Multiplication Table for %d:\n", num);

    for (i = 1; i <= 10; ++i)

    printf("%d x %d = %d\n", num, i, num * i);

    return 0;

}

Terminology of Structured Programming in C

Important terminologies:

  • Structured Programming: A method of writing organized code using loops, functions, and control structures.
  • Function: A block of code performing a specific task.
  • Array: A collection of elements stored in consecutive memory locations.
  • Loop (For/While): A control structure to repeat tasks.
  • Algorithm: A step-by-step procedure to solve a problem.

Map of Nepal

 नेपालको विभिन्न भूगोलसँग सम्बन्धित नक्साहरू नेपालको नक्सा: नेपालको नक्सा: नेपालको नक्सा: नेपालको नक्सा: नेपालको नक्सा: नेपालको नक्सा:

Most viewed!