# 430 考古題
---
## 澳門旅遊學院(資訊範疇)
### 選擇題(每題3分、共20題 60分)
1.linux 上 tar cvf 意思
```
1. 只打包不壓縮
2. 只壓縮不打包
3. 不打包不壓縮
4. 打包和壓縮
```
2.負責開機程式的路徑
```
/etc/inittab
/etc/initprocess
```
3.XML 版本格式
```
<?xml version="1.0"?>
```
4.網路安全法-監管實體
5.honeypot 用意
6.滲透測試意思
7.澳門旅院的網路安全為中等級別,首2年內需做哪一項安全評估
```
不需安全評估
基本安全評估
漏洞安全評估
進階安全評估
```
8.對 /shared 檔案建立 sticky bit
```
chmod 1777 /shared
chmod 2777 /shared
chmod 4777 /shared
chmod 6777 /shared
```
9.哪一個 PwerShell 指令在 Windows 裡打印出 ActiveDirectory 的所有用戶
```
C:\> Get-ADUser -Identity ChewDavid -Properties *
```
10.資安裡三層管理機制 3A 代表:
```
Accounting
Authentication
Approval
Authorisation
```
11.哪一個是 ISO20000 裡 SLA 意思
```
Service Level Management
```
12.災難復原目標
13.光纖哪一個是錯誤
```
多模較粗
建置成本貴
包覆層需要高折射率材質
單模較細
```
14.ISO27001 2013裡的內容
15.網路安全法-哪一位負責公共地方的網位安全
```
局長
司長
處長
職務主管
```
16.Java Script 的 Data Types
```
boolean
undefined
float
Numbers
```
17.
```java
var x = 4;
console.log(1);
if (x == 21){
console.log(2)
}
console.log(3);
```
18.
<p id="abc"> Apple </p>
document.getElementById("abc").innerHTML="orange";
19.
Output 是什麼?
```java
var a = 10
var b = "10"
var result = ""
if(a == b){
result = result + "equal";
}
else{
result = result + "unequal";
}
if(a === b){
result = result + "equal";
}
else{
result = result + "unequal";
}
console.log(result);
```
20.
```csharp
class Alaph{
}
class beta{
}
```
### 問答題
1.Hyper-converged infrastructure (HCI) 是什麼
2.SSL VPN vs IPSecVPN vs L2TP VPN
3.SQL
4.寫出一個函式 F(),回傳 int noOfRows,返回如下的 2D 陣列
F(2)
```
| 0 | 2 | 0 |
| 1 | 1 | 1 |
```
F(3)
```
| 0 | 0 | 3 | 0 | 0 |
| 0 | 2 | 2 | 2 | 0 |
| 1 | 1 | 1 | 1 | 1 |
```
F(4)
```
| 0 | 0 | 0 | 4 | 0 | 0 | 0 |
| 0 | 0 | 3 | 3 | 3 | 0 | 0 |
| 0 | 2 | 2 | 2 | 2 | 2 | 0 |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 |
```
5.ISO20000 裡的變更管理 和 供應商管理有什麼用處,與ISO27001有什麼區別?
---
## 澳門保安部隊事務局 資訊(雲計算建設及管理)範疇
## 一、選擇題
1. 高級 每多少年一次
3年
2. 中級 每多少年一次
2年
3. 高級 日志保存
6個月
4. 保安部隊監察實體
行政公職局
5. 應急中心
司法警察局
6. 一級 通報時間
7. 嚴重 通報時間
2小時
8. Huawei 雲計算平台採用哪一個虛擬化技術
OpenStack
9. huawei fusioninsight 不屬於 hadoop
HDFS/HBase/Hive 應該都屬於
10. HDFS 全稱
Hadoop Distributed File System
11. hdfs dfs -du -h 意思
https://sparkbyexamples.com/apache-hadoop/hadoop-hdfs-dfs-commands-and-starting-hdfs-dfs-services/
```
-du Shows the size of the file on hdfs.
```
12. VLAN ID 為 10 意思
13. 沒有設定 VLAN ID 時的行為
14. 在 FusionManager 配置時停止指令
stopall
restartall
init
config
15. FusionAccess,沒有GSLB
16. FusionSphere, HA
17. IEEE 802.1s 生成樹協議
https://baike.baidu.com/item/802.1s/6048259
18. TFTP 基於哪一個協定
19. VRRP priority 取值
The priority value for the VRRP router that owns the IP address(es) associated with the virtual router must be 255. VRRP routers backing up a virtual router must use priority values from 1 through 254. The default priority value for VRRP routers backing up a virtual router is 100.
20. PVST
21. VxLAN VNI 長度
22. 數位簽章
23. 法律
24. 法律
25. STP
27. NTP 同步
28. OceanStor 複製 pair 速度
29. 差異備份與增量備份
30. 雲端的缺點
### 簡答題
1. 安全會主席由______擔任
2. NTP 的 port ?
3. AES 屬於____算法
4. IPv4 最高 4 個位元為 _______
5. 雲計算的類型有___、___、___。服務種類為___、___、___
### 問答題
1. VxLan 分段
2. VTEP
3. M-LAG
4. APT 攻擊與傳統攻擊有何不同
5. 使用 VM 和 Docker 的區別
---
## 澳門保安部隊事務局 資訊(大數據及軟件開發)範疇
### 9 題全問答
1. 請詳述大數據處理的四步驟(采集、導入和預處理、統計和分析、數據挖掘)
2. 雲計算有何特點?
3. Python 在人工智能上有哪些優點? 機械學習(Machine Learning)有哪幾種方法?
機器學習的種類最主要分成四種:監督式學習(Supervised learning)、非監督式學習(Un-supervised learning)、半監督式學習(Semi-supervised learning)及強化學習(Reinforcement learning)
4. Mvc 和 Mvvm
5. WebAPI 和 Webservice
6. SQL injection
7. SQL statment (顯示 90 日後)
| i | Date | week |
|:---:| ---------- | ------ |
| 1 | 2022/08/12 | Friday |
| 2 | 2022/08/14 | Sunday |
8. 用 C# 或 Delphi 寫出撇除重複數字,以"|" 符號作為分隔,並寫出 test case
例:
input : 1|2|3|4|3|1|5
output : 1|2|3|4|5
9. 用stack implement,已知有push ,pop和count 的 function,寫Enqueue 和Dequeue
----
```
getAns(a, b):
while(b!=0):
carry = (a & b) << 1
b = (a ^ b)
a = carry
return b
```
```
int claxy(x,y):
if y = 0:
return 1
elif y % 2 == 0:
return claxy(x, y//2) * claxy(x, y//2)
else
return 2 * claxy(x, y//2) * claxy(x, y//2)
int main():
print(claxy(2,10))
print(claxy(-5,5))
```
# 忘記開考範疇
1. Sql archive log
1. Linux 644 代表?
1. Vlan 防止第二層loop的技術?
- [x] Stp
- [ ] vtp
- [ ] 802.1q
- [ ] Snmp
- [ ] Smtp
- [ ] Sat
4. Cisco Switch default setting
5. Oracle設置順序
1. SQL Server 2016 配置(硬體、軟體、os、
1. 4樓層、5部門、300主機 設置web server, mail server, dns server … 安全性 可靠性 如何配置?
1. Cornjob
1. Tabletab
1. VPN SSL vs IPsec vs L2TP vs IKEv2
1. Windows 哪個技技術不能增加效率/安全性/可信度? powershell?
1. Web server防火牆(waf)阻擋不到的攻擊
- [ ] SQL injection
13. 三層傳統網路架構
* 核心層 core
* 匯聚層 distribution
* 接入層 access
# 郵電局
40選 30短答 30長答
1. LOT5-7壓縮幾多 1.5TB->3TB?
1. 邊個睇到DNS sever?mac address?
- [ ] arp -i
- [ ] arp -a
- [ ] arp -s (mac address)
- [ ] ipconfig
- [ ] nstate
- [ ] nslookup
- [ ]
1. 10分OSI MODEL, TCP/IP model, firewall放邊層
1. DoS, DDoS簡述
1. Linux輸出結果
```i!
a=10;
b=10;
print(a==b?”true”:”false”)
```
## 長答
1. 網安「高級」的話,設計一個銀行系統,寫出點實施
1. 文職同事在家工作,寫出如何實現
1. acl 指令, 2個/24 subnet要入同一個subnet
1. nslookup 域名搵到ip, ip搵唔到域名 用咩方法?
* 清除dns內存
* 刷新dns內存
1. Iaas,paas,saas簡述,公有雲私有雲優缺點
1. Asp.net
* Postback
1. 完整備份,差異備份,備份
* 方式、備份時間、恢復時間、儲存空間大小
1. Linux更改權限指令
- [ ] chmod
1. Wannacry, 5個預防措施
1. 1 web server, 1 db server, 1dns server, 1file server, some hosts, 前2個出街可見,點配置外部、內部網,防火牆點set
1. config Vlan command
1. Javascript 隨機0-7指令
Math.ceil(Math.random()*10); // 获取从 1 到 10 的随机整数,取 0 的概率极小。
Math.round(Math.random()); // 可均衡获取 0 到 1 的随机整数。
Math.floor(Math.random()*10); // 可均衡获取 0 到 9 的随机整数。
Math.round(Math.random()*10); // 基本均衡获取 0 到 10 的随机整数,其中获取最小值 0 和最大值 10 的几率少一半。
| 方法 | 描述 |
|----- |----- |
| ceil(x) | 对数进行上舍入,即向上取整 |
| floor(x) |对 x 进行下舍入,即向下取整。
|round(x) |四舍五入。
|random() |返回 0 ~ 1 之间的随机数,包含 0 不包含 1。