Interview questions

System Security Engineer interview questions – page 20

881 questions. Tap “Show answer” to check yourself.

  1. Convert Binary Tree into Double Linked List in Such way that Doubly Linked List represents the spiral traversal of Binary Tree...Reply ASAP

  2. What is the purpose of the semicolon(;) in languages?

  3. Whats the difference b/w a thread and a process? are Word and PowerPoint different processes or threads of a single process?

  4. How to convert decimal to binary and its formula?

  5. A number of steps are there. You can go to step n either from step n-1 or from step n-2. In how many ways can you go to step n?

  6. Given a sorted array, output all triplets <a,b,c> such that a-b = c. Expected time is O(n^2). My approach using binary search took O(n^2 logn). When you attempt an approach, test your code with this example and list your outputs for verifica...

  7. What is LPCTSTR? What does LP denote it?

  8. What are the differences between malloc() and calloc()? What are macros? what are its advantages and disadvantages?

  9. In the following declaration, what does x represent?

  10. Which data structure will you use for deadlock?

  11. Write a function getBits that gives x bits from a given position p of a given number n.

  12. Two integers A and B are given, find the no of bits that need to be flipped in A to get B

  13. Given a sorted array of n integers that has been rotated an unknown number of times, give an O(log n) algorithm that finds an element in the array.

  14. I am a new programmer in C & can't find <graphics.h> library. can anyone help me with this?

  15. You have to write a program which tell about how many times it has run.

  16. Write a program where you have to enter two numbers in fraction say a/b and c/d and then calculate their sum and display their result in the reduced fraction form.

  17. The following function is intended to concatenate 2 input strings and return the result. What problems do you see with the code below?

  18. If each element of the array X(7,9) occupies 4 bytes, what will be the starting address of the element X(2,3) of this array if the starting address of the array X is 3000

  19. Given a 32-bit integer x. find the smallest integer x0 > x with the same number of ones in binary representation

  20. Void main(){int i=20;j=35,x,y;x= y++ + x++;y= ++y + ++x;printf("%d %d" , x,y);}/* please tell me the value of x and y at each and every moment. i dont need the answer but the explanation of the anamolus behavior of increment expression.*/

  21. Prove that in a graph, sum of degrees = twice the number of edges.

  22. Bit palindrome: Write a function to check if the bit-wise representation of an integer is a palindrome.

  23. Write a Complete program check whether Graph is Connected or Not & also for whether Graph is Tree or not.

  24. What is a Pure Function?

  25. In what cases do you need to double clock a signal before presenting it to a synchronous state machine?

  26. For any string s (0 + 1)*, let d(s) denote the decimal value of s (eg: d(101) = 5, d(011) = 3). Let L = {s (0+1)* | d(s) mod 5 = 2 and d(s) mod 7 = 4}. Which of the following statements is true? a) L is recursively ...

  27. Describe the difference between final, finally and finalize in java

  28. List the Coffman's conditions that lead to a deadlock.

  29. C++ ( what is virtual function ? what happens if an error occurs in constructor or destructor. Discussion on error handling, templates, unique features of C++. What is different in C++, ( compare with unix).

  30. Two 32bit integers m,n are given.replace all the bits in m from i to j locations with all the bits in n from k to l locations... eg. m = 110000000000 n = 10101010 i=3 j=5 k=5 l=7 o/p:110000101000

Companies that ask System Security Engineer questions