Interview questions
System Administrator interview questions – page 7
2,099 questions. Tap “Show answer” to check yourself.
-
Here is the prototype of a function StringC(char *str,int strlen);
-
An n-ary tree has n nodes in each internal nodes. Find the no of leaf nodes in such a tree with N nodes?
-
Find the substring of length 3 which is present in the reverse order from the string. Ex: if the string is abcdcba (cba is the reverse of abc) so we should return cba. And was asked to improve upon the complexity.
-
Given any integer . u have to write the hexadecimal form of the number in string without using sprintf()
-
Given a preorder traversal of a binary search tree, find the inorder traversal
-
How to filter repeatative values in the report to get distinct values.Example: In any database we can use distinct command But My Report source is flatfile.Therfore,I cann't manipulate source system.Is there any command or function to filter repeating
-
Implement your own hash map from scratch. Make it thread safe.
-
You are given a threaded binary tree where each node of the tree points to some node to the right of it in-order traversal. Given such tree, check whether each thread pointer of the node in a tree satisfies this condition( i.e check whether if thr...
-
Consider a representation to store a binary tree in a file in which the whole tree is represented within two brackets in the following format. First print the root in brackets, and then within those brackets print the left subtree in its own brack...
-
Reverse a linked list, with and without recursion.
-
Given 2 trees T1(very big) ,T2(small), check if T2 is a subtree of T1 i.e exact structure and node key values of T2 should appear as a subtree in T1.
-
Consider the given structure:
-
Given an array of positive real numbers, find out the longest consecutive sub-array such that the product of the numbers in the sub-array is maximized.
-
Three strings say A,B,C are given to you. Check weather 3rd string is interleaved from string A and B.
-
Discuss data structures for designing NOTEPAD. Discuss with reference to buffer write.
-
Integer has been represented in linked list. Eg. 7541 has been represented as 7->5->4->1 with 4 nodes each having a digit. Given 2 such linked lists, you need to compute the sum of them
-
A programs reads The man and the boyrn from a file using fgets() and stores it in str[]. Then the string stored in str is a) The man and the boyrn b) The man and the boyr c) The man and the boy...
-
SAP only provides moving average value for current, previous period, and previous year. SAP does not provide transactions/reports that will provide moving average value for a given date.How can I report moving average price for material number 10000000 at
-
How to find the maximum rectangle in a histogram, and write C++ to implement it.
-
Int a[10]; a[-1] = 20;
-
What is the output of below program?
-
What is :- pointer , NULL pointer , dangling pointer , far pointer , near pointer , huge pointer , generic pointer , smart pointer ?
-
Write a small C program, which while compiling takes another program from input terminal, and on running gives the result for the second program. (NOTE: The key is, think UNIX).
-
What is the difference between BoXIR2 and BOXIR3?
-
What is the value of z?
-
What is the value of y in the following code?
-
API methods (a)file * getfiles(dir); (b) dir * getsubdirs(dir); were given, and 2 structures one representing file and other representing dir were given. It is provided that both the structures have many members but only the name field is kn...
-
What is the complete flow of the profit center accounting,and Internal orders in controlling
-
We have a requirement to calculate leave entitlement at the anniversary year not calendar year. The leaves have both paid and unpaid components. The paid component is based on time worked. The unpaid component is based on years of service. Leave taken is
-
What is the size of struct xyz (in bytes) in the following: