computer-nec-license
  • NEC-Computer
  • 1. Concept of Basic Electrical and Electronics Engineering
    • 1.1 Basic Concepts
    • 1.2 Network Theorems
    • 1.3 Alternating Current Fundamentals
    • 1.4 Semiconductor Device
    • 1.5 Signal Generator
    • 1.6 Amplifiers
    • MCQs
      • MCQs On Basic Electrical
        • set-1
        • set-2
      • MCQs On Basic Electronics
        • set-1
        • set-2
  • 2. Digital Logic and Microprocessor
    • 2.1 Digital Logic
    • 2.2 Combinational & Arithmetic Circuit
    • 2.3 Sequential Logic Circuits
    • 2.4 Microprocessor
    • 2.5 Microprocessor System
    • 2.6 Interrupt Operations
    • MCQs
      • MCQs On Digital Logic
        • set-1
        • set-2
        • set-3
        • set-4
        • set-5
        • set-6
        • set-7
        • set-8
        • set-9
        • set-10
        • set-11
        • set-12
      • MCQs On Microprocessor
        • set-1
        • set-2
        • set-3
        • set-4
        • set-5
        • set-6
        • set-7
        • set-8
        • set-9
  • 3. Programming Language and Its Applications
    • 3.1 Introduction to C Programming
    • 3.2 Pointers, Structures, and Data Files
    • 3.3 C++ Language Constructs with Objects and Classes
    • 3.4 Features of Object-Oriented Programming
    • 3.5 Pure Virtual Functions and File Handling
    • 3.6 Generic Programming and Exception Handling
    • MCQs
      • set-1
      • set-2
      • set-3
      • set-4
      • set-5
  • 4. Computer Organization and Embedded System
    • 4.1 Control and CPU
    • 4.2 Computer Arithmetic and Memory System
    • 4.3 I/O Organization and Multiprocessor
    • 4.4 Embedded System Design
    • 4.5 Real-Time Operating and Control Systems
    • 4.6 Hardware Description Language (VHDL) and IC Technology
    • MCQs
      • set-1
      • set-2
      • set-3
      • set-4
      • set-5
      • set-6
      • set-7
      • set-8
      • set-9
      • set-10
      • set-11
  • 5. Concept of Computer Network and Network Security System
    • 5.1 Introduction to Computer Networks
    • 5.2 Data Link Layer
    • 5.3 Network Layer
    • 5.4 Transport Layer
    • 5.5 Application Layer
    • 5.6 Network Security
    • MCQs
      • Basic Networking
        • set-1
        • set-2
      • Advanced Networking
        • set-1
        • set-2
        • set-3
        • set-4
        • set-5
        • set-6
  • 6. Theory of Computation and Computer Graphics
    • 6.1 Introduction to Finite Automata
    • 6.2 Introduction to Context-Free Languages (CFL)
    • 6.3 Turing Machines (TM)
    • 6.4 Introduction to Computer Graphics
    • 6.5 Two-Dimensional Transformation
    • 6.6 Three-Dimensional Transformation
    • MCQs
      • MCQs on Theory of Computation
        • set-1
        • set-2
        • set-3
      • MCQs On Computer Graphics
        • set-1
        • set-2
        • set-3
        • set-4
        • set-5
        • set-6
  • 7. Data Structures and Algorithm, Database System and Operating System
    • 7.1 Introduction to Data Structures, Lists, Linked Lists, and Trees
    • 7.2 Sorting, Searching, Hashing and Graphs
    • 7.3 Introduction to Data Models, Normalization, and SQL
    • 7.4 Transaction Processing, Concurrency Control, and Crash Recovery
    • 7.5 Introduction to Operating System and Process Management
    • 7.6 Memory Management, File Systems, and System Administration
    • MCQs
      • MCQs ON DSA
        • set-1
        • set-2
        • set-3
        • set-4
        • set-5
        • set-6
      • MCQs On DBMS
        • set-1
        • set-2
      • MCQs On Operating System
        • set-1
        • set-2
        • set-3
        • set-4
        • set-5
        • set-6
        • set-7
        • set-8
        • set-9
        • set-10
        • set-11
        • set-12
  • 8. Software Engineering and Object-Oriented Analysis & Design
    • 8.1 Software Process and Requirements
    • 8.2 Software Design
    • 8.3 Software Testing, Cost Estimation, Quality Management, and Configuration Management
    • 8.4 Object-Oriented Fundamentals and Analysis
    • 8.5 Object-Oriented Design
    • 8.6 Object-Oriented Design Implementation
    • MCQs
      • set-1
      • set-2
      • set-3
      • set-4
      • set-5
      • set-6
      • set-7
      • set-8
      • set-9
  • 9. Artificial Intelligence and Neural Networks
    • 9.1 Introduction to AI and Intelligent Agents
    • 9.2 Problem Solving and Searching Techniques
    • 9.3 Knowledge Representation
    • 9.4 Expert System and Natural Language Processing
    • 9.5 Machine Learning
    • 9.6 Neural Networks
    • MCQs
      • set-1
      • set-2
      • set-3
      • set-4
      • set-5
      • set-6
      • set-7
      • set-8
      • set-9
  • 10. Project Planning, Design and Implementation
    • 10.1 Engineering Drawings and Its Concepts
    • 10.2 Engineering Economics
    • 10.3 Project Planning and Scheduling
    • 10.4 Project Management
    • 10.5 Engineering Professional Practice
    • 10.6 Engineering Regulatory Body
    • MCQs
      • MCQs On Engineering Drawing
        • set-1
        • set-2
      • MCQs On Engineering Economics
      • MCQs On Project Planning & Scheduling
      • MCQs On Project Mangement
      • MCQs On Engineering Professional Practice
      • MCQs On Engineering Regulatory Body
  • Questions Sets
    • Set 1 (Chaitra, 2080)
      • Short Questions (60*1=60 Marks)
      • Long Questions (20*2=40 Marks)
    • Set 2 (Aasadh, 2081)
      • Short Questions (60*1=60 Marks)
      • Long Questions (20*2=40 Marks)
    • Set 3 (Asojh, 2080)
      • Short Questions (60*1=60 Marks)
      • Long Questions (20*2=40 Marks)
    • Model Set - Computer Engineering By NEC
      • Short Questions (60*1=60 Marks)
      • Long Questions (20*2=40 Marks)
    • Model Set - Software Engineering By NEC
      • Short Questions (60*1=60 Marks)
      • Long Questions (20*2=40 Marks)
  • Tips & Tricks
