_______ is a large printed Circuit Board having many chips, ports, controllers and other electronic components mounted on it.
a.
Integrated Circuit
b.
Mother Board
Correct Answer
c.
Chipset
d.
North Bridge.
Step-by-Step AI Explanation
Verified Method
The Motherboard is the main circuit board in a computer that holds and connects the CPU, memory, ports, and other essential electronic components.
Q2mcq1 mark
Complementary law states that
a.
$X \cdot X = X$
b.
$X \cdot 0 = 0$
c.
$X + 1 = 1$
d.
$X \cdot \bar{X} = 0$
Correct Answer
Step-by-Step AI Explanation
Verified Method
The complement law in Boolean algebra states that $X \cdot \bar{X} = 0$ and $X + \bar{X} = 1$. The other options represent the idempotent law ($X \cdot X = X$), null law ($X \cdot 0 = 0$), and annihilation/identity law ($X + 1 = 1$).
Q3mcq1 mark
Given the Logic Diagram, the output is
a.
1
b.
0
Correct Answer
c.
1, 0
d.
1, 1
Step-by-Step AI Explanation
Verified Method
The diagram shows an AND gate followed by a NOT gate (a NAND gate). The inputs are 1 and 1. The output of the AND gate is $1 \cdot 1 = 1$. The NOT gate inverts this, resulting in an output of 0.
Q4mcq1 mark
Assertion (A) : A stack is a LIFO data structure. Reason (R): An ordered collection of items where insertion and deletion take place at same end.
a.
Both (A) and (R) are false
b.
(A) is true, and (R) is false
c.
Both (A) and (R) are true
Correct Answer
d.
(A) is false and (R) is true.
Step-by-Step AI Explanation
Verified Method
A stack is indeed a LIFO (Last-In-First-Out) data structure, and by definition, it is an ordered collection where all insertion and deletion operations happen at the same end, called the 'top'.
Q5mcq1 mark
Examine the following C++ program segment and identify the error.
Class result
{
private:int a;
}
void main ( )
{
result x;
}
a.
Error due to incorrect object declaration.
b.
Error due to semicolon missing after class definition.
Correct Answer
c.
Error due to missing public access specifier.
d.
Error due to invalid initialization of object.
Step-by-Step AI Explanation
Verified Method
In C++, a class definition must end with a semicolon after the closing brace. The provided code segment lacks this semicolon after the 'class result' block, which causes a syntax error.
Q6mcq1 mark
Which of the following statements are correct with respect to function overloading?
I. Functions names are same.
II. Number of arguments are same.
III. Number of arguments are different.
IV. Data types of arguments are different.
a.
I, III and IV are correct.
Correct Answer
b.
I, II and III are correct.
c.
I, II and IV are correct.
d.
II and IV are correct.
Step-by-Step AI Explanation
Verified Method
Function overloading requires the same function name, but the signatures must differ in either the number of arguments (III) or the data types of the arguments (IV). I is correct, and II is incorrect because if the number of arguments were the same, the data types must differ.
Q7mcq1 mark
The symbol used with destructor is
a.
#
b.
::
c.
~
Correct Answer
d.
*
Step-by-Step AI Explanation
Verified Method
In C++, a destructor function is defined using the tilde symbol (~) followed by the class name.
Q8mcq1 mark
If a class is derived from more than one base class, then it is called as
a.
Multiple inheritance
Correct Answer
b.
Single inheritance
c.
Hierarchical inheritance
d.
Multilevel inheritance.
Step-by-Step AI Explanation
Verified Method
Multiple inheritance is the correct choice because it describes a scenario where a class inherits features from more than one parent or base class. Single inheritance involves one base class; multilevel involves a chain of inheritance; hierarchical involves multiple classes inheriting from one single base class.
Q9mcq1 mark
Given int *ptr, X = 50; which is the correct way to assign address of X variable to the pointer?
a.
ptr = X;
b.
ptr = *X;
c.
ptr = &X;
Correct Answer
d.
X = ptr;
Step-by-Step AI Explanation
Verified Method
The address-of operator '&' is used to retrieve the memory address of a variable. Therefore, ptr = &X correctly assigns the address of variable X to the pointer variable ptr. The other options are syntactically incorrect or perform improper type assignments.
Q10mcq1 mark
Collection of data elements organised in terms of rows and columns is called as ________.
a.
Attribute
b.
Table
Correct Answer
c.
Domain
d.
Field
Step-by-Step AI Explanation
Verified Method
A table (also known as a relation) is defined as a collection of data elements organized into rows (tuples) and columns (attributes). Attributes and fields refer to individual columns, and a domain is the set of permissible values for an attribute.
🎉 10 Free Sample Solutions Completed
Unlock All 47 Questions & Solutions
Sign up free in seconds to unlock step-by-step AI answers for the remaining 37 questions.
Define class SI with the following members and conditions.
i) Data members: principle, rate, time
ii) Member functions: getdata ( ) and output ( )
iii) Define member functions outside the class to input and output principle, rate, time.
Correct Answer & Step-by-Step Solution Locked
Sign in free to reveal the correct answer and AI explanation for this question.
Write the SQL Query for the following question based on given employee table.
Table Name : Employee
I) Develop the table with above fields.
II) Display the structure of the table.
III) Find the total number of employees.
IV) Find the maximum salary.
V) Display all employee record with age >30.
Correct Answer & Step-by-Step Solution Locked
Sign in free to reveal the correct answer and AI explanation for this question.
Write the SQL Query for the following question based on given employee table. Table Name : Employee
Empid Name Age Salary
20001 PPP 40 60,000
20002 QQQ 35 55,000
20003 RRR 32 50,000
20004 SSS 29 45,000
I) Develop the table with above fields.
II) Display the structure of the table.
III) Find the total number of employees.
IV) Find the maximum salary.
V) Display all employee record with age >30.
Correct Answer & Step-by-Step Solution Locked
Sign in free to reveal the correct answer and AI explanation for this question.