Wednesday 27 July 2016

C Sharp Function Overload

C# Function Overload

class test
{
        public void sum()
        {
            int a, b, c;
            Console.Write("Enter first number>> ");
            a = int.Parse(Console.ReadLine());
            Console.Write("Enter second number>> ");
            b = int.Parse(Console.ReadLine());
            c=a+b;
            Console.Write("\nA={0}\nB={1}\nSum={2}",a,b,c);
        }

C Sharp This pointer tutorial

C# This pointer tutorial

class test
    {
        int x, y;
        public test(int x, int y)
        {
            this.x = x;
            this.y = y;

C Sharp Static Class Tutorial

C# Static Class Tutorial

class testmath
    {
        public static int sum(int a, int b)
        {
            return a + b;
        }
        public static Boolean prime(int a)
        {
            int b;
            for (b = 2; b < a; b++)
            {
                if (a % b == 0)
                    break;

C Sharp Delegate

C# Delegate 

A delegate is a simple class that is used to point to methods with a specific signature, becoming essentially a type-safe function pointer.
If you have a C++ background then  thinking of them as function pointers is helpful
A delegate can be seen as a placeholder for a/some method(s).
By defining a delegate, you are saying to the user of your class 
"Please feel free to put any method that match this signature here and it will be called each time my delegate is called".
class Program
    {
        delegate int mathop(int n, int m);//funtion pointer
        public  static int sum(int a, int b)
        {
            return a + b;
        }
        public  static int multi(int a, int b)
        {
            return a * b;
        }

C Sharp Class Basics Tutorial

C# Class Basics Tutorial

class student
    {
        int roll;
        string name;
        string city;
        public void setdata(int r, string n, string c)
        {
            roll = r;
            name = n;
            city = c;

C Sharp Variable Scope

C# Variable Scope

class Program
    {
        static void Main(string[] args)
        {
            int n = 10;
            {
                int m = 20;
                {
                    int p = 30;
                    Console.WriteLine("N={0}\nM={1}\nP={2}", n, m, p);
                }

C Sharp Array Tutorial

C# Array Tutorial

class Program
    {
        static void Main(string[] args)
        {
            int[] ar = new int[5];
            for(int i=0;i<5;i++)

C Sharp Input Tutorial

C# Input Tutorial

 class Program
    {
        static void Main(string[] args)
        {
            int a, b, c;
            Console.Write("Enter First Number>> ");
            a = int.Parse(Console.ReadLine());
            Console.Write("Enter Second Number>> ");
            b = int.Parse(Console.ReadLine());

C Sharp Switch Case Tutorial

C # Switch Case Program

 class Program
    {
        static void Main(string[] args)
        {
            int i;
            Console.Write("Enter day of the week>> ");
            i=int.Parse(Console.ReadLine());
            switch(i)
            {
                case 1:

C Sharp Nested If Else Tutorial

class Program
    {
        static void Main(string[] args)
        {
            int a, b, c;
            Console.Write("Enter Three numbers>>");
            a = int.Parse(Console.ReadLine());
            b = int.Parse(Console.ReadLine());
            c = int.Parse(Console.ReadLine());

            if (a > b)

C Sharp Loop Demo

class Program
    {
        static void Main(string[] args)
        {
            int i;
            i = 1;
            while (i < 10)
            {
                Console.WriteLine(i);
                i++;
            }
            Console.WriteLine("\nFor Loop\n");
            for (int j = 1; j <= 10; j++)
            {

If-Else Demo C Sharp

class Program
    {
        static void Main(string[] args)
        {
            int age;
            Console.WriteLine("Enter your age>> ");
            age = int.Parse(Console.ReadLine());
            if (age > 18)
                Console.WriteLine("Eligible");
            else

Tuesday 26 July 2016

C++ Java Polymorphism

Stack Using Single Link List

#include<stdio.h>
#include<conio.h>
/*  **********************************
Girfa Student Help
Stack Using Single Link List
Programmer Name : Mritunjoy Sengupta
for DS program visit :http://girfahelp.blogspot.in/p/data.html
    *************************************/
typedef struct n
{
int data;
struct n *next;
}node;
node *start=NULL;
node* create(int);
void push(int);
void pop();
void print();

Double Link List Complete Program

#include<stdio.h>
#include<conio.h>

/* ************************************
Girfa Student Help
Double Link List Program
for More DS Program Visit : http://girfahelp.blogspot.in/p/data.html
Programmer Name : Mritunjoy Sengupta
   ***************************************
*/

typedef struct n
{
int data;
struct n *pre,*next;
}node;
node* start=NULL;

node* create(int);
void addfirst(int);
void addlast(int);
void addbefore(int);
void addafter(int);
void del(int);
void print();

Monday 25 July 2016

UGC Net General Paper July-16 Set4

43. What are the barriers to effective communication?
  (1) Moralising, being judgemental and comments of consolation.
  (2) Dialogue, summary and self-review.
  (3) Use of simple words, cool reaction and defensive attitude.
  (4) Personal statements, eye contact and simple narration.
Answer : 1

44. The choice of communication partners is influenced by factors of
   (1) Proximity, utility, loneliness
   (2) Utility, secrecy, dissonance
   (3) Secrecy, dissonance, deception
   (4) Dissimilarity, dissonance, deviance
Answer : 1

Single Link List Through C

#include<stdio.h>
#include<conio.h>
/* *****************************
 Girfa Student Help
 Programmer Mrityunjoy Sengupta
 for more DS Code : Visit :http://girfahelp.blogspot.com/p/data.html

   ******************************
*/
typedef struct n
{
 int data;
 struct n *next;
}node;
/* Function Prototype */
node *start=NULL;/* Global Variable point first node*/
node* create(int);/* Create dynamic space for Node */
void addbegin(int);/* Add an Item to starting position of list  */
void addlast(int);/* Add an Item to last position of list  */
void addbefore(int);/* Add item before a number */
void addafter(int); /* Add item after a number */
void del(int);
void print();
void main()
{
 int n,s,opt;
 do
 {
  clrscr();
 printf("\n1. Print\n2. Add First\n3. Add Last\n4. Add Before\n5. Add After\n6. Delete\n0. Exit\n\nEnter Your Choice>> ");
  scanf("%d",&opt);

  switch(opt)

January, 2014 M4.1-R4: APPLICATION OF .NET TECHNOLOGY

 January, 2014
M4.1-R4: APPLICATION OF .NET TECHNOLOGY

NOTE:

1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions.
2. PART ONE is to be answered in the OMR ANSWER SHEET only, supplied with the question paper, as per the instructions contained therein. PART ONE is NOT to be answered in the
answer book.
3. Maximum time allotted for PART ONE is ONE HOUR. Answer book for PART TWO will be supplied at the table when the answer sheet for PART ONE is returned. However, candidates,who complete PART ONE earlier than one hour, can collect the answer book for PART TWO immediately after handing over the answer sheet for PART ONE.

TOTAL TIME: 3 HOURS TOTAL MARKS: 100
(PART ONE – 40; PART TWO – 60)

PART ONE
(Answer all the questions)

1. Each question below gives a multiple choice of answers. Choose the most appropriate
one and enter in the “OMR” answer sheet supplied with the question paper, following
instructions therein. (1x10)
1.1 The Java and Visual Basic .NET belong to this type of programming language.
A) assembly language
B) machine language
C) high level programming language
D) object oriented programming language

Saturday 23 July 2016

UGC-Net-16 General Paper Set3

        31. The format of thesis writing is the same as in
(1) preparation of a research paper/article
(2) writing of seminar presentation
(3) a research dissertation
(4) presenting a workshop/conference paper
Answer : 3

32.   In qualitative research paradigm, which of the following features may be considered critical?
(1) Data collection with standardised research tools.
(2) Sampling design with probability sample techniques.
(3) Data collection with bottom-up empirical evidences.
(4) Data gathering to take with top-down systematic evidences.
Answer : 3

Wednesday 20 July 2016

Insert Record in Access Autonumber field using SQL with VB.Net

Access support auto number in table field data type as double. While using access database 
direct there is no need to provide autonumber data, Access automatically generate it.

It is good for direct working with Access but what about if you’re making a project and want to add record through some programming language like VB.net then it creates many types of  problems. Details are following


  • If attempt to insert empty value like direct working, does not support
  • If a constant is provide every time then there is not any importance of autonumber because we are not using its actual uses because auto generate number  minimize the programmer manual work by automate unique number entry to every time