Reference no: EM13947976
Give brief answers for the following questions.
1. Can an until loop sometimes never execute?
2. Will the following script execute with no errors?
#!/bin/csh
for I
do
echo $I
done
3. Does the following script print to standard output, a list of numbers equal to the number passed on the command line?
#!/bin/sh
count=$1
index=1
while [ "0$index" -le $count ]
do
echo $index
index=`expr "$index" + 1`
done
4. Will the following statement print 'I am glad this class is over' to standard output if the shell variable XYZ is NULL or not set?
: ${XYZ:?"I am glad this class is over"}
5. After the statement
: ${VISUAL:=vi}
will the value of the shell variable VISUAL always be vi?
6. Will the following command execute:
${VISUAL:+vi} ls
the command 'ls' if the shell variable VISUAL is not set or null?
7. Will the following commands send to the line printer all files whose contents contain the text '/bin/sh' if the command to print is lpr ?
MATCH=`grep -l '/bin/sh' *`
lpr ${MATCH?"NO files found"}
Find mean , variance and standard derivation
: Ther are 8 balls in a sample 5 white and 3 black .x is the number of black balls in the sample. three white are selected. white are selected from sample.write the probability distribution and find of x . and find mean , variance and standard deri..
|
Explain why the first view is more of a myth than reality
: Explain why the first view is more of a myth than reality. In offering this explanation, give explicit reasons for your position.
|
Ethical principles of psychologists
: Which of the five General Principles from the APA Ethics Code do you think the psychologist might have violated by his response in this case
|
Is this process wide sense stationary
: A random process has sample functions of the form X(t)=A, where A is a Rayleigh distributed random variable with mean of 4. Is this process wide sense stationary? If so, why?
|
Can an until loop sometimes never execute
: Does the following script print to standard output, a list of numbers equal to the number passed on the command line?
|
Explain about term opportunity cost
: How a rise in the price of sugar affects the market for sodas - How federal government budget deficits affect interest rates.
|
Screw dislocations of opposite sign
: 1. Is it possible for two screw dislocations of opposite sign to annihilate each other? Explain your answer. 2. For each of edge, screw, and mixed dislocations, cite the relationship between the direction of the applied shear stress and the directi..
|
When an economy grows the production or output increases
: When an economy grows the production or output increases. With the above data, believes that India has an inflationary gap, a gap was recessive or full employment?
|
Explain caesar cipher and write down caesar cipher algo
: Explain "Caesar Cipher". and Write down Caesar Cipher algorithm in C code.
|