iOS面試考題
紀錄一下 之前看到的考題 應該是沒有語言限制
- Declare a function pointer with int return.Define a type in above function pointer and use it as a callback
func x()->int{}
func x(compted: @escaping()->void){}
2. What’s hash table?Make an application example for Hash Table
enum fruit
{
case Apple
case Banana
}
3. What’s race condition/critical section in Operation System,how to solve it?
GCD ,Priority
4. What’s Polymorphism,make 2 difference exapmples to implement polymorphism in JAVA or other language
class People{}
class Super:People{}
class Spider:People{}
5. Explain HTTP protocol as possible as you can and describe the difference of session in TCP and HTTP
error,sent,token
6. Please describe your experience of using 3rd party library/SDK, ex FB/twitter/google/apple and so on? If you have any experience/idea to provide your own library or SDK,please also describe it.
7. Describe How RSA and HTTPS/TLS work?
8. Explain grub and rootFS, Cramfs in Linux system
9.Illustrate any network protocol and how it wroks, more protocols are better
protocol Network
{
var data:Any?
var token:String?
var error:String?
}
10 What’s difference among a standalone Linux server, VM and Container?
