Q. In hierarchical clustering, what does the dendrogram represent?
A.
The accuracy of the model
B.
The hierarchy of clusters
C.
The distance between data points
D.
The number of features
Show solution
Solution
A dendrogram visually represents the arrangement of clusters in hierarchical clustering.
Correct Answer:
B
— The hierarchy of clusters
Learn More →
Q. In hierarchical clustering, what does the term 'dendrogram' refer to?
A.
A type of data point
B.
A tree-like diagram that shows the arrangement of clusters
C.
A method of calculating distances
D.
A clustering algorithm
Show solution
Solution
A dendrogram is a tree-like diagram that illustrates the arrangement of clusters formed during hierarchical clustering.
Correct Answer:
B
— A tree-like diagram that shows the arrangement of clusters
Learn More →
Q. In hierarchical clustering, what does the term 'linkage' refer to?
A.
The method of assigning clusters to data points
B.
The distance metric used to measure similarity
C.
The strategy for merging clusters
D.
The number of clusters to form
Show solution
Solution
Linkage in hierarchical clustering refers to the strategy used to determine the distance between clusters, which affects how clusters are merged.
Correct Answer:
C
— The strategy for merging clusters
Learn More →
Q. In hierarchical clustering, what is agglomerative clustering?
A.
A bottom-up approach to cluster formation
B.
A top-down approach to cluster formation
C.
A method that requires prior knowledge of clusters
D.
A technique that uses K-means as a base
Show solution
Solution
Agglomerative clustering is a bottom-up approach where each data point starts as its own cluster and pairs of clusters are merged as one moves up the hierarchy.
Correct Answer:
A
— A bottom-up approach to cluster formation
Learn More →
Q. In hierarchical clustering, what is the difference between agglomerative and divisive methods?
A.
Agglomerative starts with individual points, divisive starts with one cluster
B.
Agglomerative merges clusters, divisive splits clusters
C.
Both A and B
D.
None of the above
Show solution
Solution
Agglomerative clustering starts with individual points and merges them into clusters, while divisive clustering starts with one cluster and splits it into smaller clusters.
Correct Answer:
C
— Both A and B
Learn More →
Q. In hierarchical clustering, what is the result of a dendrogram?
A.
A visual representation of the clustering process
B.
A table of cluster centroids
C.
A list of data points in each cluster
D.
A summary of the clustering algorithm's performance
Show solution
Solution
A dendrogram visually represents the arrangement of clusters and the distances at which they are merged.
Correct Answer:
A
— A visual representation of the clustering process
Learn More →
Q. In hierarchical clustering, what is the result of the agglomerative approach?
A.
Clusters are formed by splitting larger clusters
B.
Clusters are formed by merging smaller clusters
C.
Clusters are formed randomly
D.
Clusters are formed based on a predefined number
Show solution
Solution
The agglomerative approach in hierarchical clustering starts with individual data points and merges them into larger clusters based on similarity.
Correct Answer:
B
— Clusters are formed by merging smaller clusters
Learn More →
Q. In HTTP/1.1, what is the default behavior regarding persistent connections?
A.
Connections are always persistent
B.
Connections are never persistent
C.
Connections are persistent by default
D.
Connections require a special header
Show solution
Solution
In HTTP/1.1, connections are persistent by default, meaning that multiple requests can be sent over a single connection without reopening it.
Correct Answer:
C
— Connections are persistent by default
Learn More →
Q. In IP addressing, what does the subnet mask 255.255.255.0 indicate?
A.
Class A network
B.
Class B network
C.
Class C network
D.
Class D network
Show solution
Solution
A subnet mask of 255.255.255.0 indicates a Class C network, allowing for 256 IP addresses in total.
Correct Answer:
C
— Class C network
Learn More →
Q. In IP addressing, what does the subnet mask determine?
A.
The maximum number of hosts
B.
The network portion of an IP address
C.
The type of protocol used
D.
The speed of the connection
Show solution
Solution
The subnet mask determines the network portion of an IP address, allowing devices to identify which part of the address refers to the network and which part refers to the host.
Correct Answer:
B
— The network portion of an IP address
Learn More →
Q. In IP addressing, what does the term 'broadcast address' refer to?
A.
An address used to send data to all devices in a subnet
B.
An address assigned to a specific device
C.
An address that cannot be used
D.
An address for routing purposes
Show solution
Solution
The broadcast address is used to send data to all devices within a specific subnet.
Correct Answer:
A
— An address used to send data to all devices in a subnet
Learn More →
Q. In IP addressing, what does the term 'supernetting' refer to?
A.
Combining multiple subnets into a larger network
B.
Dividing a network into smaller subnets
C.
Assigning IP addresses dynamically
D.
None of the above
Show solution
Solution
Supernetting refers to the practice of combining multiple smaller subnets into a larger network to simplify routing.
Correct Answer:
A
— Combining multiple subnets into a larger network
Learn More →
Q. In IPv6, what is the equivalent of a subnet mask?
A.
Prefix length
B.
CIDR notation
C.
Subnet identifier
D.
Network address
Show solution
Solution
In IPv6, the prefix length indicates the number of bits used for the network portion, similar to a subnet mask in IPv4.
Correct Answer:
A
— Prefix length
Learn More →
Q. In K-Means clustering, what does the 'K' represent?
A.
The number of features
B.
The number of clusters
C.
The number of iterations
D.
The number of data points
Show solution
Solution
'K' represents the number of clusters that the algorithm will create from the data.
Correct Answer:
B
— The number of clusters
Learn More →
Q. In K-means clustering, what happens if K is set too high?
A.
Clusters become too large
B.
Overfitting occurs
C.
Underfitting occurs
D.
No effect
Show solution
Solution
If K is set too high, the model may overfit the data, resulting in too many clusters that do not generalize well.
Correct Answer:
B
— Overfitting occurs
Learn More →
Q. In K-means clustering, what happens if the initial centroids are poorly chosen?
A.
The algorithm will always converge to the global minimum
B.
The algorithm may converge to a local minimum
C.
The algorithm will not run
D.
The clusters will be perfectly formed
Show solution
Solution
Poorly chosen initial centroids can lead K-means to converge to a local minimum rather than the global minimum, resulting in suboptimal clustering.
Correct Answer:
B
— The algorithm may converge to a local minimum
Learn More →
Q. In lexical analysis, what is a 'token'?
A.
A sequence of characters in the source code
B.
A data structure representing a keyword or identifier
C.
A type of error in the source code
D.
A part of the syntax tree
Show solution
Solution
A token is a data structure that represents a keyword, identifier, or other meaningful element in the source code.
Correct Answer:
B
— A data structure representing a keyword or identifier
Learn More →
Q. In linear regression, what does multicollinearity refer to?
A.
High correlation between the dependent variable and independent variables
B.
High correlation among independent variables
C.
Low variance in the dependent variable
D.
Independence of residuals
Show solution
Solution
Multicollinearity refers to a situation where independent variables in a regression model are highly correlated with each other.
Correct Answer:
B
— High correlation among independent variables
Learn More →
Q. In linear regression, what does the term 'overfitting' refer to?
A.
The model performs well on training data but poorly on unseen data
B.
The model is too simple to capture the underlying trend
C.
The model has too few features
D.
The model is perfectly accurate
Show solution
Solution
Overfitting occurs when a model learns the noise in the training data instead of the actual underlying pattern, leading to poor performance on unseen data.
Correct Answer:
A
— The model performs well on training data but poorly on unseen data
Learn More →
Q. In linear regression, what does the term 'residual' refer to?
A.
The predicted value of the dependent variable
B.
The difference between the observed and predicted values
C.
The slope of the regression line
D.
The intercept of the regression line
Show solution
Solution
A residual is the difference between the observed value and the predicted value in a regression model.
Correct Answer:
B
— The difference between the observed and predicted values
Learn More →
Q. In linear regression, what does the term 'slope' represent?
A.
The intercept of the regression line
B.
The change in the dependent variable for a one-unit change in the independent variable
C.
The overall error of the model
D.
The strength of the relationship between variables
Show solution
Solution
The slope indicates how much the dependent variable is expected to increase (or decrease) when the independent variable increases by one unit.
Correct Answer:
B
— The change in the dependent variable for a one-unit change in the independent variable
Learn More →
Q. In logistic regression, what is the output of the model?
A.
A continuous value
B.
A probability between 0 and 1
C.
A categorical label
D.
A binary decision tree
Show solution
Solution
Logistic regression outputs a probability between 0 and 1, which can be thresholded to classify data points into binary categories.
Correct Answer:
B
— A probability between 0 and 1
Learn More →
Q. In LR parsing, what is the significance of the 'shift' action?
A.
To reduce the current production.
B.
To move the input pointer to the next token.
C.
To add a new production to the parse tree.
D.
To backtrack to a previous state.
Show solution
Solution
The 'shift' action in LR parsing moves the input pointer to the next token.
Correct Answer:
B
— To move the input pointer to the next token.
Learn More →
Q. In Merge Sort, what is the primary operation performed to combine two sorted arrays?
A.
Merging
B.
Partitioning
C.
Swapping
D.
Sorting
Show solution
Solution
The primary operation in Merge Sort to combine two sorted arrays is called merging.
Correct Answer:
A
— Merging
Learn More →
Q. In Merge Sort, what is the time complexity for merging two sorted arrays?
A.
O(n)
B.
O(n log n)
C.
O(log n)
D.
O(n^2)
Show solution
Solution
Merging two sorted arrays takes O(n) time, where n is the total number of elements in both arrays.
Correct Answer:
A
— O(n)
Learn More →
Q. In natural language processing, how are neural networks commonly used?
A.
Generating random text
B.
Translating languages
C.
Storing data
D.
Creating databases
Show solution
Solution
Neural networks are used in natural language processing for tasks such as language translation, enabling machines to understand and convert text from one language to another.
Correct Answer:
B
— Translating languages
Learn More →
Q. In natural language processing, neural networks are often used for which task?
A.
Image segmentation
B.
Sentiment analysis
C.
Data mining
D.
Network security
Show solution
Solution
Neural networks are effective in sentiment analysis, where they can determine the emotional tone behind a body of text.
Correct Answer:
B
— Sentiment analysis
Learn More →
Q. In Python, which built-in data structure can be used as a stack?
A.
List
B.
Dictionary
C.
Set
D.
Tuple
Show solution
Solution
In Python, a list can be used as a stack by using append() to push and pop() to remove the top element.
Correct Answer:
A
— List
Learn More →
Q. In Python, which built-in data type can be used as a stack?
A.
List
B.
Tuple
C.
Set
D.
Dictionary
Show solution
Solution
In Python, a list can be used as a stack by using append() to push and pop() to remove elements.
Correct Answer:
A
— List
Learn More →
Q. In Python, which data structure can be used to implement a queue?
A.
List
B.
Dictionary
C.
Set
D.
Tuple
Show solution
Solution
A list in Python can be used to implement a queue, although collections.deque is more efficient for this purpose.
Correct Answer:
A
— List
Learn More →
Showing 421 to 450 of 3237 (108 Pages)