Resources
Legal
Prepare for interviews with a database of questions from real interviews.
Showing 1,741–1,760 of 2,216
Do you enjoy working with the product you create and develop?
What are the ways to organize interaction with network protocols and services in an application?
Have you had experience working with a qualification level system or grades at previous jobs?
How often is the layoutSubviews method called during the interface rendering process per second?
Tell us, do you plan to get a mortgage related to the IT field?
What is meant by the term 'target' in this context?
How can you free or reset a reference stored in a variable?
How do approaches to memory management differ in Objective-C and Swift?
Can there be difficulties or unexpected behaviors if one of the class's closures accesses its methods or properties?
How does SwiftUI recognize that the displayed view remains unchanged and does not need to be re-rendered?
What methods do you use to diagnose and find the causes of errors that occur for end users?
protocol CacheProtocol { associatedtype Value func setValue(_ value: Value?, forKey key: String) func getValue(forKey key: String) -> Value? func fetchValue(forKey key: String, completion: @escaping (Value?) -> Void) } final class Cache<T>: CacheProtocol { private var storage: [String: T] = [:] func setValue(_ value: T?, forKey key: String) { storage[key] = value } func getValue(forKey key: String) -> T? { return storage[key] } func fetchValue(forKey key: String, completion: @escaping (T?) -> Void) { let value = storage[key] completion(value) } } import XCTest final class CacheTests: XCTestCase { override func setUp() { super.setUp() } func testSetAndGetValue() { let cache = Cache<String>() let key: String = "key" let value: String = "value" cache.setValue(value, forKey: key) XCTAssertEqual(cache.getValue(forKey: key), value) cache.setValue(nil, forKey: key) XCTAssertTrue(cache.getValue(forKey: key) == nil) } } CacheTests.defaultTestSuite.run()
Can you list and explain the properties available in the Swift language?
How does Auto Layout manage rendering a large number of elements with constraints?
Is it possible to pass an event from one View to another in the current context?
How does a closure interact with an instance of a structure in programming languages?
What methods can be used to prevent or mitigate the consequences of network threats and attacks?
In which situations is it recommended to delete or update cached data?
Have you ever used the ActivityIndicator component in your projects?
Explain what is meant by the execution time of an algorithm in the context of evaluating its efficiency.