Sometimes you need advice, Ask a teacher to solve your problems.

G K Online Quiz 1

G K Online Quiz 1
Online Quiz

How you can get top grades, to get a best job.

How you can get top grades, to get a best job.

Latest Posts

Wednesday, March 31, 2021

6 Best PC Games That You Can Play in 2019

Vibhor Sharma

6 Best PC Games That You Can Play in 2019

 If you want the best games to play on your PC, you can check out the list of games provided in this article. With the right graphics card on your PC, you can install and play all of these games in advanced settings. So, let’s take a look at the list of games.


1. Job Call: Today's Wars (2019)


This is one of the newest PC games on our list. Although this installment does not refresh the wheel, you can enjoy the mature but very dark tone offered by the game. However, the campaign mode has some issues. Even if you don't use campaign mode, you can still enjoy a smoother and more robust experience. And the good thing is that the game is good.


2. Witch 3: Wild Hunting


Although the game is not on the newly released list, it is still on the list of the most open-world games. The game contains a wide-open space of the world. Share Skyrim's unadulterated scale with the incredible depth of Grand Theft Auto V.


This crowded game is at the top of our list. In fact, it would be an understatement to say that this game is one of the best.


3. Black Souls 3


Black Souls 3 offers significant improvements in the Spiritual series by donating special items donated by Blood. While it is easier than previous articles, it has everything you may have liked in the beginning.


The game is easy but you will die many times while playing. You will have to be patient to gain a deeper understanding of the complex fighting system. Apart from this, it offers decent gameplay, which makes it a good choice even for casual gamers. So, they can take part in the dark, amazing world of the game.


4. Control


There’s a reason why this game took the sports world by storm. Also, the engineers of Remedy Entertainment have filled the game with a lot of love and sophisticated details. This cinematic, action-adventure game features beautiful performance, beautiful landscapes, and amazing visuals. Besides, it offers a satisfying combat experience.


When the game starts, you have to look at The Oldest House, which is in New York City. Once you are found, your next step is to find your lost brother.


5. Monster Hunter Earth


Monster Hunter is a big name in the gaming franchise. While playing, you can hunt bigger, more powerful monsters using bigger weapons. This simple game is among the most rewarding and compelling games you can explore these days.


At Capcom, game engineers are bringing a lot of free DLC. If you are looking for a fun addictive game, you can check out this article.


6. Grand Theft Auto V


Grand Theft Auto V is a popular console game developed for PC. The game allows you to explore the world of communication and details of Los Santos. This installment offers an exciting experience, rich graphics, and very smooth gameplay.


So, here is a description of the 6 best PC games you can play on your PC.

Wednesday, December 30, 2020

Introduction and Features of Linux

Vibhor Sharma
Linux
Introduction to Linux


 Introduction to Linux


The History of Linux

 Linus Torvalds, a student at the University of Helsinki Finland, introduced Linux in 1991. Towards work on the Linux project and wrote the source code of Linux kernel. Linux is a free operating system. Awards made Linux available on the internet. Many programmers added to the code, change it, and built it support for all kinds of hardware. He released the system to a community of “hackers” on the internet and asked them to work with it, fix it and enhance it. In fact, today there are thousands of software developers around the world who have worked on it will stop the source code for the software is freely available, anyone can work on it. Developers are encouraged to feed their fixes and improvements back into the community so that planets can continue to grow and improve.


Linux is like a clone of Unix and has been written from scratch by Linus Torvalds. Torvalds, mainly used Minix, a miniature version of Unix as a teaching aid in Universities and colleges. He was very much impressed with the feature of the Unix operating system. He wanted to create his own version of the Unix operating system and distribute it free for use to everybody. There is a vast amount of software that can be used with Linux, all of which include features that can compete with or surpass doze off any other operating system in the world.


Linux is very similar to Unix. Unique started off as a single-user operating system. In 1969, Ken Thompson, by taking ideas and help from Dennis Ritchie and others, wrote a small, general-purpose operating system for small machines. In 1973, Thompson and Ritchie rewrote the Unix operating system in C in ways of writing an operating system in assembly language. In 1974, Unix was licensed to universities for educational purposes and later on, was made commercially available.


Torvalds has made the source code of the Linux kernel available for study and charges over the internet. This means that the current development version of Linux is always open to everybody. Torvalds also accepts modification to the kernel code. In order to maintain stability, Torvalds exercised strict quality control and must all the new code into the kernel. The internet has played a major role in the development of the Linux operating systems. Today, many companies provide support for Linux over the internet.



Features of Linux


