Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 187
Q4061:
Using which of the following as the server name improves local connection performance?
A. full machine name
B. (local IP address)
C. .
D. hostname
Correct Answer: C
Chapter: 187
Q4062:
The correct function for clients to connect to a named pipe is
A. CreatePipe()
B. CreateFile()
C. ConnectPipe()
D. OpenPipe()
Correct Answer: B
Chapter: 187
Q4063:
The path format \\servername\pipe\pipename is used when
A. the server is remote
B. the client is offline
C. the client is the server
D. the pipe is hidden
Correct Answer: A
Chapter: 187
Q4064:
______ delivers better connection performance when the server is local.
A. Using IP address
B. Using host name
C. Using dot (.) as server name
D. Using full domain name
Correct Answer: C
Chapter: 187
Q4065:
Named pipe client connections use which function for establishing a connection?
A. pipeConnect()
B. CreatePipe()
C. CreateFile()
D. PipeOpen()
Correct Answer: C
Chapter: 187
Q4066:
The backslashes in the named pipe path indicate
A. hardware routes
B. pipe security
C. windows file structure
D. network location
Correct Answer: D
Chapter: 187
Q4067:
To connect to a local named pipe, clients should use
A. \\server\pipe\name
B. \\localhost\pipe\name
C. \\.\pipe\pipename
D. \\localmachine\pipe\pipename
Correct Answer: C
Chapter: 187
Q4068:
When connecting to a named pipe on a remote machine, the path begins with
A. \\.\
B. \\pipe\
C. \\remote\
D. \\servername\
Correct Answer: C
Chapter: 187
Q4069:
The syntax for connecting to a remote pipe includes
A. \\host\file\pipe
B. \\server\pipe\pipename
C. \\host\\pipe\\name
D. \\remote\pipe\server
Correct Answer: B
Chapter: 187
Q4070:
The local named pipe path starts with _______
A. \\localhost\pipe\
B. \\.\pipe\
C. \\local\pipe\
D. \\system\pipe\
Correct Answer: B
Chapter: 187
Q4071:
Connecting to a named pipe involves using _______ as the function
A. CreateNamedPipe()
B. CreateFile()
C. OpenNamedPipe()
D. ConnectToPipe()
Correct Answer: B
Chapter: 187
Q4072:
When connecting to a remote named pipe, _______ is included in the path
A. the hostname
B. the IP address
C. the MAC address
D. the OS version
Correct Answer: A
Chapter: 188
Q4073:
Which function is used to check if a pipe is in blocking or non-blocking mode?
A. GetPipeState()
B. GetPipeStatus()
C. GetNamedPipeHandleState()
D. GetStateInfo()
Correct Answer: C
Chapter: 188
Q4074:
The function _______ allows setting the state attributes of a named pipe.
A. SetNamedPipeAttributes()
B. SetPipeStatus()
C. SetNamedPipeHandleState()
D. ConfigurePipeState()
Correct Answer: C
Chapter: 188
Q4075:
Which of the following returns information about whether the pipe is message or byte oriented?
A. GetNamedPipeInfo()
B. GetNamedPipeState()
C. GetNamedPipeHandleState()
D. AnalyzePipeState()
Correct Answer: C
Chapter: 188
Q4076:
To determine if the handle belongs to a client or server, use _______.
A. GetNamedPipeInfo()
B. CheckPipeStatus()
C. GetPipeOwner()
D. GetHandleType()
Correct Answer: A
Chapter: 188
Q4077:
GetNamedPipeInfo() provides information on
A. buffer sizes and ownership
B. only blocking mode
C. security settings only
D. message types only
Correct Answer: A
Chapter: 188
Q4078:
Which function can get the client session ID of a named pipe?
A. GetClientID()
B. GetPipeSessionID()
C. GetNamedPipeClientSessionId()
D. GetNamedPipeState()
Correct Answer: C
Chapter: 188
Q4079:
The server process ID can be retrieved using
A. GetServerPipeInfo()
B. GetNamedPipeServerProcessId()
C. GetProcessPipeID()
D. GetPipeServerID()
Correct Answer: B
Chapter: 188
Q4080:
To set pipe mode to message-oriented, you would use
A. SetNamedPipeAttributes()
B. SetNamedPipeHandleState()
C. ConfigureNamedPipe()
D. SetPipeBufferMode()
Correct Answer: B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now