heap:malloc, threads
heap pointers can be dereferenced to any thread(write/ read)
multiple
Solution: A
echo command in linux is used to display line of text/string that are passed as an argument . This is a built in command that is mostly used in shell scripts and batch files to output status text to the screen or a file.
2. \c : suppress trailing new line with backspace interpreter ‘-e‘ to continue without emitting new line.
8. echo * : this command will print all files/folders, similar to ls command
The current process ID is provided by a getpid() system call, or as a variable $$ in shell. The process ID of a parent process is obtainable by a getppid() system call.
Solution: B
Solution: 16
ip/v4地址:一共32位
前20位全是属于公司自有的
后8位是: 主机一的IP地址 (12-8)* 4
strlen(): segmentation fault, strncpy(dest, source) save method, strcat() unsavemethod
system(Linux command)
(11+2-3-10 )*2= -8
Algorithm 1:
Python String – Replace character at Specific Position
Solution: A
http协议是无状态协议,即下一次的http请求与上一次的http请求没有任何关系,是一次独立的请求,没有任何上下文关系,即不记录上下文。但是TCP是有状态的协议,TCP下一次传输的报文段和上一次传输的报文段是有顺序关系的,最终要按照报文段里的序列号对所有报文段进行重排序。
HTTP 协议本身也是无连接的,虽然它使用了面向连接的 TCP 向上提供的服务。
1. GET
获取资源
当前网络请求中,绝大部分使用的是 GET 方法。
2.HEAD
获取报文首部
和 GET 方法类似,但是不返回报文实体主体部分。
主要用于确认 URL 的有效性以及资源更新的日期时间等。
3. POST
传输实体主体
POST 主要用来传输数据,而 GET 主要用来获取资源。
5. PATCH
对资源进行部分修改