HomeExamsCodeTETAOSSPROIC1110
TETAOSSPROIC1110

Infosys Certified Unix Associate

Practice with real exam-pattern questions for Infosys Certified Unix Associate. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.

BeginnerCode90 min
Free questions

10 Infosys Certified Unix Associate practice questions with answers

Real Lex exam-pattern multiple-choice questions for the Infosys Certified Unix Associate certification. Each question includes the correct answer. The full question bank is available to Premium members.

  1. Question 1

    Which of the following is/are special variables that are not related to arguments passed to a shell script?

    • $#

      Correct
    • B

      $?

    • C

      $@

    • D

      $3

    • E

      $$

  2. Question 2

    case $choice in
    
            [Y] | [Y][Ee][Ss] )
                    echo "Agreed"
                    ;;
    
            [N] | [N][O|o] )
                    echo "Not agreed";
                    exit 1
                    ;;
            *) echo "Invalid input"
                ;;
    esac
    

    Which of the following options are incorrect with respect to the above code?

    • If choice is YEs, then it will display Agreed

      Correct
    • B

      If choice is nO, then it will display Invalid input

    • C

      If choice is y, then it will display Agreed

    • D

      If choice is N, the it will display Not agreed

  3. Question 3

    Predict the output

    arr=(1 2 3 4 5)
    for i in ${arr[*]};do
    	if [ `expr $i % 2` -eq 0 ];then
    		temp=$( expr $i * $i))
    		echo $temp
    	else 
    		echo ' "$i" '
    	fi
    done
    

    • $i 4 $i 16 $i

      Correct
    • B

      1 4 3 16 5

    • C

      "$i" 4 "$i" 16 "$i"

    • D

      "1" 4 "3" 16 "5"

  4. Question 4

    What will be the output of below code-

    var=50

    until [ $var -lt 45 ]

    do

    echo $var

    var=`expr $var - 1 `

    done

    • 50 49 48 47 46

      Correct
    • B

      50 49 48 47 46 45

    • C

      Error:value out of bound

    • D

      No Output

  5. Question 5

    Predict the output

    num_arr=(1 2 3 4 5 6 7)
    value=1
    for i in ${num_arr[*]}
    do
        if [ `expr $i % 2 ` -eq 0 ];then
     	value=`expr $value \* $i`
        else
    	value=`expr $value \* $i`
        fi
    done
    echo $value 
    

    • 105

      Correct
    • B

      48

    • C

      5040

    • D

      42

  6. Question 6

    Predict the output:

    i=5
    until [ $i -ge 5 ];do
      echo $i;
      i=`expr $i + 1`
    done
    echo "Loop Ended"
    

    • Infinite loop

      Correct
    • B

      5 Loop Ended

    • C

      Loop Ended

    • D

      None of the options

  7. Question 7

    Predict the output

    x=350
    sum=0
    until [ $x -eq 0 ]
    do
    	sum=`expr $sum + 1`
    	x=`expr $x / 10` 
    done
    echo $sum
    

    • 8

      Correct
    • B

      3

    • C

      2

    • D

      Infinite loop

  8. Question 8

    What values need to be passed to the variables val1 and val2 in the below code to get "Newyork" as output?

    if [ $val1 = $val2 ]; then
      echo "London"
    else
      echo "Newyork"
    fi
    

    • The code has error

      Correct
    • B

      1,1

    • C

      abc,abc

    • D

      3,3abc

  9. Question 9

    How many times will the loop get executed?

    j=10
    until [ $j -ge 13 ];do
      echo $j;
      j=`expr $j + 1`
    done 
    

    • Infinite loop

      Correct
    • B

      4

    • C

      3

    • D

      10111

  10. Question 10

    Betty is working in a Unix system, whose present working directory is /home/Betty/InfyMart/Items/Categories. Under the Categories directory, there are two subdirectories FoodProducts and BeautyProducts. Now she wishes to create an archive from the contents of BeautyProducts directory. Identify the correct command to achieve this

    i) ls ./BeautyProducts | cpio -ov > archive_file

    ii) ls -l BeautyProducts | cpio -ov -H tar -F archive_file

    iii) ls BeautyProducts | cpio -ov -H tar -F archive_file

    iv) ls ../Categories/BeautyProducts | cpio -ov > archive_file

    • i), ii), iii)

      Correct
    • B

      i), iii)

    • C

      i), ii), iii), iv)

    • D

      i), iii), iv)

Pricing

Pay once. Clear every cert this year.

One subscription, full Telegram channel access, every PDF posted during your membership.

Monthly
50% OFF
₹1,300₹2,600
Per month · cancel anytime
  • Full access to all 1,357+ certifications
  • Monthly updated question banks
  • Telegram private channel access
  • Cancel anytime
Get Monthly
POPULAR
Quarterly
44% OFF
₹1,800₹3,200
That's ₹600/mo · billed for 3 months
  • Everything in Monthly
  • Save ₹2,100 vs monthly billing
  • Priority answer key requests
  • Best for increasing DQ score fast
Get Quarterly
BEST VALUE
Lifetime
52% OFF
₹2,400₹5,000
One-time · lifetime access
  • Everything in Quarterly
  • Lifetime channel access — no renewals
  • All future certifications included
  • Priority response from admin team
Get Lifetime
FAQ

Common questions, straight answers.

A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.

Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.

We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.

Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.

Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.

i
InfyLexDumps

Independent exam preparation platform for Infosys Lex certifications. Real exam-pattern question banks, monthly updates, 180K+ community members.

Join Premium Telegram
Contact
  • @prepflixadmin
  • admin@prepflix.net
This platform is an independent educational resource and is not affiliated with or endorsed by Infosys Ltd. All certification names referenced are property of their respective owners.
© 2026 InfyLexDumps
Join Premium Telegram