Articles by Team EasyExamNotes

C Program GATE 2019 -4

C Program : GATE 2019 Consider the following C program: #include <stdio.h>  int main(){ float sum = 0.0, j = 1.0, i = 2.0;  while (i/j > 0.0625){ j = j + j; sum = sum + i/j; printf(“%fn”, sum); } return 0; } The number of times the … Read more

C Program GATE 2019-3

C Program : GATE 2019 Consider the following C program: #include <stdio.h> int r(){ static int num=7; return num–; } int main(){ for (r();r();r()) printf(“%d”,r()); return 0; } Which one of the following … Read more

C Program GATE 2019-2

C Program : GATE 2019 Consider the following C function. void convert(int n){  if(n<0)      printf(“%d”,n); else {      convert(n/2);      printf(“%d”,n%2); } } Which one of the following will happen when the function convert … Read more

C Program GATE 2019-1

C Program : GATE 2019 Consider the following C program  #include <stdio.h> int main(){  int arr[]={1,2,3,4,5,6,7,8,9,0,1,2,5}, *ip=arr+4; printf(“%dn”, ip[1]); return 0; }  The number that will be displayed on execution of … Read more

C Program GATE 2019-6

C Program : GATE 2019 Consider the following C program: #include <stdio.h> int jumble(int x, int y){ x=2*x+y; return x; } int main(){  int x=2, y=5; y=jumble(y,x); x=jumble(y,x); printf(“%d n”, x); return 0; } The value printed by the program is ________. 

Visual Basic Database Connection and Insert Query

How to create database connection in Visual Basic ? Here, we are going to use Visual Basic 2010 and MS Access 2010. Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click         Dim cnn As OleDbConnection = New OleDbConnection         Dim cmd As OleDbCommand = New OleDbCommand … Read more

Consider the following employee database

Consider the following employee database. (RGPV 2019) Employee (empname,street, city)  work (empname,companyname,salary)  company (companyname,city)  manages (empname,management).  Give an expression in the SQL for each request. … Read more