Powered by GitBook
On this page
  • 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?
  • 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?
  • 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?
  1. Questions Sets
  2. Set 3 (Asojh, 2080)

Long Questions (20*2=40 Marks)

1. What types of machine learning tasks are speech recognition and movie rating prediction, respectively?

  1. Classification and regression

  2. Regression and classification

  3. Clustering and regression

  4. Classification and clustering

Show me the answer

Answer:

  1. Classification and regression

Explanation: Speech recognition is a classification task, where the model classifies audio signals into specific words or phrases. Movie rating prediction, on the other hand, is a regression task because it involves predicting a continuous value (the rating) based on input features.


Question 2: In C++, what is the output of the following code snippet?

  1. A

  2. B

  3. AB

  4. no output

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;
}
Show me the answer

Answer: 2. B

Explanation: The pointer ptr is of type A* but points to an object of type B. Since display() is a virtual function, the overridden version in class B is called, and the output is "B".

3. What is the value of the current I when v = 12V and v1 = 20V?

  1. 6A

  2. 8A

  3. 2A

  4. 4A

Show me the answer

Answer:

  1. 6A

Explanation: The current through the 10 ohm resistor is given by v110=2A\frac{v1}{10} = 2A10v1​=2A.

Applying Kirchhoff's Current Law (KCL) at node 1: i5=i10+i2i5 = i10 + i2i5=i10+i2 So, i2=i5−2i2 = i5 - 2i2=i5−2.

The voltage drop across the 2 ohm resistor is 2×i22 \times i22×i2.

Given V1=20VV1 = 20VV1=20V, we have: v2=20−(2×i2)v2 = 20 - (2 \times i2)v2=20−(2×i2) (since v2=vv2 = vv2=v as in parallel).

From the equation v=12Vv = 12Vv=12V, we get: 12=20−(2×i2)12 = 20 - (2 \times i2)12=20−(2×i2), which simplifies to: i2=4Ai2 = 4Ai2=4A.

Therefore, the total current I=i5=i2+2=6AI = i5 = i2 + 2 = 6AI=i5=i2+2=6A.

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?

  1. 6A

  2. 8A

  3. 2A

  4. 4A

