DEV Community

Cover image for mock interview-1
vishwa v
vishwa v

Posted on • Edited on

mock interview-1

About yourself

Good morning sir, I am vishwa,a highly motivated and passionate computer science student, completed my B.Tech in Kalasalingam academy of research and education.

I have built a functional websites which name it as medigpt.it is an medical AI model for public health education.

The main problem is that normal AI like ChatGPT often makes up wrong medical facts which is dangerous for patients. We solved this by training AI only on medical books and doctor notes to make it domain-specific.

We also added a fact-checking system during training so the AI learns accuracy along with language. The result is MediGPT which gives doctors trustworthy AI for clinical support and medical text summarization.

My contribution was building the custom medical tokenizer and the fact-checking training method called FGDO.

My active involvement in sports, particularly cricket and football, has helped me develop strong teamwork skills, discipline, and strategic thinking.

I am eager to apply my technical and interpersonal skills, especially in web development, for the growth of your organization.

About your project(Techincal)

I built MediGPT in Python using PyTorch(open source ML library for python and HuggingFaceTransformers.(Library with pre-trained models (BERT, GPT, etc.) for NLP tasks used for sentimental analysis,translation

We used a decoder-only transformer architecture with ALiBi positional encoding for long clinical notes.

I trained a custom Byte Pair Encoding tokenizer from scratch on PubMed and MIMIC datasets.

The key innovation FGDO adds a factual loss during fine-tuning by verifying model output against UMLS medical knowledge base.

Data was loaded and preprocessed using Hugging Face Datasets and Pandas.

Python was chosen because the entire LLM ecosystem like Transformers, Tokenizers, and PyTorch is Python-based

Contribution to your Project

I built the custom Byte Pair Encoding tokenizer from scratch using Python and Hugging Face Tokenizers library, trained only on medical data like PubMed and MIMIC.

This tokenizer reduces token count for medical terms, so words like 'pneumonoultramicroscopicsilicovolcanoconiosis' don’t split into too many pieces.

I also implemented the FGDO module which adds a factual loss during fine-tuning by verifying each generated fact against the UMLS medical knowledge base. My work directly targeted the hallucination problem by forcing the model to learn accuracy, not just fluent text.

What is java

Java is a popular programming language used for developing large-scale applications, including Android apps, web apps, and enterprise software.

It is an object-oriented language known for its platform independence, strong security features, and vast ecosystem. It's widely used in industries like finance, e-commerce, and mobile app development.

oops concept

Object-Oriented Programming (OOP) is a way of structuring code around “objects” that represent real-world entities, making programs easier to understand, reuse, and maintain. The four main pillars are: Encapsulation, Abstraction, Inheritance, and Polymorphism

Class

A blueprint for creating objects.
Defines properties (data) and methods (functions).

Example:

class Car {
    String brand;
    int speed;
    void drive() { System.out.println("Car is driving"); }
}
Enter fullscreen mode Exit fullscreen mode

Object

An instance of a class.
Has state (data values) and behavior (methods).

Example:

Car myCar = new Car();
myCar.brand = "Honda";
myCar.drive();
Enter fullscreen mode Exit fullscreen mode

Encapsulation

Wrapping data + methods together in one unit.

Protects data by restricting direct access (using private variables and public methods).

Example:

class BankAccount {
    private double balance;
    public void deposit(double amount) { balance += amount; }
    public double getBalance() { return balance; }
}
Enter fullscreen mode Exit fullscreen mode

Abstraction

Hiding implementation details, showing only what’s necessary.

Example: You press a car’s accelerator without knowing the internal mechanics.

Inheritance

Allows a class to reuse properties/methods of another class.

Promotes code reuse.

Example:

class Animal { void eat() { System.out.println("Eating"); } }
class Dog extends Animal { void bark() { System.out.println("Barking"); } }

Enter fullscreen mode Exit fullscreen mode

Polymorphism

Same method name, different behavior depending on context.

Two types:

Compile-time (Overloading) → same method name, different parameters.

Runtime (Overriding) → child class redefines parent method.

Example:

class Shape { void draw() { System.out.println("Drawing shape"); } }
class Circle extends Shape { void draw() { System.out.println("Drawing circle"); } }

Enter fullscreen mode Exit fullscreen mode

padding vs margin

Use padding when you want space inside the element (like text not touching edges).

Use margin when you want space outside the element (like separating two divs).

diff blw flex and grid

The key difference is that CSS Flexbox is a one‑dimensional layout system (works in a single row or column), while CSS Grid is a two‑dimensional layout system (works with both rows and columns at the same time). Flexbox is best for aligning items along one axis, Grid is best for building complex page layouts.

diff blw vh and %

vh (Viewport Height)
Meaning: Relative to the browser window height.
Always depends on the screen size, not on parent elements.

% (Percentage)
Meaning: Relative to the parent element’s size.
If the parent has no fixed height, % may not work as expected (it collapses or doesn’t center properly).

why Linux

Linux is widely used because it’s free, secure, stable, and highly customizable — making it ideal for developers, IT professionals, and even everyday users who want control over their system without licensing costs. It powers most of the internet, Android phones, and cloud servers, showing its reliability and versatility.

5 linux commands:
pwd(Print Working Directory)
Shows the folder you’re currently in.

ls (List)
Lists files and folders in the current directory.

cd(Change Directory)
Moves you into another folder.

mkdir (Make Directory)
Creates a new folder.

rm (Remove)
Deletes files (careful, no recycle bin).

How to create table

A table in HTML is used to arrange data in rows and columns.

You create a table with the <table> tag.

Inside the table, each row is made with <tr>.

The headings of the table are written with <th>.

The data cells are written with <td>.

CSS can be used to style the table, like adding borders, colors, or spacing.

Top comments (0)