Linux has lots of interesting features. Some important features are as follows :


  • Linux is a multi-user operating system. Here, more than one user can connect to the system and work concurrently at any point in time. Each user can have more than one program running simultaneously. Users can also have their own environments arranged, the way they want, their own directory for storing files, and their own desktop interface with icons, menus, and applications arranged to suit them.

  • Linux supports multiprogramming, which allows many programs to executed simultaneously by different users. Multiprogramming is made possible on the Linux system by the concept of time-sharing. The operating system has to manage the different programs to be executed.

  • A program in Linux is broken into tasks, each task being something like reading from or writing to the disk or waiting for input from a user. The operating system which has the ability to handle the exclusion of multiple tasks is known as multi-tasking.

  • Linux is Posix-compliant and supports most of the standard sets for UNIX systems.

  • Linux is a powerful framework for working with graphical applications and it's referred to as the x-windows system.

  • Linux has a program called DOSEMV. It creates a DOS emulator that can execute many DOS applications. DOSEMV users image files of a hard disc to emulate a dost hard disc so that you need not have a DOS partition.

  • Linux comes with the Apache Web Server that service web pages full stop it is the most popular web server in use today.

  • Linux also comes with a lot of other useful and free software such as text editors, Browsers, and scientific applications.

  • Linux can be installed in several machine profiles without the need to configure the software.

  • No virus can attack Linux since common users don't have access to the system’s main Kernel.


!!!!   Thanks for reading. !!!!

Saturday, September 5, 2020

C Function

Vibhor Sharma

 Computer Science

‘C’ Function or Subroutine

Summary

  1. C Function:

  2. Type of Function:

  3. Grade/Level:

  4. Objective:

  1. Time Allotment:

Introduction

‘C’ Language is a programming language which pre-describe and self made Function for doing work. Pre describe functions are also called Library function. ‘C’ program use Library function for working but if program is big or complex then modularity is used to form it. In this, the bigger program is divided into smaller-smaller simple (easy) programs which are independent to each other, so in this way we make that bigger program by joining these smaller one. ‘C’ language comes under the modular type.

C Function

Function is a group of self contained or independent statement which do a specific or particular function. When bigger program is split into smaller program and then they are executed according to the main function, so this sub-program is called as function. Function has the following advantages.

  1. After dividing bigger Function into smaller one is can be read easily.

  2. To understand this smaller function is very simple as computer to bigger Function.

  3. Testing and error find in this smaller program is very easy then doing in bigger one.

  4. Statement occur more than once in the function, is put once in an function can use when ever needed.

  5. User can make it's own library according to it's need.

Type of Function

  1. Library Function

  2. User Defined Function