Show me the answer

Answer: 3. 2A

Explanation: The production rules for S are:

  • S -> aSb

  • S -> e

The production rules for R are:

  • R -> cRd

  • R -> e

In total, there are two different starting alphabets: 'a' for S and 'c' for R. So, there are 2 production rules that start with different alphabets.

5. What is the correct order of precedence for logical operators?

  1. Negation, AND, OR, Implication, Bidirectional

  2. AND, Negation, OR, Implication, Bidirectional

  3. OR, AND, Negation, Implication, Bidirectional

  4. Bidirectional, AND, OR, Implication, Negation

Show me the answer

Answer:

  1. Negation, AND, OR, Implication, Bidirectional

Explanation: The correct order of precedence for logical operators is:

  1. Negation (highest precedence)

  2. AND

  3. OR

  4. Implication

  5. Bidirectional (lowest precedence).


6. In a half adder, which logic gate represents the carry?

  1. OR

  2. AND

  3. NAND

  4. NOT

Show me the answer

Answer: 2. AND

Explanation: In a half adder, the carry output is generated by an AND gate, which computes the carry bit from the two input bits.


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?

  1. 12.9 ms

  2. 20.9 ms

  3. 19.9 ms

  4. 0.01 ms

Show me the answer

Answer: 3. 19.9 ms

Explanation: The formula for effective access time is: EAT=(1−page fault rate)×memory access time+(page fault rate)×(page fault service time+memory access time)\text{EAT} = (1 - \text{page fault rate}) \times \text{memory access time} + (\text{page fault rate}) \times (\text{page fault service time} + \text{memory access time})EAT=(1−page fault rate)×memory access time+(page fault rate)×(page fault service time+memory access time)

Substituting the given values: EAT=(1−0.01)×10+0.01×(1000+10)=9.9+10.1=19.9 ms\text{EAT} = (1 - 0.01) \times 10 + 0.01 \times (1000 + 10) = 9.9 + 10.1 = 19.9 \, \text{ms}EAT=(1−0.01)×10+0.01×(1000+10)=9.9+10.1=19.9ms.

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.

  1. 9%

  2. 15%

  3. 10%

  4. 20%

Show me the answer

Answer: 4. 20%

Explanation: The annual depreciation is calculated using the straight-line method, which is: Annual Depreciation=Cost of Equipment−Salvage ValueUseful Life\text{Annual Depreciation} = \frac{\text{Cost of Equipment} - \text{Salvage Value}}{\text{Useful Life}}Annual Depreciation=Useful LifeCost of Equipment−Salvage Value​

Given the cost of the equipment is $10,000, the salvage value is $0, and the useful life is 5 years, the annual depreciation is: Annual Depreciation=10,0005=2,000\text{Annual Depreciation} = \frac{10,000}{5} = 2,000Annual Depreciation=510,000​=2,000

The depreciation percentage is calculated as: Depreciation Percentage=Annual DepreciationCost of Equipment×100\text{Depreciation Percentage} = \frac{\text{Annual Depreciation}}{\text{Cost of Equipment}} \times 100Depreciation Percentage=Cost of EquipmentAnnual Depreciation​×100 Depreciation Percentage=2,00010,000×100=20%\text{Depreciation Percentage} = \frac{2,000}{10,000} \times 100 = 20\%Depreciation Percentage=10,0002,000​×100=20%.

9. What does the C function call fwrite(str, strlen(str) + 1, 1, filePointer) do?

a) Prints all string characters including the null character b) Prints all string characters except the null character c) Writes the length of the string to the file d) Writes the string length plus one to the file

Show me the answer

Answer: a) Prints all string characters including the null character

Explanation: The fwrite function in C writes the specified number of bytes from str to the file. By using strlen(str) + 1, the null terminator \0 is included, so it writes the entire string, including the null character.

10. What do building codes and bylaws primarily represent?

a) Design standards b) Construction materials c) Environmental regulations d) Safety procedures

Show me the answer

Answer: a) Design standards

Explanation: Building codes and bylaws primarily define design standards, specifying how buildings and structures should be constructed to ensure safety, accessibility, and environmental compatibility.

11. For a 4M-bit chip with 19 external connectors and 8-bit data lines, how many address lines are there?

a) 8 b) 16 c) 19 d) 20

