Swift: Funciones, arrays y variables

Swift: Funciones, arrays y variables

University

10 Qs

quiz-placeholder

Similar activities

PROF. MAYNEL LUDWIG LAINEZ SOTO

PROF. MAYNEL LUDWIG LAINEZ SOTO

10th Grade - University

7 Qs

Programlanabilir Mantık Devreleri

Programlanabilir Mantık Devreleri

University - Professional Development

10 Qs

Sistemas operativos

Sistemas operativos

9th Grade - Professional Development

10 Qs

AyEdD - Mini Quizz 1

AyEdD - Mini Quizz 1

University

8 Qs

Python - Data Types

Python - Data Types

12th Grade - University

11 Qs

PHP BASIC

PHP BASIC

University

10 Qs

LINUX HISTORIA DIRECTORIOS Y COMANDOS

LINUX HISTORIA DIRECTORIOS Y COMANDOS

University

10 Qs

Saberes Previos 1

Saberes Previos 1

University

10 Qs

Swift: Funciones, arrays y variables

Swift: Funciones, arrays y variables

Assessment

Quiz

Instructional Technology

University

Hard

Created by

DANIELA ATAYDE REGALADO

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

¿Cuál es la forma correcta de declarar una constante en Swift?

let x = 10

const x = 10

var x = 10

constant x = 10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • ¿Qué tipo de colección es un array en Swift?

  • a) Mutable y ordenada

  • b) Inmutable y desordenada

  • c) Mutable y desordenada

  • d) Inmutable y ordenada

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • Cuál es la forma correcta de definir una función en Swift?

def miFuncion() {}

  • function miFuncion() {}

  • func miFuncion() {}

  • miFuncion() {}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué método se utiliza para agregar un elemento a un array en Swift? a) add()

add()

insert()

append()

push()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál es el resultado de la siguiente expresión?

let a = 5

let b = 10

let resultado = a + b

5

10

15

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué tipo de dato se utiliza para almacenar un valor verdadero o falso en Swift?

String

Int

Char

Bool

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué función se utiliza para recorrer un array en Swift?

map()

forEach()

filter()

repeat()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?