Home / MCQ Bank / Computer
Computer Statistical Analysis With R (Distributions, Graphics)

Which function is used to simulate discrete uniform random variables?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • Sample

Related Computer Questions

In data modeling, what is the term for the process of transforming data into a format suitable for storage and retrieval? What will be the output of the following C code? #include <stdio.h> #include <math.h> int main() { int i = 90; printf("%f\n", sin(i)); return 0; } 'W'h'i'c'h' 'o'f' 't'h'e' 'f'o'l'l'o'w'i'n'g' 'a'd'd's' 'd'e'f'a'u'l't' 's't'y'l'e's' 'f'o'r' 'd'r'o'p'd'o'w'n' 'm'e'n'u' 'c'o'n't'a'i'n'e'r'?' What will be the output of the following C++ code? #include <iostream> #include <functional> #include <vector> #include <algorithm> #include <string> using namespace std; int main () { vector <string*> numbers; numbers.push_back ( new string ("one") ); numbers.push_back ( new string ("two") ); numbers.push_back ( new string ("three") ); vector <int> lengths ( numbers.size() ); transform (numbers.begin(), numbers.end(), lengths.begin(), mem_fun(&string :: length)); for (int i = 0; i < 3; i++) { cout << lengths[i]; } return 0; } You are given a knapsack that can carry a maximum weight of 60. There are 4 items with weights {20, 30, 40, 70} and values {70, 80, 90, 200}. What is the maximum value of the items you can carry using the knapsack?