趋势科技笔试

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

对资源进行部分修改

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值