Show me the answer

Answer: a) 8

Explanation: Chip organization: 4M-bit

  • Total external connections: 19

  • Data lines: 8

  • A 4M-bit chip has 2222^{22}222 bits (since 4M = 4 * 1024 * 1024 = 2222^{22}222). The number of address lines required to access 2222^{22}222 bits is 22.

  • Out of the 19 external connections, 8 are data lines, leaving 11 for address lines and control signals.

  • Since 8 data lines require 3 bits to represent 232^323 = 8 possible values, subtracting 3 from the 11 remaining connections gives 8 address lines.

12. What is the result of 64 mod 23?

a) 18 b) 20 c) 21 d) 23

Show me the answer

Answer: a) 18

Explanation: The modulus operation returns the remainder of a division. 64mod  23=64−(23×2)=64−46=1864 \mod 23 = 64 - (23 \times 2) = 64 - 46 = 1864mod23=64−(23×2)=64−46=18.

13. In a class B amplifier, what happens to voltage gain and impedance when capacitance is added to the emitter terminal?

a) Both voltage gain and impedance increase b) Voltage gain increases, impedance decreases c) Voltage gain decreases, impedance increases d) Both voltage gain and impedance decrease

Show me the answer

Answer: a) Both voltage gain and impedance increase

Explanation: When capacitance is added to the emitter terminal of a class B amplifier, it reduces the bypass effect, which can increase both the voltage gain and the impedance.

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?

a) 10 b) 15 c) 23 d) 30

Show me the answer

Answer: d) 30

Explanation: In postorder traversal, nodes are visited in the order: left subtree, right subtree, and then the root.

15. In which region of a positively biased circuit does the Q-point typically lie?

  1. Saturation

  2. Active

  3. Cut-off

  4. Center

Show me the answer

Answer: 4. Center

Explanation: In a positively biased circuit, the Q-point typically lies at the center of the load line to allow maximum signal swing without distortion.

16. What are the three main phases of object-oriented development?

  1. Analysis, Design, Testing

  2. Object-oriented analysis, object-oriented design, object-oriented programming

  3. Requirement gathering, Implementation, Deployment

  4. Planning, Execution, Maintenance

Show me the answer

Answer: 2. Object-oriented analysis, object-oriented design, object-oriented programming

Explanation: The three main phases of object-oriented development are:

  • Object-oriented analysis: Identifying the objects and their relationships.

  • Object-oriented design: Defining the object model and design structure.

  • Object-oriented programming: Implementing the design using object-oriented languages.

17. What are the key components of a search problem in artificial intelligence?

  1. Initial state, successor function, goal state, path cost

  2. Initial state, successor function, goal path, goal test

  3. Initial state, actions, goal state, search space

  4. Initial state, goal state, heuristic function, solution

Show me the answer

Answer: 2. Initial state, successor function, goal path, goal test

Explanation: A search problem in AI typically consists of:

  • Initial state: The starting point of the search.

  • Successor function: A function that generates the possible next states.

  • Goal path: The path from the initial state to the goal.

  • Goal test: A method to check if the current state is the goal state.

18. What is the default access specifier for data members in a C++ class?

  1. Public

  2. Protected

  3. Private

  4. None

Show me the answer

Answer: 3. Private

Explanation: In C++, if no access specifier is provided, the default access specifier for data members of a class is private.

19. What concept in object-oriented programming allows objects of different classes to be treated as objects of a common base class?

  1. Encapsulation

  2. Inheritance

  3. Polymorphism

  4. Abstraction

Show me the answer

Answer: 3. Polymorphism

Explanation: Polymorphism allows objects of different classes to be treated as objects of a common base class, enabling dynamic method invocation.

20. Which is not a property of representation of knowledge?

  1. Representational Verification

  2. Completeness

  3. Consistency

  4. Efficiency

Show me the answer

Answer:

  1. Representational Verification

Explanation: Properties of knowledge representation include completeness, consistency, and efficiency, but "representational verification" is not a standard property.

PreviousShort Questions (60*1=60 Marks)NextModel Set - Computer Engineering By NEC

Last updated 5 months ago

Given the preorder traversal 30, 20, 10, 15, 25, 23, 39, 35, 42, the root node in this case is 30. In postorder, we will visit all its descendants first, and the last node visited will be the root. Hence, the last node visited in postorder traversal is 30.