QNA
QNA
Ans: A thread is the smallest unit of execution within a process, sharing the same
memory space and resources with other threads in the same process, enabling
efficient communication but risking data conflicts. A process, on the other hand,
is an independent unit with its own memory and resources, providing isolation and
stability but requiring more overhead for inter-process communication.
Process is the program under execution whereas the thread is part of process.
Process heavy weight task . Thread light weight task.
System call involved in process. There is no system call.
Independent unit with its own memory. Sharing the same memory space and
resources with other thread in the same process.
2. What web technologies are you excited about, and why do you think they’ll
win/survive in the next decade?
Ans: I am excited about the integration of Natural Language Processing (NLP) and
machine learning into web technologies. They enhance user experiences with smarter
chatbots, personalized content, and better search results. As AI continues to
evolve, these technologies will remain essential for creating adaptive, efficient,
and user-focused applications. Their ability to learn and improve ensures their
long-term relevance in the tech landscape.
Ans: Yes, I’m familiar with Object-Oriented Programming (OOP). It organizes code
into reusable classes and objects, making it easier to manage, maintain, and scale.
Concepts like inheritance and encapsulation reduce duplication and enhance
security, making OOP essential for building efficient and reliable software.
let counter = 0;
for(let i = 0; i < str.length; i++){
if(counter < 0) {
console.log("Not Balanced");
break;
}
if (str[i] == "(") counter++;
else if (str[i] == ")") counter--;
}
if (!counter) console.log("Balanced");
else console.log("Not Balanced");
5. Describe the process you follow for a programming task, from requirements to
delivery.
Ans: I start with understanding the problem and requirements, then move to
planning and designing a solution. Next, I implement the code, test it for
correctness, and deliver the final product with proper documentation.
6.What are some ways to make websites faster? Name as many different techniques as
you can.
Ans:
Optimize images and other media files to reduce their size.
Minimize HTTP requests by combining CSS and JavaScript files.
Implement browser caching to store static files locally, reducing load times.
Ans:
10. What are firewalls? What is the use of a default gateway? What is a subnet
mask?
Ans: A firewall is a network security device that monitors and controls incoming
and outgoing traffic based on predefined security rules.
A default gateway is the network node used to forward data from one network to
another.
A subnet mask is a numerical value that divides an IP address into network and host
parts, helping in managing IP address allocation and network traffic.
BIG
11. What is software version controlling? Explain the concept of git merge.
Describes the differences between tags and branches.
Software version control is a system that helps track changes in software projects
over time, allowing multiple developers to collaborate without conflicts.
Git merge is a process where two branches of code are combined, integrating changes
from one branch into another.
Tags in Git are used to mark specific versions of the software, often for stable
releases, while branches are used to work on features or fixes separately from the
main codebase. Branches can be modified, merged, and deleted, while tags are
permanent and can't be changed.
if(letterCount[currLetter] == undefined){
letterCount[currLetter] = 1;
} else {
letterCount[currLetter] += 1;
}
}
}
}
LetterCounter.CountLettersAsString("NahidZamanReed");
13. Suppose you have a CSV file larger than 5GB. You need to analyze the data and
show it on a web portal.
Ans:
I will use Python’s Pandas read the large CSV in small parts. This avoids memory
overload.
I will save the processed data in a database like MySQL or mongoDB for better
querying and filtering.
Ans: Secure coding is the practice of writing software in a way that protects it
from security vulnerabilities and attacks, ensuring data integrity,
confidentiality, and availability.
Password files can be protected by encrypting the file and using strong hashing .
A Network Intrusion Detection System (NIDS) monitors network traffic for suspicious
activity and alerts administrators of potential security threats.
15. What is your greatest weakness, and what have you done to overcome it?
Ans: My greatest weakness is sometimes taking on too many tasks because I want
everything to be perfect. To improve, I’ve been working on managing my time better
and setting clear priorities to get things done on time without stressing.
Ans:
Pattern
#include <iostream>
using namespace std;
int main() {
int n = 6; // Number of rows
return 0;
}
Physical Layer: Transmits raw data bits over a physical medium like cables or radio
waves.
Data Link Layer: Provides error detection and correction, and controls data flow
between devices on the same network.
Network Layer: Handles routing and forwarding of data packets between different
networks.
Session Layer: Manages and controls the dialogues (sessions) between two devices,
ensuring data is properly synchronized.