[ RUST ] Which of the following is a unique feature of Rust?
Anonymous Poll
20%
Dynamic Typing
36%
Garbage Collection
30%
Memory Safety
14%
Multiple Inheritance
❤1
Coding Quiz Zone
[ RUST ] Which of the following is a unique feature of Rust?
Answer : Memory Safety [ C ]
Among the options, Rust guarantees memory safety by enforcing strict rules on how memory is accessed and manipulated. This prevents common memory-related errors such as null pointer dereferences, use-after-free, and buffer overflows.
Join @CodingQuizZone for more quizes and contents related to coding!
Among the options, Rust guarantees memory safety by enforcing strict rules on how memory is accessed and manipulated. This prevents common memory-related errors such as null pointer dereferences, use-after-free, and buffer overflows.
Join @CodingQuizZone for more quizes and contents related to coding!
🙊2
@CodingQuizZone
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2
Please open Telegram to view this post
VIEW IN TELEGRAM
What does the fetch() function return?
Anonymous Quiz
30%
A JSON object
19%
A Promise
34%
A Response object
17%
A Callback
Which of the following is used to define a constant in PHP?
Anonymous Quiz
13%
let
26%
define()
35%
constant()
26%
const()
DES belongs to which category of cryptographic algorithms?
Anonymous Quiz
33%
Asymmetric key algorithm
39%
Symmetric key algorithm
18%
Key exchange protocol
10%
Hashing algorithm
What will np.zeros((2,3)) create?
Anonymous Quiz
13%
1D array of 6 zeros
24%
3x2 array of zeros
51%
2x3 array of zeros
12%
Error
Which part of the OS interacts directly with the hardware?
Anonymous Quiz
10%
Shell
20%
Device drivers
20%
Application software
51%
Kernel
What is the default value of an uninitialized instance variable of type boolean?
Anonymous Quiz
27%
true
31%
false
19%
0
23%
null
❤1
Which data type matches the storage size of enum?
Anonymous Quiz
25%
int variable
27%
float variable
25%
string variable
23%
float & string variable
In contrast to RTP's default behavior, what can RTP use instead?
Anonymous Quiz
24%
privileged UDP ports
42%
stream control transmission protocol
27%
datagram congestion control protocol
7%
none of the above
What does Rust primarily aim to provide compared to languages like C/C++?
Anonymous Quiz
14%
Garbage collection and slower runtime
20%
Only functional programming
48%
Memory safety without garbage collection
18%
Dynamic typing
The declaration of the structure is also called as?
Anonymous Quiz
27%
structure creator
19%
structure signifier
39%
structure specifier
15%
structure creator & signifier
👍1
Which data structure works on the principle FIFO (First In, First Out)?
Anonymous Quiz
34%
Stack
55%
Queue
8%
Tree
2%
Graph
❤2
In reality, IPSec focuses on network layer security. What's often overlooked is that it could've theoretically been designed to secure any of the following?
Anonymous Quiz
14%
Application Layer Protocol Stacks
53%
Network Layer Routing Information Bases
29%
Transport Layer Connection-Oriented Services
4%
Session Layer Multiplexer Protocols
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3👏2🥰1
CHALLENGE
function createCounter() {
let count = 0;
return {
increment: () => ++count,
decrement: () => --count,
getValue: () => count
};
}
const counter1 = createCounter();
const counter2 = createCounter();
counter1.increment();
counter1.increment();
counter2.increment();
console.log(counter1.getValue() + counter2.getValue());