Phần 1: Bài 1 đến bài 6 (Ôn thi PTUD WEB)

 Câu hỏi ôn tập từ bài 1 đến bài 6



Bài 1: Kiến trúc client - server và quá trình duyệt web

Câu 1. Kiến trúc client-server gồm 4 thành phần sau:

A. Server, Services, Môi trường truyền, Giao thức truyền thông tin

B. Client, Server, Môi trường truyền, Giao thức truyền thông tin

C. Client, Server, Môi trường truyền, Thiết bị lưu trữ

D. Client, Server, Trình duyệt, Giao thức truyền thông tin

Câu 2. Trong kiến trúc client-server, client có thể là trình duyệt, ứng dụng viết bằng python/javascript hoặc bất kỳ ứng dụng nào mà có phát sinh ra ______.

A. Kết quả

B. HTTP request

C. Giao thức

D. HTML

Câu 3. Một số phần mềm dùng để tạo ra HTTP Web Server gồm:

A. IIS, Apache, Tomcat, NodeJS, Unix, GWS, Tornado

B. IIS, Apache, Tomcat, DNS, Nginx, GWS, Tornado

C. IIS, Apache, Tomcat, NodeJS, Nginx, GWS, HTTP response

D. IIS, Apache, Tomcat, NodeJS, Nginx, GWS, Tornado

Câu hỏi 4. Client–server model is a distributed application structure that partitions tasks or workloads between the providers of a resource or service, called _______, and service requesters, called clients.

A. browsers

B. web services

C. servers

D. centers

Câu hỏi 5. Web server thường gửi về trình duyệt các loại mã nguồn sau:

A. HTML, CSS, JavaScript, PHP

B. C#, HTML, CSS, JavaScript

C. HTML, CSS, JavaScript

D. Python, HTML, CSS, JavaScript

Bài 2: Hệ thống tên miền

Câu 1. DNS là  viết tắt của:

A. Domain Name Services

B. Domain Name System

C. Domain Network Services

D. Document Name System

Câu 2. The DNS is a hierarchical and _________ naming system for computers, services, or other resources connected to the Internet or a private network.

A. centralized

B. domain

C. decentralized

D. digital

Câu 3. Hệ thống DNS gồm 3 thành phần là:

A. Name server, DNS namespace và Resolver

B. DNS system, Resolver và Name server

C. Root server, DNS namespace, và Name server

D. DNS namespace, Domain Name và Resolver

Câu 4. Dấu chấm ở cuối tên miền “http://www.vidu.com.”,  mang ý nghĩa gì?

A. Không mang ý nghĩa gì, do viết thừa

B. Tên miền gốc (root domain)

C. Tên miền mức cao (top level domain)

D. Thư mục gốc của website

Câu 5. Tổ chức quản lý và cung cấp tên miền quốc tế và Việt Nam là:

A. W3C và VNPT

B. eBay và Mắt bão

C. ICANN và VNPT

D. ICANN và VNNIC

Câu 6. Trong hệ điều hành Windows, tập tin hosts chứa cái gì?

A. Danh sách các máy chủ

B. Địa chỉ các máy host

C. Các bản ghi IP-Domain name

D. Địa chỉ các DNS server

Bài 3: Web server

Câu 1. Câu nào phát biểu đúng nhất về client-side và server-side?

A. Client-side gồm các hoạt động tại trình duyệt, server-side gồm các hoạt động tại web server

B. Client-side gồm các hoạt động tại web server, server-side gồm các hoạt động tại trình duyệt

C. Client-side nhận yêu cầu từ web server, server-side gửi yêu cầu tới trình duyệt

D. Client-side gắn với máy chủ, server-side gắn với trình duyệt

Câu 2. Câu nào phát biểu đúng nhất về front-end và back-end?

A. Front-end gồm các xử lý tại máy server, back-end gồm giao diện và các xử lý tại giao diện của ứng dụng

B. Để làm phần front-end cần sử dụng một trong các ngôn ngữ C#, PHP, JavaScript, Ruby, Python

C. Front-end gồm giao diện và các xử lý tại giao diện của ứng dụng, back-end gồm các xử lý tại máy server

D. Để làm phần back-end có thể sử dụng các ngôn ngữ HTML, CSS, JavaScript

Câu 3. A web server is computer software and underlying hardware that accepts requests via______, the network protocol created to distribute web pages, or its secure variant HTTPS.

