Login
Remember
Register
MCQ Village Q&A
Questions
Unanswered
Categories
Ask a Question
Ask a Question
What is the output for the following script?
0
votes
129
views
asked
Apr 11, 2023
in
Systems Programming
by
Admin
(
0
points)
closed
Apr 11, 2023
by
Admin
What is the output for the following script?
#! /bin/bash
x=10
y=5
str="your best Teacher is your last mistake"
echo ${str:x:y}
Select one:
a. 10, 5
b. Teach
c. Teache
d. Teacher
closed
systems-programming
Please
log in
or
register
to add a comment.
1
Answer
0
votes
answered
Apr 11, 2023
by
Admin
(
0
points)
Best answer
B
Please
log in
or
register
to add a comment.
Related questions
0
votes
1
answer
115
views
Which of the following shell scripts will produce the output "my first script" ?
asked
Apr 11, 2023
in
Systems Programming
by
Admin
(
0
points)
systems-programming
0
votes
1
answer
138
views
What is the output of the statement echo HELLO
asked
Apr 11, 2023
in
Systems Programming
by
Admin
(
0
points)
systems-programming
0
votes
1
answer
132
views
Which of the following statements is true for Relocatable programs?
asked
Apr 11, 2023
in
Systems Programming
by
Admin
(
0
points)
systems-programming
0
votes
1
answer
120
views
While executing the shell script, by default $0 always stores
asked
Apr 11, 2023
in
Systems Programming
by
Admin
(
0
points)
systems-programming
0
votes
1
answer
128
views
Why shell script use of "$?" sign?
asked
Apr 11, 2023
in
Systems Programming
by
Admin
(
0
points)
systems-programming
2.8k
questions
2.8k
answers
0
comments
76
users
Welcome to MCQ Village Q&A, where you can ask questions and receive answers from other members of the community.
...