Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Swift perguntas e respostas de entrevista

Test your skills through the online practice test: Swift Quiz Online Practice Test

Pergunta 36. Explain the 'escaping' closure and why it's necessary in Swift.

An 'escaping' closure is a closure that is called after the function it was passed to has returned. It's necessary when the closure is stored or outlives the scope of the function.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 37. What is the purpose of the 'self' keyword in Swift?

'self' is used to refer to the instance of the current type, and it's often required to distinguish between instance variables and parameters with the same name.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 38. Explain the difference between 'defer' and 'finally' in Swift.

'defer' is used to execute a block of code just before the scope is exited, while 'finally' is not used in Swift. Instead, error handling with 'defer' and 'catch' is more idiomatic.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 39. What is the 'lazy' keyword used for in Swift?

'lazy' is used to delay the initialization of a property until it's accessed for the first time.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 40. Explain the purpose of 'inout' parameters in Swift functions.

'inout' parameters allow a function to modify the value of the parameter directly, and any changes made inside the function affect the original value outside the function.

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.