Interview questions
System Security Engineer interview questions – page 20
881 questions. Tap “Show answer” to check yourself.
-
Convert Binary Tree into Double Linked List in Such way that Doubly Linked List represents the spiral traversal of Binary Tree...Reply ASAP
-
What is the purpose of the semicolon(;) in languages?
-
Whats the difference b/w a thread and a process? are Word and PowerPoint different processes or threads of a single process?
-
How to convert decimal to binary and its formula?
-
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?
-
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...
-
What is LPCTSTR? What does LP denote it?
-
What are the differences between malloc() and calloc()? What are macros? what are its advantages and disadvantages?
-
In the following declaration, what does x represent?
-
Which data structure will you use for deadlock?
-
Write a function getBits that gives x bits from a given position p of a given number n.
-
Two integers A and B are given, find the no of bits that need to be flipped in A to get B
-
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.
-
I am a new programmer in C & can't find <graphics.h> library. can anyone help me with this?
-
You have to write a program which tell about how many times it has run.
-
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.
-
The following function is intended to concatenate 2 input strings and return the result. What problems do you see with the code below?
-
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
-
Given a 32-bit integer x. find the smallest integer x0 > x with the same number of ones in binary representation
-
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.*/
-
Prove that in a graph, sum of degrees = twice the number of edges.
-
Bit palindrome: Write a function to check if the bit-wise representation of an integer is a palindrome.
-
Write a Complete program check whether Graph is Connected or Not & also for whether Graph is Tree or not.
-
What is a Pure Function?
-
In what cases do you need to double clock a signal before presenting it to a synchronous state machine?
-
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 ...
-
Describe the difference between final, finally and finalize in java
-
List the Coffman's conditions that lead to a deadlock.
-
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).
-
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