CopyBits(x,p,n,y) copy n LSBs from y to x starting LSB at 'p'th position.
Two's compliment of -5
Write code for finding depth of tree
Write code for atoi(x) where x is hexadecimal string.
What are bit fields? What is their use?
What are data breakpoints?
How to upload media use loadrunner? I record the script but it fail because the top of document is
invalidation.How to solve the problem?
1)transiant variable
2) difference between wait() notify() and notifyall()
3)2 questions on output
5) choose the correct variable declaration
6)what is a thin client
7)j2ee componenets
8)diffenece between entity bean and session bean
1. What is the difference between Char a[ ]=”string” and char *a=”String”
2. What is wrong with the code? The code was for conversion from Celsius to
Fahrenheit : degF
=5/9*(c+32)
In code this line was wrong as we want 5/9 and that to be multiplied with bracket result. But here
9 will be first multiplied with bracket result.
3. What are Data breakpoints? Give two scenarios where we make the use of this
4. What do you mean by Bit fields? Give example
5. Write the function for changing a number from hexadecimal to integer htoi(s
6. Compare two binary trees they are same or not.
7. You have N computers and [Ca, Cb] means a is connected to b and this connectivity is symmetric
and transitive. then write a program which checks that all computers are interconnected and talk
two each other
8. WAP to find Depth of tree program. We were given the structure of the node using that we need to
write the code.
9. In binary search we have two comparisons one for greater than and other for less than the mid
value. Optimize so that we need to check only once
10. Question was some what like we need to write the function so that we get the two dimensional
array and memory is assigned to it using malloc function. Don’t remember the question exactly. But
this was the only question in proper language
1. Binary search Tree was given. Find 4th smallest element.
2. Some code in assembly was given and given five options. What is being calculated?
Ans (XY) 2 + Y + Z
3. Represent (-5)10 in 2’s complement representation in 8 bits
Download question papers from http://www.sidculjobharidwar.blogspot.com Question Paper is a fastest growing educational portal in India, providing educational content for CBSE, state boards and various entrance/competitive exams. www.sidculjobharidwar.blogspot.com provides platform to students, teachers and parents to interact with other users and share their knowledge and experience. We have largest collection of past and model question papers. Most of these question papers are contributed from our users.
4. Expression was given. Draw tree and then find the postfix
5. Some commands in the assembly language were given. Then need to convert this code in assembly
A=300;
For (i=0 ; i<=10 ; i++) A=A+200;
1. What is the difference between Char a[ ]=”string” and char *a=”String”
2. What is wrong with the code? The code was for conversion from Celsius to
Fahrenheit : degF
=5/9*(c+32)
In code this line was wrong as we want 5/9 and that to be multiplied with bracket result. But here
9 will be first multiplied with bracket result.
3. What are Data breakpoints? Give two scenarios where we make the use of this
4. What do you mean by Bit fields? Give example
5. Write the function for changing a number from hexadecimal to integer htoi(s
6. Compare two binary trees they are same or not.
7. You have N computers and [Ca, Cb] means a is connected to b and this connectivity is symmetric
and transitive. then write a program which checks that all computers are interconnected and talk
two each other
8. WAP to find Depth of tree program. We were given the structure of the node using that we need to
write the code.
9. In binary search we have two comparisons one for greater than and other for less than the mid
value. Optimize so that we need to check only once
10. Question was some what like we need to write the function so that we get the two dimensional
array and memory is assigned to it using malloc function. Don’t remember the question exactly. But
this was the only question in proper language
1. Binary search Tree was given. Find 4th smallest element.
2. Some code in assembly was given and given five options. What is being calculated?
Ans (XY) 2 + Y + Z
3. Represent (-5)10 in 2’s complement representation in 8 bits
4. Expression was given. Draw tree and then find the postfix
5. Some commands in the assembly language were given. Then need to convert this code in assembly
A=300;
For (i=0 ; i<=10 ; i++) A=A+200;
1.
int arr[10]; //in file1.c extern int *arr; //in file2.c main()
{
arr[0]=1;
}
//Find Error? how and why
2.
Hash key function was given and some numbers. Have to find numbers which are mapped to same hash
key.
3.
To Reverse doubly link list
4.
Given Assemply program. To find what it does.
My given program was calculation ===> n! / (n-r)!
5.
to find value of expression *+A/AB/-ABB when vaules of A and B was given
6.
To find o/p of crazy function. crazy(int n, int a, int b)
{
if(n==0) return;
crazy(n-1,b+n,a);
printf("%d%d%d",n,a,b);
crazy(n-1,b,a+n);
}
find crazy(3,4,5);
7.
question on macro
#define SUM(A,B) (A * B)
#define MUL(A,B) (A) + (B)
a=2;b=3;
value = SUM( SUM(a-b , b) + MUL (a,b) ) - SUM( MUL (b,a) + SUM(a, b-a) )
8.
To find smallest common Ancestor of two given nodes of BST. ?? Really tough one.
9.
To print 2's compliment of binary no. given in string. output should also be in string only.
10.
To find middle of link list.
11.
to find missing no. from unsorted array without using another array.
www.sidculjobharidwar.blogspot.com provides platform to students, teachers and parents to interact with other users and share their knowledge and experience. We have largest collection of past and model question papers. Most of these question papers are contributed from our users.
12.
To make a BST from given values. // Simplest one
1) Write a program to reverse a linked list and sort the same.
2) Given two integers A & B. Determine how many bits required to convert A to B. Write a function
int BitSwapReqd(int A, int B);
3) Write an algorithm to insert a node into sorted linked list. After inserting, the list must be
sorted.
4) Without using /,% and * operators. write a function to divide a number by 3. itoa() function is
available.
5) Write a program to swap two integer pointers.
6) Write a function int round (float x) to round off a floating point num to int.
7) write an ALP to find sum of First n natural numbers using the following
Instructions
Download question papers from http://www.sidculjobharidwar.blogspot.com Question Paper is a fastest growing educational portal in India, providing educational content for CBSE, state boards and various entrance/competitive exams. www.sidculjobharidwar.blogspot.com provides platform to students, teachers and parents to interact with other users and share their knowledge and experience. We have largest collection of past and model question papers. Most of these question papers are contributed from our users.
LDA num ; load Accumulator with num
DCR R ; decrement Register R INR R ; increment Register R
MOV x,y ; move the contents of register y into register x
JZ label ; jump to label if A=0
DJNZ label; Decrement & Jump if A <> 0
you can use B & C registers in addition to A register
8) Prove that a tree is BST. What is height of a tree?
9) Given A, B & C Boolean polynomials. Prove That (A+BC) = (A+B) (A+C)