Search Header Logo

Preguntas sobre Arreglos en Bash

Authored by Loreta Villarnobo

Computers

University

Used 1+ times

Preguntas sobre Arreglos en Bash
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué es un arreglo en Bash?

Un tipo de variable que puede almacenar solo un valor.

Una estructura de datos que permite almacenar múltiples valores en una sola variable.

Un comando de Bash que imprime texto en la pantalla.

Un archivo que contiene comandos de Bash.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo se define un arreglo en Bash?

arreglo[1] = "valor"

arreglo=("valor1" "valor2" "valor3")

definir arreglo = valor1, valor2

crear arreglo: ["valor1", "valor2"]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál es la forma correcta de acceder al primer elemento de un arreglo llamado frutas?

frutas[0]

frutas{0}

frutas.0

frutas(0)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Para modificar un elemento en un arreglo, se usa la siguiente sintaxis:

arreglo[1] = "nuevo_valor"

arreglo[1]: "nuevo_valor"

modificar arreglo[1] con "nuevo_valor"

cambiar arreglo[1] a "nuevo_valor"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué comando se usa para recorrer un arreglo en Bash?

while

for

loop

repeat

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Los arreglos en Bash son de tamaño fijo una vez que se definen.

Verdadero

Falso

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Los índices de un arreglo en Bash comienzan en 1.

Verdadero

Falso

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?