Tuesday 28 March 2023

Punjab Patwari Exam 2023 Mock Test Paper

March 28, 2023 Posted by Knowledge Bite No comments

Question 1: What is the capital of France?

  • New York
  • London
  • Paris
  • Rome

Question 2: Who invented the telephone?

  • Thomas Edison
  • Alexander Graham Bell
  • Benjamin Franklin
  • Leonardo da Vinci

Saturday 1 October 2022

भारत मां का बेटा

October 01, 2022 Posted by Knowledge Bite 4 comments
लाडले के इंतजार में मां की आखें, पिता के चेहरे पे उलझन की लकीरें और पत्नी का शिंगार उसे बुलाता था।
बच्चों का खिलौना लेकर कोई आता था।
जहां पला बढ़ा था बचपन उसका गांव वहीं उसे बुलाता था,
पर भारत मां का वो बेटा तिरंगे में लिपटा मुस्कुराता था।

जब फोन की घंटी बजती थीं,
सांसे उतरती चढ़ती थी,
सब ठीक तो है न बेटा, सुना है ठंड बड़ी है वहां,
सुनता था पर अनसुना कर जाता था।
आज देखो वो भारत मां का बेटा तिरंगे में लिपटा मुस्कुराता था।

कैसे शब्दो में पिरोऊं एक फौजी के जज्बात
लिखने को जाऊं कमबख्त कलम उड़ेल देती है आसूंओं की सौगात।
याद आता है बाबा से किया वापिस आने का वादा,
बहन की पायल की मांग,
पत्नी का सिंदूर और मां का चेहरा
पर देश उसे सबसे पहले याद आता था,
इसलिए देखो आज वो भारत मां का बेटा
तिरंगे में लिपटा मुस्कुराता था।
_____________
धीरज कथूरिया


Monday 12 September 2022

Various Keyboard Shortcuts

September 12, 2022 Posted by Knowledge Bite No comments
CTRL + Delete: Delete the next word
CTRL + Backspace: Delete the previous word
CTRL + Left/Right Arrow: Move your cursor to the next/previous word
WIN + Shift + left/right arrow :Moves active window between displays.

Tuesday 30 August 2022

Tuesday 8 December 2020

How to get whatsapp payment option/ whatsapp invite

Whatsapp started the payment feature in india which is roling to the customers in the phased manner. first of all it goes to the beta users then after first phase it will go further.


Now if you dont get the payment option in your whatsapp till now then their is a trick to get it fast.

for this you have to get invite from the user how have that feature already installed but you must have updated version of the whatsapp.

For whatsapp invite
whatsapp me on my no. 9463697173

i will send you payment invite.


Sunday 18 October 2020

C program to read a name from keyboard and display it on the screen

October 18, 2020 Posted by Knowledge Bite , No comments

 Hello Friends

Today i will tell you about the String's in the 'C' Language. String's are basically Character Array. 

Examples of of string constants

char name[]={'K','N','O','W','L','E','D','G','E','\0'};

char name[]="KNOWLEDGE";

It is a string constant of one dimensional array of characters which is terminated by null ('\0');

here '\0' is called the null character in it \n indicates that what it follows is something special. In string's null character is most important because it is the only one which know where the string ends. Null character i.e. '\0' need not to be entered in the declaration 'C' automatically insert it at the end of the string's so we can declare them as in the above 2nd example

Each character in the string which is stored in an array occupy one byte of memory.

let's try one example of printing the string

//Program to print the string

#include<stdio.h>

#include<conio.h>

    {

        char name[]="KNOWLEDGE BITE";        

        int t=0;

        clrscr();

            while (t<=13)

                {    

                    printf("%c",name[t]);

                    t++;

                }

    getch();    

    }


Output will be:

KNOWLEDGE BITE

NOW LET'S TRY ANOTHER C PROGRAM TO READ A NAME FROM KEYBOARD AND DISPLAY IT ON THE SCREEN.

#include<conio.h>

#include<stdio.h>

void main()

    {

        char name[30];

        clrscr();

        printf(" Hi! What is your Full Name. \n User Enter Name from Keyboard ");

        scanf(%[^\n]s",name);

        printf("O Hi! My Full Name is %s ",name);

        getch();

    }

Output of the given program is

Hi! What is your Name.

User Enter Name from Keyboard #Knowledge_Bite

O Hi! My Full Name is #Knowledge_Bite


Tuesday 22 September 2020

C Program to swap two number using Functions and Pointer's

September 22, 2020 Posted by Knowledge Bite No comments
#include<stdio.h>
#include<conio.h>
void main()
 {
   void swap(int*,int*);
   int a,b;
   clrscr();
   printf("Enter the value of a = ");
   scanf("%d",&a);
   printf("Enter the value of b = ");
   scanf("%d",&b);
   swap (&a,&b);
   printf("The value of a = %d \nThe value of b = %d",a,b);
   getch();
 }
 void swap(int *a,int *b)
  	{
    		int temp;
    		temp=*a;
    		*a=*b;
    		*b=temp;
  	}