Pages

Monday, 31 July 2017

File Extension Check

<html>
<head>
    <title>Girfa : Student Help</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script>
        function filecheck()
        {
            var extension = $('#file').val().split('.').pop().toLowerCase();

            if ($.inArray(extension, ['png', 'jpg', 'jpeg']) == -1) {
                alert('Sorry, invalid extension.');
               
            }
            else
                alert('ok Fine');

Saturday, 29 July 2017

Autocomplete


autocomplete-jquery





Download Source Code
Next Topic



Thursday, 27 July 2017

M3-R4 ‘C’ LANGUAGE July, 2014 Solved

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE July, 2014 Solved


1. Multiple Choice

1.1 : B
Explanation : void is used to indicate that a function will not be return any data to calling function. You should also use void in place of argument for when function does not takes argument but it’s optional.
If you left blank of return type then int will be consider as default return type of given  function. 

1.2 : C
1.3 : B
Explanation : Name of an array is constant pointer which point first element when 5 added to pointer then it jump 5 places to forward direction.

Write a program to copy a file into another file.

Q : Write a program to copy a file into another file.

Answer : 


#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main(int argc,char *argv[])
{
     FILE *infile,*outfi

Sunday, 23 July 2017

Assignment Software Project Management

Assignment 
Software Project Management 

Q1. What is Software Project management? Explain the activities of software project management.

Q2. Define the water fall model with its stages. Explain the advantages and disadvantages of water fall model.

Assignment Java programming

Assignment 
Java programming

1. Q-what do you understand by object oriented programming?
2. Q-what do you understand by applet explain with example?

Assignment OBJECT ORIENTED ANALYSIS AND DESIGN

Assignment 
OBJECT ORIENTED ANALYSIS AND DESIGN


 Q- What is object? Explain in details?

 Q- What is generalization in UML? Draw a state chart diagram of UML?

MULTIMEDIA AND ITS APPLICATION

MULTIMEDIA AND ITS APPLICATION 

Q.1- What are Natural resources?

Q.2- What are the problem of forestry in india?

Q.3- What are the causes of food grain problem?

Computer Graphics

Computer Graphics 

Q1. Explain the term computer Graphics. Explain the input and hardcopy devices.

Q2.Give the algorithm for scan conversion of circle using DDA method and midpoint algorithm

Assignment VB6.0

Assignment VB6.0


Q1. What do you understand by object oriented programming? Explain the different
Feature of the object oriented programming and how it is better than procedure oriented
Programming compare?
 Q2. What do you understand by data base management system? Explain five approaches
For connecting database with example using appropriate code.

Assignment Environmental studies.

Assignment
Environmental studies.

Q.1.- Describe the changes in forest cover in India?
Q.2- Write the short notes-

Assignment RDBMS ASSIGNMENT

Assignment
RDBMS ASSIGNMENT

Q1- What is codd’s Rule for RDBMS?
Q2- Write the short note on the given topic.

  • Foreign key
  • Primary key

Assignment Principles of Accounting

Assignment
Principles of Accounting

Q1. What is accounting? Define the advantages and limitation of accounting.
Q2.What is the Accounting Concepts? Define in brief.
Q3. What is accounting convention? Explain in detail all types of accounting conventions.
Q4. What is Journal and Ledger? Maintain journal and ledger for following

  •  Business started with Rs. 5,00,000
  •  Building sold rs. 50,000
  •  Furniture purchased rs. 10,000.
  •  salary paid rs. 5,000.
  •  Stationary purchased rs 10,000.

Assignment Data Communication and Network

Assignment
Data Communication and Network


1. What is Data Communication & What is Network?Define Communication Protocols and Transmission modes.
2. What is Aloha Protocol? Define FDM, TDM, and CDMA in detail.

Assignment Data Structure through C

Assignment
Data Structure through C

Q 1. What is data structure and what are the uses of data structure in computer science?
Q 2.What is difference between Single and Double link list?

Assignment Principle of management

Assignment
Principle of Management

Q.1-Explain “management as a science”?
Q.2-What is planning? what are its advantages?
Q.3-How Many Types of Co-ordination? Give Brief?

Assignment Operating System

Assignment
Operating System

Q1 what is operating system and its uses?
Q2. What is multiprogramming explain with example?

Assignment SSAD

Assignment
SSAD

Q1. What do you understand by SDLC explain different phases of SDLC.
Q2. What is testing? How many type of testing used in software engineering?
Q3. Discuss various steps in requirement analysis?

Assignment Basic Mathematics

Assignment
Basic Mathematics

Q1. What is limit and continuity of a function and define equality of a limit?
Q2. Define Matrix and Its properties?
Q 3. What is a set and explain with example?

Database Management System

Assignment
Database Management System

Q1. What is database management system? Explain with example?
Q2. Compare traditional file management with database approach?
Q3. What is database normalization explain with the help of example?

Moral & Value Education

Moral & Value Education
 


Qns.1- Explain Nationalism & Internationalism?

Qns.2- Explain Meaning of work and human Communication?

Computer Organization & Architecture

Assignment 

Q.1 what is Computer? What is Software? Explain its type. Where it is applied?
Q2. What are the Logic Gates? Explain in detail and also explain the Universal Gates with truth table.
Q3. Convert the following into Decimal, Octal and Hexadecimal.

Structured and Spoken English

Structured and Spoken English
 


Ques. 1.What is Article? Explain the role of Article in English?

 Ques. 2. What are figures of speech?

Ques. 3. What is hyperbole? Explain with a suitable example?

Introduction to IT & PC Software

Q 1. What is computer define its characteristics and different type of computer generation.

Q2. Write notes on Input and Output device?

Friday, 21 July 2017

Explain the difference between text mode and binary mode files



Streams can be classified into two types: 

1. text streams and
2. Binary streams

1.Text streams are interpreted, with a maximum length of 255 characters. With text streams, carriage return/line feed combinations are translated to the newline n character and vice versa.

2. Binary streams are uninterrupted and are treated one byte at a time with no translation of characters. a text stream would be used for reading and writing standard text files, printing output to the screen or printer, or receiving input from the keyboard. A binary text stream would typically be used for reading and writing binary files such as graphics or word processing documents, reading mouse input, or reading and writing to the modem.

Wednesday, 19 July 2017

Difference between Structure and Union


Sr No.
Structure
Union

1
Structure is user defined data type
Which store a record with multiple value
Union is also a user defined data type
But only one member can be saved at a time
2
Separate space was allocated for each member of structure
A common space allocated for all member

3
All members can be initialized at ones.
                                                                   
Only one member can be initialized at a time.

4
Total memory allocated by a structure variable is equal to number of member allocated space.
Space allocated equal to higher member allocated space.
5
One can provide and used all member data simultaneously.
Only one member value can be read or write at ones.
6
Uses rate of structure is higher due to separate space allocation for each member.
Uses rate is lower than structure due common space allocation.


7
You can updated previous value of any member without losing other member data
If a member initialized and another attempt for change value of other member lead loss of previous value.
























#include<stdio.h>
struct stu
{
     int roll;
     char nm[10];
     char city[10];
};
union emp
{
     int roll;
     char nm[10];
     char city[10];
};
void main()
{
     struct stu ob1;
     union emp ob2;
     clrscr();
     ob1.roll=101;
     strcpy(ob1.nm,"Girfa");
     strcpy(ob1.city,"Student Help");
     printf("\nSize of Structure %d",sizeof(ob1));
     printf("\n\tRoll=%d\n\tName=%s\n\tCity=%s",ob1.roll,ob1.nm,ob1.city);
     ob2.roll=101;
     printf("\nSize of Union\t %d",sizeof(ob2));
     printf("\nUnion Roll %d",ob2.roll);
     strcpy(ob2.nm,"Girfa");
     printf("\nValue Loss due to Union  %d",ob2.nm);
     getch();
}

Difference Between Union and Enum

Union 


Union is user defined data type which is use to store a data member from more than one data member. Followings are some key point about union
  • Union is also a user defined data type But only one member can be saved at a time
  • A common space allocated for all member
  • Only one member can be initialized at a time.
  • Space allocated equal to higher member allocated space.
  • Only one member value can be read or write at ones.
  • Uses rate is lower than structure due common space allocation.
  • If a member initialized and another attempt for change value of other member lead loss of previous value. 
#include<stdio.h>
union emp
{
     int roll;
     char nm[10];
     char city[10];
};
void main()
{
     union emp ob2;     

     ob2.roll=101;
     printf("\nSize of Union\t %d",sizeof(ob2));
     printf("\nUnion Roll %d",ob2.roll);
     strcpy(ob2.nm,"Girfa");
     printf("\nValue Loss due to Union  %d",ob2.nm); 
}

Enum

Enumerate is user defined data type which is integer value assign to a data member as its options. Enumerate is useful to provide user friendly name for available integer options used as some setting of application. For example if an application has shown available color to its window by integer number as we have seen in dos color command.

So for change color you need to remember color code which increase complexity. By using enumeration you provide color name in user friendly mode.
i.e.  Color.Red,Color.Blue instead of integer code. System will find the correspondence integer related to given color by enumeration definition.

Saturday, 15 July 2017

Greatest Number from array using Pointer

Q : Write a program using pointer to find greatest number in an array.

Solution : 

#include<stdio.h>
#define MAX 5
void main()
{
     int ar[MAX],*pt,h,i;
     for(i=0;i<MAX;i++)
     {
          printf("Enter Number>> ");
          scanf("%d",&ar[i]);
     }

Table read with Java Script


This is how I consummate reading a table in javascript. Basically I study down into the rows and then I was able to drill down into the individual cells for each row. This should give you an idea.

Roll Name City
101 Sona Varanasi
102 Mona Chandauli
103 Amit Jaunpur





<html>
<head>
    <title>Girfa Student Help : Table read with javascript</title>
    <script>
        function GetData()
        {

Bitwise operator


Logical Operators

Logical operators are used to make a decision on behalf of some criteria. We evaluate given criteria in terms of (and,or,not). Decision making process changed with given terms. If AND  is used there then all given criteria must be true to become result true and in case of OR , condition become true if any given criteria return true. Not reverse result True to false and vice versa.

Friday, 14 July 2017

Variable to SQL Query

Sometimes there is a need to store a SQL query output to a variable in store procedure. This feature gives programming flexibility to apply more action while generating output.
For example, you can apply more group option in a simple way which was complicated in a single query or if you want to concatenate the output of some query etc.

USE [Girfa_Portal]
GO
SET ANSI_NULLS ON

Thursday, 13 July 2017

Register Variable

Register Variable C Language


Register is a special type of storage medium for making variables in c language. When there is a need of access any variable very frequently like inside of loops. For increase of access time of a variable it can be take place direct on register. If a variable is on a register then its take less time compare to access a variable form memory because register is a part of CPU.

Wednesday, 12 July 2017

Multiple Condition with parameter in sql server

Multiple Condition with parameter in sql server


USE [Girfa_Portal]
GO
--=========== Condition with concatenate =========================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[Girfa]
(@arg varchar(500))

Tuesday, 11 July 2017

Auto variable

Auto variable "C" Language


Auto or local variable in c language is a type of variable which space allocate and deallocate space automatically and static in by nature. An auto variable is invisible from outside of a function or block. So an auto variable can be access within the block where it is defined. By default all variable in a block or function is auto by nature. Auto keyword is used to make auto variable which is optional.

Auto int a;

Or

Int a


#include<stdio.h>
void main()
{
     int a=10;

Putch

Putch "C" Function 

Print a single alphanumeric character. This function can  print only one character at a time.

Syntax :

Putch(Var_name)

Example :                  


#include<stdio.h>
void main()

CSS Animation


Father of CSS Animation

CSS Animation

tada

Main CSS Code


@charset "UTF-8";

/*!
 * animate.css -http://daneden.me/animate
 * Version - 3.5.2
 * Licensed under the MIT license - http://opensource.org/licenses/MIT
 *
 * Copyright (c) 2017 Daniel Eden
 */