|
1. What are Data breakpoints? Give two scenarios where we make the use of this? 2. Represent (-5)10 in 2's complement representation in 8 bits 3. What is the difference between Char a[ ]=?string? and char *a=?String? 4. What do you mean by Bit fields? Give example 5. What is wrong with the code? The code was for conversion from Celsius to Fahrenheit degF =5/9*(c+32) Answer : 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. 6. Write the function for changing a number from hexadecimal to integer 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. Write the function so that we get the two dimensional array and memory is assigned to it using malloc function. 9. Prove that in a tree no of internal nodes is one less than leaves. 10. Find if a number is divisible by 3, without using %,/ or *. You can use atoi() 11. Write a Rotate function for rotating elements in an array, using a reverse function 12. Write an algorithm to insert a node into sorted linked list. After inserting, the list must be sorted. 13. Subtraction of 2 base 13 numbers 14. write an ALP to find sum of First n natural numbers using the following Instructions 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 15. Given two integers A & B. Determine how many bits required to convert A to B. Write a function int BitSwapReqd(int A, int B);
|