Question 1
In an experiment, one red dice and one black dice(both are fair) are rolled. What is the probability that,
Question 3
int calc(int i)
{
while(++i > 10); // statement 0
i++;
return i;
}
int main() {
int i = 2;
printf(\"%d\", calc(i));
return 0;
}
Question 4
Question 5
Question 6
4, 3, 2, 1, 2, 1, 5, 6, 1, 2, 7, 6, 3, 1, 4, 2Which of the following options, gives the correct number of page faults related to LRU page replacement algorithms with 04 page frame and if there is an increment in page frame i.e. 05 page frame then what will be the correct number of page faults, assuming all frames are initially empty?
Question 8
Question 9
#include<iostream>
using namespace std;
int main()
{
int a[] = {10,20,30,40,50};
cout<<(*(&a+1)-a);
return 0;
}
There are 10 questions to complete.