Question
In a biased coin the probability of getting a head is
0.6, if we toss a coin 10times, what is the probability of getting exactly three heads?Solution
Probability of getting a head =0.6 =6/10=3/5 Probability of getting not head=1-3/5 =2/5 Direct shortcut- n Cr(P)r(1-P) n-r Then now Probability= =10C3 (3/5)3(2/5)7 = [(10×9×8)/3×2] × (33×27)/510 = (34×210)/59
Which memory allocation strategy is used for global variables and static variables, where memory is allocated once at compile time and remains throughou...
The primary goal of code optimization is to:
What is the primary role of a "Linker"?
A "parser" is primarily responsible for which phase of compilation?
What is the primary output of the parsing phase in a compiler?
What will be the output of the following C code?
#include
int main() {
int i;
for (i = 0; i < 5; i++) {
<...Which phase of the compiler checks the type consistency of the program?
Which optimization is performed after intermediate code generation?
What is the purpose of Normalization in database design?
Which data structure is commonly used in implementing a recursive descent parser?