Library Function : These are those Function which are already stored in (language user can use these function directly in program. These are written when ‘C’ Language is developed. These function is divided in different Header file such as print f ( ), scan f ( ), getch ( ), clrscr ( ), etc.


User Defined Function : These are those which user form according to it's need or according to program. In other words, sub-program form the user according to the need of program is called as User Defined Function.

Important facts regarding function

Every function have a unique name by which it is identify
Name given to function or variable by identifier always follow the rule of it
For execution of a function, it is necessary to call it by function such as main ( ) etc.
Function is developed to doing some specific work (purpose).
Like variable, function before using it told and describe. So it is self contained part for program.

Function prototype

In 'C' language with user defined function main ( ) function. There should be also be function prototype, which is necessary. Like variable, function should also be defined before using in the program. This prototype is written before the main ( ) function. Function is defined with the help of calling program function prototype. It looks as function header. Syntax of prototype in calling program is as follows.


<Type><Function_name>  (parameter list)



Tuesday, May 26, 2020

Conditional statement and loops in c programming language

Vibhor Sharma
CONDITIONAL STATEMENTS IN C

What is conditional statement and loops in c programming language

To control the flow of the execution of programs, the ‘C’ language provides very powerful conditional statements and unconditional statements . The ‘C’ language supports many conditional statements like :
   Ø  If
   Ø  If-else
   Ø  switch
Loop control statement is :
Ø  for
Loop control conditional statements are :
Ø  while
Ø  do-while
Ø  goto
CONDITIONAL STATEMENTS

These statements enable us to change flow of the program. Most of the programming tools use the if statement to make decisions. If the expression  is true then the statements enclosed in the braces, are executed. If the expression is false, then the statements enclosed in the braces, are not executed, only the statements which exist outside the braces, are executed.

THE IF STATEMENT

This statement allows decision to be made by evaluating a given condition as true or false. The keyboard if tells the compiler that it is a decision control instruction.The condition if is always enclosed within a pair of parenthesis. The relational operators allow us to compare two values to see whether they are equal to each other, unequal, greater or less than the other. The general form of if statement looks like this :
     if (this condition is true )
          execute this statement ;

Syntax :

If (expression)
{
   Statement 1;
   Statement 2;
   …….
   …….
   Statement n;
   Statement 1;
   Statement 2;
   ……
   ……
   Statement m;
If the expression is true then the statements enclosed in the braces, are executed. If the expression is false then the statements enclosed in the braces, are not executed.

NESTED IF STATEMENTS

The if statement can contain another if….else statemet thus improving the flexibility of a programming tool.The statement whose object is if statement is a nested if statement .

Syntax :

if (expression 1)
if (expression 2)
if (expression 3)
{
   Statement 1;
   Statement 2;
   Statement 3;
   …..
   …..
   Statement n;
}
Or
if (expression 1 && expression 2 && expression 3 && expression 4)
{
   Statement 1;
   Statement 2;
   Statement 3;
   …..
   …..
  Statement n;
}
IF-ELSE  STATEMENT

Syntax :

if (expression)
{
   Statement 1;
   Statement 2;
   …..
   …..
   Statement n;
}
else
{
   Statement 1;
   Statement 2;
   …..
   …..
   Statement m;
}

Here , if expression is true, then code of the first block is executed, else second block is executed.

SWITCH-CASE STATEMENT

The control statement, which allows us to make a decision from the number of choices, is called a switch. With the help of switch and case statements we may choose any number of decisions, or more correctly a switch-case default, since the combination of these three keywords go together to make up the control statement.

Syntax :

switch (expression)
{
case 1:
   statement 1;
   statement 2;
case 2:
   statement 1;
   statement 2;
case 3:
   statement 1;
   statement 2;
default :
   statement 1;
   statement 2;
The switch statement checks, whether an expression matches with number of integer or character constant.

NESTED SWITCH STATEMENT
Syntax :

switch (choice)
{
case 1:
switch (choice 1)
{
case ‘a’:
…..
…..
break;
case ‘b’:
…..
…..
break;
}
break;
            case 2:
            …..
            …..
break;
…..
…..
case n:
…..
…..
break;
default :
…..
…..
}

In the nested switch statements, only one default case is used i.e, with the outer switch statement.

THE goto STATEMENT

As a good ‘C’ programmer , avoid using goto statements. A goto statement is always followed by a LABLE. The lable may be an identifier declared, constant, character constant, or a string constant. LABLE does not allow any special characters, but numeric characters are allowed. A lable decides the position of the control to be jumped, and which is allowed by colon(:). A lable may be constant as well as variable.


THE LOOPS IN C

LOOPS

A computer program is a set of statements, which is normally executed sequentially. But in most of the cases , it is necessary to repeat certain steps to meet a specific condition. This repetitive operation is done through a loop control structure.
In other words, a loop is basically the execution of sequence of statements repeatedly unit a particular condition is true or false.

  The loops supported by most of the programming tools are :

Ø  Using a while statement,
Ø  Using a do-while statement,
Ø  Using a for statement.

THE while LOOP

The while loop repeats a statement or a set of statements until a certain condition is no longer true.

Syntax :
while (condition)
{
   statement 1;
   statement 2;
}
   statement 1;
   statement 2;

Here, the condition may be any expression having non-zero value. The loop continues is true. When the condition fails, the program body attached with loop, will not be executed. The flow chart shown below is to understand the operation of the while loop.

THE DO-WHILE LOOP

The do-while looks like as follow :
do
{
   statement 1;
   statement 2;
   …..
} while (condition);
   statement 1;
   statement 2;
From the above syntax, if the condition is false, then at least one time the attached loop is executed.

Example : Write a program that reads an integer N and computes N!.

Solution :
#include<stdio.h>
main ( )
{
Int no, fact;
do
{
printf(“Enter non-negative number \n”);
scanf(“%d”,&no);
} while (no < 0);
For (fact = 1; no > 0; no - -)
fact *=no;
printf(“%d\n”,fact);
}

THE For LOOP

The for loop is ideally used when we know how many times the loop will be executed. This looping statement is generally available in every language. But it is much more powerful and flexible in the ‘C’ language.
Syntax :
for (initialization; condition; counter)
{
   statement 1;
   statement 2;
   …..
   …..
   statement n;
}
The for statement generally allows three statement :

Ø  Initialization is generally on assignment which is used to set the loop control variable e.g., i = 0.
Ø  Condition is always relational expression that determines when to exit the loop. The relational expression may be a part of arithmetic statement e.g.,
< 10 or i < (a + 10)
Here (a + 10) is an arithmetical expression.
Ø  Counter defines how the loop control variable will change each time the loop is repeated. This may be incremented or decremented. The following flow chart shows the complete working of for loop.

NESTED FOR LOOPS

We can have a for loop within another for loop just like if statements can be nested. To understand how nested loops work, look at the example given below :
for (i = 1; i <= 3; i ++)
{
for (j = 1; j <= 3; j++)
{
statements…..
}
}