Nec Past Questions
Nec Past Questions
SETI- NEC License Examination Mangshir,2080 - BCT
p
2. Q: In which year was the first expert system developed?
a) 1960 b) 1965 c) 1970 d) 1975
.n
A: 1965
om
a) ⊥ b) ∠ c) ⊿ d) ⊤
A: a)
.c
4. Q: What is another name for a simple SR flip-flop?
a) A monostable multivibrator b) A bistable multivibrator c) An astable
multivibrator d) A Schmitt trigger
ey
A: A bistable multivibrator
nd
5. Q: What is an alternative name for pipelining?
a) Assembly line operation b) Parallel processing c) Sequential execution d) Batch
processing
A: Assembly line operation
pa
A: 13
nd
11. Q: What are the input and output types for a 4:16 code converter decoder?
a) Input is binary and output is decimal b) Input is binary and output is
hexadecimal c) Input is hexadecimal and output is binary d) Input is decimal and
output is binary
A: Input is binary and output is hexadecimal
p
a) AND b) OR c) NOT d) XOR
A: OR
.n
13. Q: Given the following code:
om
int *p, u;
float *y,x;
.c
Which of the following is the correct next line of code?
ey
a) p = &u b) p = u c) y = &x d) y = x
nd
A: p = &u
pa
15. Q: In project management, what comes after the project idea in product
design?
nd
A: a)
p
21. Q: What is a key characteristic of a Universal Turing Machine?
a) Programmable b) Fixed function c) Analog d) Quantum
.n
A: Programmable
om
a) Turing test b) IQ test c) A/B test d) Unit test
A: Turing test
.c
23. Q: What component primarily uses BIOS?
a) CPU b) RAM c) Hard Drive d) Operating system
ey
A: Operating system
nd
24. Q: Real-time operation depends on what two factors?
a) Speed and accuracy b) Time and memory c) Input and output d) Hardware and
software
A: a)
pa
A: Hop counts
nd
27. Q: What is the maximum number of nodes a binary tree can have based on
height h?
ta
p
32. Q: What is the function of the application layer in networking?
.n
a) Data transmission b) Routing c) User to system application d) Error checking
A: User to system application
om
33. Q: On which plane does 2D rotation occur?
a) 3D plane b) 2D plane c) XY plane d) XZ plane
A: 2D plane
.c
34. Q: Which of the following statements about functions and templates is
incorrect?
ey
a) Overloaded functions can be redefined b) Templates can be redefined c) Macros
are efficient than templates d) All statements are correct
nd
A: All statements are correct
36. Q: How many 16-bit registers are there in the 8085 microprocessor?
ra
a) 1 b) 2 c) 3 d) 4
A: 2
nd
management
A: Deadlock detection
p
43. Q: What is the term for multiple processes executing concurrently in a
.n
single-user system?
a) Multiprocessing b) Multitasking c) Multithreading d) Time-sharing
A: Multitasking
om
44. Q: What configuration option does the PPP (Point-to-Point Protocol) system
have?
.c
a) Encryption b) Compression c) Authentication d) Multiplexing
A: Authentication
ey
45. Q: How many articles are in the NEC code of conduct?
a) 5 b) 8 c) 10 d) 12
nd
A: 8
dissipation
A: Low power consumption
ra
c) A base class inherited from multiple derived classes d) A class that cannot be
inherited
A: A class inherited from a base class
pe
p
a) fseek() b) ftell() c) fgetpos() d) rewind()
A: ftell()
.n
54. Q: Which SQL command removes content without altering the table structure?
a) DROP b) TRUNCATE c) DELETE d) REMOVE
om
A: DELETE
.c
SQA and SQC b) SQA and SQM c) SQM and SQC d) SQP and SQA
A: SQA (Software Quality Assurance) and SQM (Software Quality Management)
ey
56. Q: In a project network diagram, what is a dummy activity?
a) Critical activity b) Non-critical activity c) Theoretical or logical d)
nd
Resource-intensive activity
A: Theoretical or logical
a) Cannot learn from data b) Cannot handle complex problems c) Cannot explain
results d) Cannot be trained
A: Cannot explain results
ra
1) Q: What types of machine learning tasks are speech recognition and movie rating
prediction, respectively?
a) Classification and regression
b) Regression and classification
c) Clustering and regression
d) Classification and clustering
A: a) Classification and regression
p
a) A b) B c) AB d) no output
.n
class A {
public:
virtual void display() {
om
cout << "A";
}
};
.c
class B : public A {
public:
ey
void display() override {
cout << "B";
nd
}
};
int main() {
pa
return 0;
}
nd
A: b) B
3) Q: What is the value of the current I when v= 12V and v1=20V?
pe
ta
a) 6A b)8A c) 2A d) 4A
A: a)
Explanation:
BCT PAST QUESTION COLLECTION - TP
4) Q: Given the production rules: Rule 1: S -> aSb and S -> e Rule 2: R -> cRd and R -> e
p
How many production rules start with different alphabets in S union R?
a) 6A b)8A c) 2A d) 4A
.n
A: 2
om
a) Negation, AND, OR, Implication, Bidirectional
b) AND, Negation, OR, Implication, Bidirectional
c) OR, AND, NEGATION, Implication, Bidirectional
.c
d) Bidirectional, AND, OR, Implication, Negation
A: a) Negation, AND, OR, Implication, Bidirectional
ey
6) Q: In a half adder, which logic gate represents the carry?
a) OR b)AND c) NANDd) NOT
nd
A: b) AND
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
pa
p
.n
om
.c
ey
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.
nd
a) 9 % b)15% c) 10% d) 20%
A: d) 20%
pa
ra
nd
pe
ta
BCT PAST QUESTION COLLECTION - TP
p
.n
om
.c
ey
nd
pa
ra
9) Q: What does the C function call fwrite(str, strlen(str) + 1, 1, filePointer) do?
nd
a) Design standards
b) Construction materials
c) Environmental regulations
d) Safety procedures
A: a) Design standards
BCT PAST QUESTION COLLECTION - TP
11)Q: 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
A: a) 8
Explanation:
p
Chip organization: 4M-bit
- Total external connections: 19
.n
- Data lines: 8
- A 4M-bit chip has 2^22 bits (since 4M = 4 * 1024 * 1024 = 2^22) - The number of
address lines required to access 2^22 bits is 22. - Out of the 19 external
om
connections, 8 are data lines, which leaves 11 for address lines and other control
signals. - Since we already know that 8 data lines require 3 bits to represent 2^3 = 8
possible values, we can subtract 3 from the 11 remaining connections to get the
.c
number of address lines required. - Therefore, the number of address lines
required = 11 - 3 = 8
ey
12)Q: What is the result of 64 mod 23?
nd
a) 18
b) 20
c) 21
d) 23
pa
A: a) 18
ra
13)Q: 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
nd
14 ) Q: 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? (Problem Provided)
a) 10
b) 15
c) 23
d) 30
A: d) 30
BCT PAST QUESTION COLLECTION - TP
p
.n
om
.c
ey
nd
pa
15) Q: In which region of a positively biased circuit does the Q-point typically lie?
a) Saturation
b) Active
ra
c) Cut-off
d) Center
nd
A: d) Center
pe
17) Q: What are the key components of a search problem in artificial intelligence?
a) Initial state, successor function, goal state, path cost
b) Initial state, successor function, goal path, goal test
c) Initial state, actions, goal state, search space
d) Initial state, goal state, heuristic function, solution
BCT PAST QUESTION COLLECTION - TP
18) Q: What is the default access specifier for data members in a C++ class?
a) Public
b) Protected
c) Private
d) None
A: c) Private
p
19) Q: What concept in object-oriented programming allows objects of different classes to
.n
be treated as objects of a common base class?
a) Encapsulation
b) Inheritance
om
c) Polymorphism
d) Abstraction
.c
A: c) Polymorphism
A: a) Representational Verification
pa
ra
1. Q: What is the formula for no-load voltage gain in a common emitter configuration?
a) Av = βRC/re
b) Av = -βRC/re
ta
c) Av = RC/re
d) Av = -RC/re
A: d) Av = -RC/re
p
a) 2072
b) 2073
.n
c) 2074
d) 2075
A: c) 2074
om
5. Q: How many parallel TCP connections does FTP typically use?
a) 1
.c
b) 2
c) 3
d) 4 ey
A: b) 2
nd
6. Q: Which of the following is based on the principle of conservation of charge?
a) KCL
b) KVL
c) Ohm's Law
pa
d) Coulomb's Law
A: a) KCL
ra
b) 2
c) 3
d) 4
A: a) 1
10. Q: The Waterfall model is the oldest approach for what purpose?
a) Software engineering
b) Software planning
c) Hardware design
d) Project management
A: a) Software engineering
p
11. Q: What is the IEEE standard for wireless networks?
a) 801.11
.n
b) 802.11
c) 803.11
d) 804.11
om
A: b) 802.11
.c
a) Number of inputs connected without degrading voltage
b) Number of standard loads that the output of a logic gate can drive
c) The speed at which a logic gate can operate
ey
d) The power consumption of a logic gate
A: b) Number of standard loads that the output of a logic gate can drive
nd
13. Q: What is the total number of registered professional engineers in NEC?
a) 51
b) 61
pa
c) 71
d) 81
A: b) 61
ra
a) A virtual machine
b) A type of computer monitor
c) Visible area of a web page in a browser window
pe
p
18. Q: What type of value is a 230V rating on a heater?
.n
a) Peak value
b) Average value
c) RMS (Root Mean Square) value
om
d) Instantaneous value
A: c) RMS (Root Mean Square) value
.c
19. Q: Which function is typically used to classify into 3 or more classes?
a) Sigmoid function
b) ReLU function
ey
c) Softmax function
d) Tanh function
nd
A: c) Softmax function
c) Relative numbers
d) Random numbers
A: b) Real numbers
ta
b) Parallelogram
c) Rhombus
d) Trapezoid
A: b) Parallelogram
p
A: c) O(n^2)
.n
25. Q: What is the tenure of the registrar of NEC (Nepal Engineering Council)?
a) 2 years
b) 3 years
om
c) 4 years
d) 5 years
A: c) 4 years
.c
26. Q: What is the objective of NEA?
a) To regulate engineering practices in Nepal
ey
b) To promote development of engineering science and technology in Nepal
c) To provide engineering education in Nepal
nd
d) To certify engineering projects in Nepal
A: b) To promote development of engineering science and technology in Nepal
a) FTP
b) SMTP
c) HTTP
ra
d) TCP
A: d) TCP
nd
b) 2
c) 3
d) 4
A: b) 2
ta
29. Q: How many flip-flops are required for representing flags of 8085?
a) 5
b) 6
c) 8
d) 10
A: a) 5
a) Transitive closure
b) Shortest distance
c) Minimum spanning tree
d) Topological sorting
A: a) Transitive closure
p
d) CC
A: a) Voltage Divider
.n
32. Q: SR flip flop is called:
a) Monostable
om
b) Bistable multivibrator
c) Astable multivibrator
d) Schmitt trigger
.c
A: b) Bistable multivibrator
c) Parallel processing
d) Fault tolerance
nd
A: a) Explanation of results
A: c) They have the same impedance regardless of the direction of current flow
p
c) p is an integer
d) p is a void pointer
.n
A: a) p is a null pointer
om
a) Constructor of derived is called first and then that of base class
b) Constructor of base class is called first and then that of derived class
c) Only the derived class constructor is called
.c
d) Only the base class constructor is called
A: b) Constructor of base class is called first and then that of derived class
ey
40. Q: Pumping Lemma is used to detect:
a) regular language
nd
b) non regular language
c) CFG
d) recursively enumerable language
A: b) non regular language
pa
b) INTR
c) RST 7.5
nd
d) HOLD
A: a) TRAP
pe
d) class
A: a) time
p
b) SMTP server
c) POP3 client
.n
d) IMAP client
A: a) SMTP client
om
46. Q: Connection less protocol:
a) UDP
b) TCP
.c
c) HTTP
d) FTP
A: a) UDP ey
47. Q: Finite state machine has how many tuples?
nd
a) 4
b) 5
c) 6
d) 7
pa
A: c) 6
a) (TM1) u (TM2)
b) TM1 + TM2
nd
c) TM1 * TM2
d) TM1 ^ TM2
A: b) TM1 + TM2
pe
c) 3D plane
d) 4D plane
A: b) 2D plane
A: b) 2^(h+1) - 1
p
a) linear + waterfall
b) linear + RAD
.n
c) iterative + waterfall
d) iterative + RAD
A: a) linear + waterfall
om
53. Q: Optimization algorithms use:
a) heuristics
.c
b) statistics
c) deterministic methods
d) brute force
ey
A: a) heuristics
nd
54. Q: Process of developing modules from sub systems:
a) modular decomposition
b) modular composition
c) functional decomposition
pa
d) structural composition
A: a) modular decomposition
ra
55. Q: Which UML diagram is used to model the flow of control or data in a system?
a) UML Diagram
nd
b) Activity Diagram
c) Sequence Diagram
d) Class Diagram
pe
A: b) Activity Diagram
d) 8
A: c) 7
58. Q: To whom does the registrar submit annual plans and programs of council?
a) Government
b) PM
c) NEC
d) President
A: The question doesn't provide a clear answer.
p
59. Q: Port used for HTML:
a) 80
.n
b) 443
c) 21
d) 25
om
A: a) 80
.c
a) LCM
b) HCF
c) Mean ey
d) Mode
A: a) LCM
nd
pa
1. Q: In an alpha-beta pruning problem, what are the values of alpha and beta?
nd
3. Q: For a network with 10 nodes in a mesh topology, how many duplex connections are
required?
a) 45
b) 90
c) 100
d) 10
A: a) 45 (The formula for full mesh networks is n(n-1)/2, where n is the number of nodes.
So, 10(10-1)/2 = 45)
p
4. Q: What is the result of a "wound and wait" problem?
.n
om
.c
ey
nd
pa
ra
#include <iostream>
using namespace std;
int main() {
try {
throw 20;
}
catch (int e) {
cout << "Exception caught: " << e << endl;
BCT PAST QUESTION COLLECTION - TP
}
return 0;
}
a) Exception caught: 0
b) Exception caught: 20
c) No exception caught
d) Runtime error
A: b) Exception caught: 20
p
6. Q: In a given namespace concept program, what should the next line of code be?
.n
#include <iostream>
using namespace std;
namespace First {
om
void sayHello() {
cout << "Hello from First namespace!" << endl;
}
.c
}
namespace Second {
void sayHello() {
ey
cout << "Hello from Second namespace!" << endl;
}
nd
}
int main() {
First::sayHello();
// Next line to be guessed:
pa
a) Second.sayHello();
b) Second::sayHello();
c) sayHello();
ra
d) ::sayHello();
A: b) Second::sayHello();
nd
7. A 250V bulb passes a current of 0.3A. Calculate the power in the lamp.
a) 75W
pe
b) 50W
c) 25W
d) 90W
A: a) 75W
ta
Explanation: Here, V = 250v and I = 0.3A. P=VI. Which implies that, P=250*0.3=75W.
8. What type of relationship is represented when multiple orders are associated with a
single customer?
A) Many-to-One
B) One-to-Many
C) Many-to-Many
D) One-to-One
BCT PAST QUESTION COLLECTION - TP
Answer: A) Many-to-One
p
.n
om
.c
ey
nd
10. Which of the following strings can be derived from the given CFG?
pa
A: a) aababb
Explanation:
ta
So, S→aSb→aaSbb→aababb
p
.n
om
.c
ey
nd
13. Construct a binary search tree by using the postorder sequence given below.
Postorder: 2, 4, 3, 7, 9, 8, 5.
pa
ra
nd
pe
ta
BCT PAST QUESTION COLLECTION - TP
p
.n
om
.c
ey
nd
pa
ra
nd
pe
ta
BCT PAST QUESTION COLLECTION - TP
Answer: b
Inorder sequence is the ascending order of nodes in Binary search tree. Thus, Inorder
sequence is 2, 3, 4, 5, 7, 8, 9.
14. Determine the resonant frequency for the specifications: R = 10Ω, L = 0.1H, C = 10µF.
p
a) 157
.n
b) 158
om
c) 159
d) 160
.c
Answer: c
Explanation: The frequency at which the resonance occurs is called resonant frequency.
ey
The expression of the resonant frequency is given by fr = 1/(2π√LC). On substituting the
given values we get resonant frequency = 1/(2π√(0.1×10×10-6))=159.2 Hz.
nd
15. For an ideal operational amplifier in a closed-loop configuration with negative
feedback, which of the following statements is true?
pa
D) The current flowing into the inverting input is equal to the current flowing into the
non-inverting input.
nd
A: C) The voltage difference between the inverting and non-inverting inputs is zero.
A) The model performs well on new, unseen data but poorly on training data.
ta
C) The model performs well on training data but poorly on new, unseen data.
Answer: C) The model performs well on training data but poorly on new, unseen data.
BCT PAST QUESTION COLLECTION - TP
17. If a cache contains 16 words, and each word is 32 bits, what is the total cache size in
bytes?
A) 32 bytes
B) 64 bytes
C) 128 bytes
D) 256 bytes
A: B) 64 bytes
Explanation:
p
The total cache size in bits is 16 words × 32 bits/word= 512 bits
.n
16 words×32 bits/word=512 bits. Converting to bytes: 512 bits ÷ 8 bits/byte = 64 bytes
om
512 bits÷8 bits/byte=64 bytes.
18. By considering the following activities of a project, determine the project duration:
.c
ey
nd
Explanation : To determine the project duration, we need to identify the critical path,
which is the longest sequence of dependent activities.
ra
● F: 0 + 6 = 6
● G: 6 + 4 = 10
ta
● H: 6 + 5 = 11
● I: max(10, 11) + 3 = 14
● J: max(10, 14) + 7 = 21
The critical path is F -> H -> I -> J, with a total duration of 6 + 5 + 3 + 7 = 21 days.
a) 8.00%
b) 8.24%
c) 8.37%
d) 8.43%
p
A: b)
.n
Explanation: To find the effective annual interest rate, we use the formula:
om
Effective Annual Rate = (1 + r/n)^n - 1
.c
20. What is correct about NAND Gates?
a) NAND gates are universal gates and can be used to construct all other basic logic gates.
ey
b) NAND gates have the unique property of being able to represent both AND and OR
operations simultaneously.
nd
c) The Boolean algebra underlying NAND operations is more expressive than that of other
logic gates.
pa
d) NAND gates are immune to noise and signal degradation, allowing for more complex
circuit designs.
ra
A: a)
nd
pe
ta
BCT PAST QUESTION COLLECTION - TP
p
b) Multithreading
c) Parallel processing
.n
d) Concurrent execution
A: b) Multithreading
om
2. Q: Which two main processes does Natural Language Processing (NLP) contain?
Options:
a) Natural Language Understanding (NLU) and Natural Language Generation (NLG)
.c
b) Natural Language Interpretation (NLI) and Natural Language Synthesis (NLS)
c) Natural Language Analysis (NLA) and Natural Language Production (NLP)
d) Natural Language Recognition (NLR) and Natural Language Output (NLO)
ey
A: a) Natural Language Understanding (NLU) and Natural Language Generation (NLG)
nd
3. Q: What is a key limitation of Finite State Machines (FSM)?
Options:
a) Cannot handle parallel processes
b) Cannot handle recursive functions
pa
Options:
a) 1
b) 2
pe
c) 3
d) 4
A: b) 2 (one for control and one for data)
ta
5. Q: What is the formula for no-load voltage gain of a BJT in fixed bias configuration?
Options:
a) -β(Rc/re)
b) β(Rc/re)
c) -(Rc/re)
d) (β/Rc)*re
A: a) -β(Rc/re), where β is current gain, Rc is collector resistance, re is emitter resistance
BCT PAST QUESTION COLLECTION - TP
p
.n
om
.c
ey
nd
pa
ra
nd
pe
ta
p
.n
om
.c
ey
nd
pa
ra
nd
pe
Answer: a)
ta
9. Q: If three 2-ohm resistors are connected in a triangle, what is the resistance measured
between any two terminals?
a) 0.67 ohms
b) 1 ohm
c) 1.33 ohms
d) 2 ohms
A: 1.33 ohms
10. Q: What is the time complexity of the quicksort algorithm in the average case?
BCT PAST QUESTION COLLECTION - TP
a) O(n)
b) O(n^2)
c) O(n log n)
d) O(log n)
A: O(n log n)
p
d) To manage peripheral devices
.n
A: a) To provide an illusion of larger main memory than physically available
om
12. Q: How many main types of parsing are there?
a) One: Top-down parsing
b) One: Bottom-up parsing
.c
c) Two: Top-down parsing and Bottom-up parsing
d) Three: Top-down parsing, Bottom-up parsing, and Middle-out parsing
ey
A: c) Two: Top-down parsing and Bottom-up parsing
nd
13. Q: What is the difference between compiler and interpreter?
a) A compiler translates the entire program at once, while an interpreter translates line by
line
pa
b) A compiler translates line by line, while an interpreter translates the entire program at
once
c) Both translate the entire program at once
ra
A: a) A compiler translates the entire program at once, while an interpreter translates line
nd
by line
A: a) One transistor
16. Q: What does Ti <A, v1, v2> typically represent in database systems?
a) A table
b) A transaction
c) An attribute
d) A view
A: b) A transaction
p
17. Q: If the annual worth is 9000, what is the capitalized worth at 10%?
.n
a) 10,000
b) 45,000
c) 90,000
om
d) 100,000
A: c) 90,000
.c
18. Q: What are the types of perspective projections?
a) Parallel projection, Orthographic projection, Isometric projection
ey
b) One-point perspective, Two-point perspective, Three-point perspective
c) Linear perspective, Aerial perspective, Forced perspective
nd
d) Vanishing point, Horizon line, Ground line
b) P represents the wait operation (decrement), and V represents the signal operation
(increment)
nd
A: b) P represents the wait operation (decrement), and V represents the signal operation
(increment)
a) Project Manager
b) Software Quality Assurance (SQA) team
c) Development Team
d) End Users
a) System engineering
b) Software testing
c) Software engineering
d) Project management
A: c) Software engineering
p
c) The speed of a logic gate
d) The number of inputs a logic gate can handle
.n
A: d) The number of inputs a logic gate can handle
om
23. Q: What is admissibility in the context of the A* algorithm?
a) The heuristic overestimates the cost to the goal
b) The heuristic never underestimates the cost to the goal
.c
c) The heuristic never overestimates the cost to the goal
d) The heuristic is always accurate
ey
A: c) The heuristic never overestimates the cost to the goal
nd
24. Q: Who is considered the "Father of AI"?
a) Alan Turing
b) John McCarthy
c) Marvin Minsky
pa
d) Herbert Simon
A: b) John McCarthy
ra
25. Q: What type of connector is typically used in Shielded Twisted Pair (STP) cable?
nd
a) BNC connector
b) RJ11 connector
c) RJ45 connector
pe
d) SC connector
A: c) RJ45 connector
ta
p
c) ]
d) [
.n
A: c) ]
om
29. Q: What type of oscillator is a Wien bridge oscillator?
a) High-frequency oscillator
b) Low-frequency oscillator
.c
c) Medium-frequency oscillator
d) Voltage-controlled oscillator
ey
A: b) Low-frequency oscillator
nd
30. Q: Which of the following is not a decoder: 4:2, 8:3, 16:4, or 5:32?
a) 4:2
b) 8:3
c) 16:4
pa
d) 5:32
a) true
b) while
pe
32. Q: After which step is software typically ready in the spiral model?
a) Usually after the 1st iteration
ta
34. Q: To which pin does the CPU send a signal as a response to the Programmable
Interrupt Controller (PIC)?
a) INTA (Interrupt Acknowledge)
b) IRQ (Interrupt Request)
c) NMI (Non-Maskable Interrupt)
p
d) INTR (Interrupt Request)
.n
A: a) INTA (Interrupt Acknowledge)
om
a) Actor, System, and Goal
b) Actor, System, and Process
c) System, Goal, and Action
.c
d) Actor, Goal, and Process
37. Q: What are some unique features of RISC (Reduced Instruction Set Computer)
architecture?
nd
39. Q: How can a weak entity set be changed into a strong entity set?
BCT PAST QUESTION COLLECTION - TP
p
c) Distributed architecture
d) Multi-tier architecture
.n
A: b) Client-server architecture
om
41. Q: Which is considered the most important step in a Genetic Algorithm? Options: a)
Mutation b) Crossover c) Selection d) Initialization A: c) Selection
.c
42. Q: Which type of cryptography uses two keys? Options: a) Symmetric cryptography b)
Asymmetric cryptography c) Hash-based cryptography d) Elliptic curve cryptography A:
b) Asymmetric cryptography
ey
43. Q: What is used for overloading in programming? Options: a) Only type b) Only
nd
arguments c) Both type and arguments d) Neither type nor arguments A: c) Both type and
arguments
= a d) &p = a A: b) p = &a
46. Q: Excess-3 code is also known as? Options: a) Self-correcting code b) Self-completing
code c) Self-adjusting code d) Self-encrypting code A: b) Self-completing code
pe
48. Q: What is the difference between Stack and Queue data structures? Options: a) Stack
is FIFO, Queue is LIFO b) Stack is LIFO, Queue is FIFO c) Both are FIFO d) Both are LIFO A:
b) Stack follows Last-In-First-Out (LIFO), while Queue follows First-In-First-Out (FIFO)
50. Q: What is the main advantage of using optical fiber for communication? Options: a)
Low cost b) Easy installation c) High bandwidth and low signal loss d) Compatibility with
older systems A: c) High bandwidth and low signal loss
p
A: b) To standardize the communication functions of a telecommunication system
.n
52. Q: What is the difference between static and dynamic binding in programming?
Options:
a) Static binding is slower, dynamic binding is faster
om
b) Static binding uses more memory, dynamic binding uses less
c) Static binding occurs at compile-time, while dynamic binding occurs at run-time
d) Static binding is for object-oriented languages, dynamic binding is for procedural
.c
languages
A: c) Static binding occurs at compile-time, while dynamic binding occurs at run-time
ey
53. Q: What is the purpose of a cache in computer architecture?
Options:
nd
a) To increase the main memory size
b) To reduce the average time to access data from the main memory
c) To store permanent data
d) To improve CPU clock speed
pa
A: b) To reduce the average time to access data from the main memory
54. Q: What is the difference between cohesion and coupling in software engineering?
ra
Options:
a) Cohesion is about modules, coupling is about data
nd
p
57. Q: What is the purpose of a Fourier transform in signal processing?
Options:
.n
a) To amplify signals
b) To filter noise
c) To convert a signal from the time domain to the frequency domain
om
d) To compress data
A: c) To convert a signal from the time domain to the frequency domain
.c
58. Q: What is the difference between deep copy and shallow copy in object-oriented
programming?
Options: ey
a) Deep copy is faster, shallow copy is slower
b) Deep copy uses less memory, shallow copy uses more
nd
c) Deep copy creates a new object and recursively copies nested objects, shallow copy
copies references
d) Deep copy is for primitive types, shallow copy is for objects
A: c) Deep copy creates a new object and recursively copies nested objects, while shallow
pa
Options:
a) To increase network security
nd
60. Q: What is the difference between supervised and unsupervised learning in machine
ta
learning?
Options:
a) Supervised learning is automatic, unsupervised learning requires human intervention
b) Supervised learning uses labeled data, unsupervised learning uses unlabeled data
c) Supervised learning is for classification, unsupervised learning is for regression
d) Supervised learning is slower, unsupervised learning is faster
A: b) Supervised learning uses labeled data for training, while unsupervised learning uses
unlabeled data
BCT PAST QUESTION COLLECTION - TP
Section 2 (20*2=40)
1. Q: Which of the following expressions represents the logical AND operation followed
by the logical OR operation in sequence?
p
.n
om
A: B) Tij(k) = Tij(k-1) OR (Tij(k-1) AND Tij (k-1))
.c
2. Which of the following terms best describes a problem for which there exists an
algorithm that always halts with a correct yes/no answer?
ey
A) Turing Decidable
B) Recursive
nd
C) Turing Undecidable
D) Recursive Enumerable
manageable components
B) One student can enroll in multiple courses, and each course can have multiple
students.
C) Each order can be linked to multiple customers.
D) Each customer can place multiple orders.
5. Given the vector (2,0,3)(2, 0, 3)(2,0,3) and the scaling vector (2,2,4)(2, 2, 4)(2,2,4), what is
the result of scaling the original vector by the scaling vector?
A) (4,0,12)(4, 0, 12)(4,0,12)
B) (4,2,7)(4, 2, 7)(4,2,7)
C) (2,0,7)(2, 0, 7)(2,0,7)
D) (1,0,3)(1, 0, 3)(1,0,3)
6. In a genetic algorithm used to generate class routines, if the fitness function is defined
p
as f(x)= 1/ (1+ routine conflict) what does this fitness function measure?
.n
A) The total number of classes in the schedule
B) The number of conflicts in the schedule
om
C) The total duration of the class schedule
D) The number of students enrolled in the classes
.c
ey
7. In the demand paging memory, a page table is held in registers. If it takes 1000ms to
service a page fault and if the memory access time is 20ms, what is the effective access
time for a page fault rate of 0.01?
nd
a) 30.8 ms b) 40ms c) 22ms d) 29.8ms
A:
pa
ra
nd
pe
ta
A: a)
Explanation: The relation between capacitance, area and distance between the plates is:
C=epsilon*A/D. According to this relation, the capacitance is directly proportional to the
area.
p
9. Convert the decimal number 156 to its octal representation.
a) 254 b)20 c)1234 d)234
.n
A: d)
om
Explanation:
To convert the decimal number 156 to octal, you divide the number by 8 and keep track of
the remainders.
.c
1. 156÷8= 19 with a remainder of 4
ey
2. 19÷8=2 with a remainder of 3
3. 2÷8=0 with a remainder of 2
nd
Reading the remainders from bottom to top, the octal representation of 156 is 234.
#include <iostream>
}
ta
int main() {
printArray(myArray, arraySize);
return 0;
A) Syntax Error
B) Runtime Error
C) Logical Error
D) Linker Error
p
A: B) Runtime Error
.n
11. What will be the output in following C++ program.
om
int main() {
int a = 5;
.c
int *p = &a;
*p = *p * 2;
ey
a = a + 3;
nd
cout << *p << endl;
return 0;
ra
A)
nd
10
13
pe
B)
8
8
ta
C)
10
10
D)
8
10
Answer: A)
BCT PAST QUESTION COLLECTION - TP
p
.n
Answer: B) aabb
om
Explanation:
.c
1. Start with S→AB
2. A→aA→aa
3.
4.
ey
B→bB→bb
bB
5. bbB→bB→bb
nd
So, S→AB→aa bb
pa
A: a) Guided Media
nd
14. Consider the following four processes in the shortest job next scheduling.
Calculate the average turnaround time.
pe
P1 0 8
ta
P2 1 4
P3 2 2
P4 3 6
A) 10
B) 11.5
BCT PAST QUESTION COLLECTION - TP
C) 12
D) 13
A: b) 11.5
Explanation:
P1 completes first from 0 to 8. Then the shortest job is of p3 and continues till 10. Then
P2 runs from 10 to 14 and at last P4 runs from 14 to 20.
p
.n
● Turnaround Time = Completion Time - Arrival Time
● P1: Completion Time = 8, Arrival Time = 0
○ Turnaround Time = 8 - 0 = 8
om
● P2: Completion Time = 14, Arrival Time = 1
○ Turnaround Time = 14 - 1 = 13
● P3: Completion Time = 10, Arrival Time = 2
○ Turnaround Time = 10 - 2 = 8
.c
● P4: Completion Time = 20, Arrival Time = 3
○ Turnaround Time = 20 - 3 = 17
ey
Average Turnaround Time = (8 + 13 + 8 + 17) / 4 = 46 / 4 = 11.5
nd
15. What is the correct order of phases in the Waterfall model of software
development?
pa
→ Deployment → Maintenance
C) Implementation → System Design → Requirement Analysis → Integration and Testing
→ Deployment → Maintenance
nd
16. Which of the following characteristics is true for an ideal operational amplifier?
ta
A) The ideal op-amp has a finite open-loop gain, resulting in a non-zero voltage difference
between the inverting and non-inverting inputs.
B) The ideal op-amp has infinite input impedance and zero output impedance.
C) The ideal op-amp can only be used in linear configurations and cannot be used in
switching applications.
D) The ideal op-amp has a non-zero input bias current, which affects the accuracy of the
amplifier.
BCT PAST QUESTION COLLECTION - TP
A: B) The ideal op-amp has infinite input impedance and zero output impedance.
p
18. In a full binary tree if the number of internal nodes is I, then the number of leaves L
.n
are?
a) L = 2*I
om
b) L = I + 1
c) L = I – 1
.c
d) L = 2*I – 1
Answer: b)
ey
nd
Explanation: Number of Leaf nodes in full binary tree is equal to 1 + Number of Internal
Nodes i.e L = I + 1
the page replacement algorithm is FIFO, the number of page frames is increased to 4, then
the number of page transfers ____________
ra
a) decreases
b) increases
nd
A: b) increases
ta
20. You plan to invest $1,000 in a savings account that offers an annual interest rate of 5%,
compounded quarterly. You want to know the future value of this investment after 3
years.
A: b)
p
.n
om
.c
ey
nd
pa
ra
nd
pe
ta