Computer Science Exam MCQs - Part 6
51. Which of the following is the correct structure of a URL?
A. Protocol://DomainName.Path?QueryString#Fragment
B. DomainName.Protocol//Path?QueryString#Fragment
C. Protocol://Path?DomainName#QueryString
D. QueryString#Fragment.Protocol://DomainName/Path
52. What does URL stand for?
A. Universal Resource Locator
B. Uniform Resource Locator
C. Unified Resource Link
D. Universal Reference Link
E. Unique Resource Locator
53. In computer networking, localhost refers to a special hostname that resolves to the current machine you're using. By definition, it resolves to which IP address?
A. 127.0.0.0
B. 127.0.0.1
C. 192.168.0.1
D. 10.0.0.1
E. 255.255.255.0
54. Which of the following is an absolute CSS unit of measurement?
A. em
B. %
C. px
D. rem
55. The default position for HTML elements is;
a. static
b. relative
c. absolute
d. fixed
e. sticky
56. The control unit of the CPU is responsible for:
A) Executing arithmetic operations
B) Managing data flow between the CPU and memory
C) Storing temporary data
D) Managing input/output operations
57. Which of the following stores intermediate data and instructions during program execution?
A) Cache Memory
B) Registers
C) Hard Disk Drive
D) Solid State Drive
58. The speed of a CPU is measured in:
A) Gigabytes (GB)
B) Hertz (Hz)
C) Gigahertz (GHz)
D) Megabytes (MB)
59. What is the primary purpose of the CPU cache?
A) To store permanent data
B) To hold frequently used instructions and data for faster access
C) To increase the size of the main memory
D) To connect the CPU with external devices
60. Which of the following best describes hyper-threading in CPUs?
A) A technique for increasing the number of physical cores in the CPU
B) A method that allows a single core to handle multiple instruction threads simultaneously
C) An approach to improve data storage efficiency
D) A type of multi-core processor
51. Answer: A. Protocol://DomainName.Path?QueryString#Fragment
Explanation: A URL (Uniform Resource Locator) typically follows the structure:
Protocol: Specifies the protocol to be used (e.g., http, https).
DomainName: The address of the resource (e.g., www.example.com).
Path: The specific resource within the domain (e.g., /index.html).
QueryString: Contains data to be passed to web applications (e.g., ?id=123).
Fragment: An identifier to navigate to a specific section within a resource (e.g., #section1).
So, the correct structure is represented in option A.
52. Answer: B. Uniform Resource Locator
Explanation: URL stands for Uniform Resource Locator, which is the reference (address) to a resource on the internet.
53. Answer: B. 127.0.0.1
Explanation: The IP address 127.0.0.1 is the standard address for IPv4 loopback network connections, commonly known as localhost. This address is used to establish an IP connection to the same machine or computer being used by the end-user.
54. Answer: C. px
Explanation: In CSS, units can be either absolute or relative:
Absolute units: These are fixed and do not change based on other elements. Examples include px (pixels), cm (centimeters), mm (millimeters), in (inches), pt (points), and pc (picas).
Relative units: These are relative to another length property. Examples include em (relative to the font-size of the element), % (relative to the parent element), and rem (relative to the font-size of the root element).
Therefore, px is an absolute unit of measurement.
55. Answer: a. static
56. Answer: B) Managing data flow between the CPU and memory
57. Answer: B) Registers
58. Answer: C) Gigahertz (GHz)
59. Answer: B) To hold frequently used instructions and data for faster access
60. Answer: B) A method that allows a single core to handle multiple instruction threads simultaneously
Comments
Post a Comment
Write something to CodeWithAbdur!