System Administrator Interview Questions
- 0of 0 votes
AnswersWithout using arrays, write a Console application that reads in a list of integers, one per line, until a sentinel value of 0 (which you should be able to change easily to some other value). When the sentinel is read, your program should display the following numbers:
Smallest and largest values in the list,
Second smallest and second largest values in the list
This is what I have so far.public static void main (String[] args) {int min = Integer.MAX_VALUE; int max = Integer.MIN_VALUE; int SecondMax = Integer.MAX_VALUE; int SecondMin = Integer.MAX_VALUE; Scanner s = new Scanner(System.in); while (true) { System.out.print("Enter a Value: "); int val = s.nextInt(); if (val == 0) { break; } if (val < min) { min = val; } if (val > max) { max = val; } } System.out.println("The smallest number is: " + min); System.out.println("The largest number is: " + max); System.out.println("The second smallest number is: " + SecondMin); System.out.println("The second largest number is: " + SecondMax); }
}}
- BrowerLot February 01, 2016 in United States| Report Duplicate | Flag | PURGE
UTMB System Administrator Java - 0of 0 votes
Answerdo you know any scripting languages
- Anon July 06, 2011| Report Duplicate | Flag | PURGE
Autonomy Zantaz System Administrator Experience - 0of 0 votes
AnswersHow do you feel that this position does not require a lot of coding, you are mainly dealing with system administration.
- Anon July 06, 2011 in United States| Report Duplicate | Flag | PURGE
Autonomy Zantaz System Administrator Behavioral - 0of 0 votes
Answers-why do you want to work for autonomy zantac
- Anon July 06, 2011| Report Duplicate | Flag | PURGE
Autonomy Zantaz System Administrator Behavioral - 0of 0 votes
Answers-how many houses are in pleaseanton
- Anon July 06, 2011| Report Duplicate | Flag | PURGE
Autonomy Zantaz System Administrator Brain Teasers - 0of 0 votes
Answers-why are man hole cover round
- Anon July 06, 2011| Report Duplicate | Flag | PURGE
Autonomy Zantaz System Administrator Brain Teasers - 0of 0 votes
Answers-three people, average salary without telling anybody your salary
- Anon July 06, 2011| Report Duplicate | Flag | PURGE
Autonomy Zantaz System Administrator Brain Teasers - 0of 0 votes
Answers-write atoi()
- Anon July 06, 2011| Report Duplicate | Flag | PURGE
Autonomy Zantaz System Administrator Algorithm - 0of 0 votes
Answers-print fibanncci number 0-1000
- Anon July 06, 2011| Report Duplicate | Flag | PURGE
Autonomy Zantaz System Administrator Algorithm - 1of 1 vote
AnswersGiven a matrix of integers where every row is sorted and every column is sorted. Print all elements in sorted order.
- Anonymous August 27, 2010
Cannot use merging of arrays. Solution should be better than O(n2logn)| Report Duplicate | Flag | PURGE
IBM System Administrator Operating System - 0of 0 votes
AnswersThis Was the toughest and last question
- rohith May 11, 2010
0,1
2 - ABC
3- DEF
4- GHI
5-JKL
6-MNO
7- PQR
8- STU
9- VWXYZ
Each number represents the set of variables and When we input a number . it should be replaced by all possible string values corresponding. eg : if we enter 27190000.
It should output.
APV
APW
APX
APY
APZ
...........| Report Duplicate | Flag | PURGE
Epic Systems System Administrator Coding - -1of 1 vote
AnswersIn a company , there are three categories.A,B,C.
- rohith May 11, 2010
They want to give an increment.So if category C gets N% as increment. category B gets 2N% as increment and category A gets 3N% as increment.But the increment should be atleast 1% and The total updated salary should not exceed $50,000.
Print the increment and the total updated salary for a particular employee.
Assume all the required variables.| Report Duplicate | Flag | PURGE
Epic Systems System Administrator Coding - 0of 0 votes
AnswersAt a geeks goodies store.. every thing is either one dollar or less. and they accept only 10 dollars or less than 10 as denominations.So make a function that takes in the cost and payment as input and that out puts the change.
- rohith May 11, 2010
The denominations are namely 1c,5c,10c,25c,$1,$5,$10| Report Duplicate | Flag | PURGE
Epic Systems System Administrator Coding - 0of 0 votes
AnswersTake string as an input from the user.After taking. consider A ,a ,e,E,i,I,o,O,u,U, -- if these letters appear in the string.. then replace them with A^ ,a^,e^,E^,i^,I^,o^,O^,u^,U^. leave the first three eligible letters from the starting of the string.---
- rohith May 11, 2010
example --- greateribblizing.
converts to greateri^bbli^zi^ng.| Report Duplicate | Flag | PURGE
Epic Systems System Administrator Coding - 0of 0 votes
AnswersTake the user gives a set of numbers as input.Stop taking the input when he enters 0. Display the maximum odd integer and minimum even integer.See that the user inputs correct values as input.
- rohith May 11, 2010| Report Duplicate | Flag | PURGE
Epic Systems System Administrator Coding - 0of 0 votes
AnswerWhat is firmware? What is a device driver? How are they related and how are they different?
- - February 22, 2010| Report Duplicate | Flag | PURGE
NetApp System Administrator System Design - 0of 0 votes
AnswersWhat all did you do to improve the conditions in your college?
- - February 22, 2010| Report Duplicate | Flag | PURGE
NetApp System Administrator Behavioral - 0of 0 votes
AnswersWhat is a snapshot? Why is it useful?
- - February 22, 2010| Report Duplicate | Flag | PURGE
NetApp System Administrator Ideas - 0of 0 votes
AnswersWhat is groupby?
- ramesh.chettu20 December 23, 2009| Report Duplicate | Flag | PURGE
Cisco Systems System Administrator Database - 0of 0 votes
AnswersWhat programs have to be running on the server and client for an NFS mount to work (answer: to work, just nfsd and mountd on the server; although both client and server SHOULD be running nfsd and mountd)
- Mr. Know-It-All September 24, 2005| Report Duplicate | Flag | PURGE
Goldman Sachs System Administrator System Administration