TCS Coding Q-01
TCS NQT Q. An automobile company manufactures both a two wheeler (TW) and a four wheeler (FW). A company manager wants to make the production … Read more
TCS NQT Q. An automobile company manufactures both a two wheeler (TW) and a four wheeler (FW). A company manager wants to make the production … Read more
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 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 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 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 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 ________.
If cache access time is 100ns, main memory access time is 1000ns and the hit raio is 0.9. Find the average access time and also … Read more
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. (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
Explain select, project and division operations with examples. (RGPV 2019) Ans. Select operations : Select operation displays the records for the condition. Select operation is denoted by sigma … Read more