Long Questions (20*2=40 Marks)
1. What types of machine learning tasks are speech recognition and movie rating prediction, respectively?
Question 2: In C++, what is the output of the following code snippet?
class A {
public:
virtual void display() {
cout << "A";
}
};
class B : public A {
public:
void display() override {
cout << "B";
}
};
int main() {
A* ptr = new B();
ptr->display();
delete ptr;
return 0;
}3. What is the value of the current I when v = 12V and v1 = 20V?
4. Given the production rules: Rule 1: S -> aSb and S -> e Rule 2: R -> cRd and R -> e How many production rules start with different alphabets in S union R?
5. What is the correct order of precedence for logical operators?
6. In a half adder, which logic gate represents the carry?
7. In the demand paging memory, a page table is held in registers. If it takes 1000 ms to service a page fault and if the memory access time is 10 ms, what is the effective access time for a page fault rate of 0.01?
8. A company purchases a piece of equipment for $10,000. The equipment has a useful life of 5 years with no salvage value at the end of its useful life. Calculate the annual depreciation percentage.
9. What does the C function call fwrite(str, strlen(str) + 1, 1, filePointer) do?
fwrite(str, strlen(str) + 1, 1, filePointer) do?10. What do building codes and bylaws primarily represent?
11. For a 4M-bit chip with 19 external connectors and 8-bit data lines, how many address lines are there?
12. What is the result of 64 mod 23?
13. In a class B amplifier, what happens to voltage gain and impedance when capacitance is added to the emitter terminal?
14. In a tree traversal problem, which node is visited last in postorder when converting from preorder 30, 20, 10, 15, 25, 23, 39, 35, 42?
15. In which region of a positively biased circuit does the Q-point typically lie?
16. What are the three main phases of object-oriented development?
17. What are the key components of a search problem in artificial intelligence?
18. What is the default access specifier for data members in a C++ class?
19. What concept in object-oriented programming allows objects of different classes to be treated as objects of a common base class?
20. Which is not a property of representation of knowledge?
Last updated