A. DNS

B. JavaScript

C. HTML

D. HTTP

Câu 4. Web root is the topmost _______in which the files making up a web site are located on a web server.

A. file

B. directory

C. server

D. protocol

Câu 5. Địa chỉ IP mặc định của web server, khi cài trên máy cục bộ là?

A. 127.0.0.0

B. 127.0.0.1

C. 8.8.8.8

D. 192.168.0.1

Câu 6. Tên miền mặc định của web server, khi cài trên máy cục bộ là?

A. webserver

B. root

C. webroot

D. localhost

Bài 4: Dịch vụ lưu trữ web

Câu hỏi 1. Cái nào dưới đây không phải là loại dịch vụ lưu trữ website?

A. Lưu trữ chia sẻ (shared hosting), lưu trữ trên đám mây (cloud hosting)

B. Lưu trữ trên máy chủ ảo dùng riêng (virtual private server hosting)

C. Lưu trữ trên máy chủ dùng riêng (dedicated server hosting)

D. Lưu trữ trên máy chủ của VNNIC (VNNIC server hosting)

Câu hỏi 2. Để có một website trên không gian web, cần làm một số việc, trong các việc dưới đây, cái nào không cần thiết?

A. Lập trình website

B. Đăng ký tên miền

C. Cấu hình tập tin hosts trên máy cục bộ (Windows)

D. Đưa website lên web server

Câu hỏi 3. What kind of web hosting service this description refered?

 “One's website is placed on the same server as many other sites, ranging from a few sites to hundreds of websites. Typically, all domains may share a common pool of server resources, such as RAM and the CPU”.

A. cloud hosting

B. VPS hosting

C. dedicated server hosting

D. shared hosting

Câu hỏi 4. Your ______ is the amount of data transfer when your website is acceded. You use ______  through traffic generation, email, uploads, and downloads. Some hosting plans offer unlimited ______, but you should choose the highest amount necessary for your requirements.

A. download

B. upload

C. bandwidth

D. up time

Câu hỏi 5. With_______, you have a global network of servers all working together. That means if one server goes down, the other servers can pick up the load. It also allows you to pay for only the resources you're using, and you can scale up or down immediately.

A. cloud hosting

B. VPS hosting

C. dedicated server hosting

D. shared hosting

Bài 5: Lập trình phía server

Bài tập 1. Cài đặt PHP, chạy ở chế độ dòng lệnh CLI (command-line interface).

Bài tập 2. Lập trình các chương trình sau Tại đây

2.1. Write a PHP script to get the PHP version and configuration information.

<?php
    phpinfo();
?>

2.2. Write a PHP script to display the following strings.

Sample String:

<?php
echo nl2br("Tomorrow I \'ll learn PHP global variables.\n
This is a bad command : del c:\\*.*");
?>

Expected Output :

Tomorrow I 'll learn PHP global variables.

This is a bad command : del c:\*.*

2.3. Write a PHP script, which will return the following components of the url 'https://www.w3resource.com/php-exercises/php-basic-exercises.php'.

List of components : Scheme, Host, Path

Expected Output :

Scheme : http

Host : www.w3resource.com

Path : /php-exercises/php-basic-exercises.php

<?php
    $url = 'https://www.w3resource.com/php-exercises/php-basic-exercises.php';
    $url = parse_url($url);
    echo 'Scheme : ' . $url['scheme'] . "<br/>";
    echo 'Host : ' . $url['host'] . "<br/>";
    echo 'Path : ' . $url['path'] . "<br/>";
?>

Bài 6: Kết nối web server và chương trình dịch

Câu hỏi 1. Phát biểu nào không đúng khi nói về Apache?

A. Là trình thông dịch mã PHP

B. Là cổng kết nối giữa web client và trình dịch mã

C. Là một phần mềm web server

D. Là phần mềm mã nguồn mở

Câu hỏi 2. Sau đây là một số cách kết nối Apache và chương trình dịch PHP, cái nào không đúng ?

A. FCGI

B. CGI

C. HTTP

D. Apache module

Câu 3. Thư mục gốc (web root) mặc định của web server trên hệ thống Apache là:

A. conf

B. bin

C. htdocs

D. manual

Câu 4. Thư mục gốc (web root) mặc định của web server trên hệ thống Nginx là:

A. conf

B. docs

C. contrib

D. html

Đăng nhận xét

0 Nhận xét