Sirfpadhai.in Learn to easy Programming 🧑‍💻
21 subscribers
5 photos
6 files
54 links
SirfPadhai.in is an educational website that provided Computer Science Related Coding Language English in Hindi. Here we publish computer science-related coding languages ​​and software engineering fundamentals in Hindi simple language🧑‍💻 Thank you 🥰
Download Telegram
13. Program to accept rollnumber and marks of three subjects from user and print total marks, average and grade.

#include<stdio.h>
#include<conio.h>

void main()
{
int RollNum, m1, m2, m3, total;
float avg;
clrscr();

printf("Enter Roll Number : ");
scanf("%d",&RollNum);

printf("Enter marks for three subjects : ");
scanf("%d %d %d", &m1, &m2, &m3);

total = m1 + m2 + m3;
avg = total / 3.0;

printf("\nTotal is : %d", total);
printf("\nAverage is : %5.2f", avg);

if(avg>80)
printf("\nGrade : A");
else if((avg>60)&&(avg<=80))
printf("\nGrade : B");
else if((avg>40)&&(avg<=60))
printf("\nGrade : C");
else if((avg>=33)&&(avg<=40)
printf("\nGrade : D");
else
printf("\nGrade : Fail");

getch();
}
#if_else

#Clanguage

#sirfpadhai.in
👍1
24. Write a JavaScript program to create a new string from a given string with the first character of the given string added at the front and back.

function front_back(str)
{
first = str.substring(0,1);
return first + str + first;
}
console.log(front_back('a'));
console.log(front_back('ab'));
console.log(front_back('abc'));


#javascript
#sirfpadhai.in
Forwarded from IT World
Learn Data science in your native language and earn upto 21 LPA!
Certified by IIT Madras Pravartak, this is a 3-5 month course that comes with assured job opportunities!
Click the link below to register now and start your career in data science

https://bit.ly/40Qjg7e
*Java Control Statements* 🧠

1️⃣ *if Statement*
Executes a block if the condition is true.
if (age > 18) { System.out.println("Adult"); }

2️⃣ *if-else Statement*
Gives two paths: true or false.
if (marks >= 40) { ... } else { ... }

3️⃣ *else-if Ladder*
Checks multiple conditions one by one.
if (...) { } else if (...) { } else { }

4️⃣ *switch Statement*
Best for multiple fixed values.
switch(day) {
case 1: System.out.println("Monday"); break;
...
}

5️⃣ *for Loop*
Repeats a block a fixed number of times.
for (int i = 0; i < 5; i++) { ... }

6️⃣ *while Loop*
Runs while the condition is true.
while (count < 5) { ... }

7️⃣ *do-while Loop*
Runs once even if the condition is false.
do { ... } while (condition);

8️⃣ *break Statement*
Exits from loop or switch early.
if (x == 5) break;

9️⃣ *continue Statement*
Skips to the next iteration.
if (x == 3) continue;

🔟 *return Statement*
Ends method execution and optionally returns a value.

💬 *Tap ❤️ for more!*
🎯 *10 Data Analyst Interview Questions With Answers* 💡📈

1️⃣ *Q: What is data normalization and why is it important?*
Normalization reduces data redundancy and improves integrity in databases.
Example: Splitting customer data from order table into separate linked tables.

2️⃣ *Q: How would you handle outliers in a dataset?*
Options:
- Investigate and fix data entry errors
- Cap/extreme value treatment (e.g., 1st and 99th percentile)
- Use boxplot or IQR method to detect them
Depends on domain impact.

3️⃣ *Q: What’s the difference between UNION and UNION ALL?*
- UNION removes duplicates
- UNION ALL keeps all records
Use UNION when uniqueness is needed, but it's slower.

4️⃣ *Q: Describe the ETL process.*
- *Extract* → Get data from source systems
- *Transform* → Clean, format, and enrich data
- *Load* → Store into data warehouse or database

5️⃣ *Q: What is a primary key and foreign key?*
- *Primary Key* → Uniquely identifies each row in a table
- *Foreign Key* → Creates a link between two tables using a reference

6️⃣ *Q: Explain the difference between OLTP and OLAP systems.*
- OLTP: Handles day-to-day transactions (Insert, Update)
- OLAP: Designed for analytics, querying, and reporting (Read-heavy)

7️⃣ *Q: How do you ensure data quality?*
By applying:
- Validation rules
- Consistency checks
- Handling missing/duplicate values
- Regular audits and testing

8️⃣ *Q: What’s the role of a data analyst in a business team?*
- Translate data into insights
- Answer business questions using data
- Create dashboards/reports
- Work with stakeholders to guide decisions

9️⃣ *Q: Describe a time you used data visualization to solve a problem.*
Example: Used a heatmap to identify underperforming sales regions, led to targeted marketing campaigns and increased revenue.

🔟 *Q: What is A/B testing and how would you use it?*
A/B testing compares two versions (A and B) to see which performs better.
Used in marketing, UX, product optimization — validate with statistical significance.

💬 *Tap ❤️ for more!*
🤖 *How to Code Like a Pro with GitHub Copilot*

AI is no longer a sidekick.
💥 46% of new code is now written by AI.
📈 Dev productivity? Boosted by 55%.

The real MVP behind this?
👉 *GitHub Copilot*

But wait — how does it *actually* work?
Here’s the behind-the-scenes breakdown:

1️⃣ *Your prompt flies to the cloud (securely)*
Whatever you type — comments, code, ideas — Copilot grabs it. No leaks, no worries.

2️⃣ *It reads your coding situation*
It studies your current file, cursor position, and other tabs to *understand your context.*

3️⃣ *Filters the junk*
No personal data. No nonsense. Just focused suggestions built for devs.

4️⃣ *Then BOOM — code appears*
Copilot generates code that feels like *you* wrote it. Matches your style, fits your project.

5️⃣ *You call the shots*
Accept it. Edit it. Ignore it. You’re still the main coder here.

6️⃣ *It learns from every move*
Copilot improves every time you accept, reject, or change its code. It uses zero-shot, one-shot & few-shot learning to level up.

7️⃣ *It remembers you*
Past prompts, your habits, your flow — it adapts for smarter future suggestions.

*Copilot isn’t just autocomplete. It’s your coding co-pilot.*

But remember:
🚫 *Use it smartly.* Don’t turn off your brain.
💡 *Guide it clearly.* The better your prompt, the better the code.

React with 🔥 if you want a post on:
👉 Copilot vs ChatGPT (for devs)
👉 Smart prompting tricks for Copilot
👉 Mistakes beginners make using Copilot
🚀Exciting Announcement from SirfPadhai Learn with Code! 🚀
We’re thrilled to share that SirfPadhai Learn with Code will soon be launching Government-approved Internships under NSWS, AICTE, MSME, and DSC. 🎯

💡 Domains Available:

Cybersecurity 🔐
React Development 💻
Digital Marketing 📈
Artificial Intelligence 🤖
…and many more!

📅 Duration Options: 30 Days | 45 Days | 90 Days
Work on real projects and earn a Government-verified, high-authority certificate.
Open to all students and freshers — no matter your background.
The opportunity is coming very soon — be ready to kickstart your career with skills that matter!

📌 How to Apply?
If you’re interested, simply comment “I’m interested” below, and we’ll reach out to you with the details.

Regards,
SirfPadhai Learn with Code