How to Make a Link Open in a New Tab Using HTML

The Question asked in Technical Interview for BCA/MCA Freshers:

How to Make a Link Open in a New Tab Using HTML

The basic code for any link is:

< a href=”somepage.html”> Go To somepage</a >

To Open specified link in new tab, your code should look something like this:

< a href=”somepage.html” target=”_blank”> Go To somepage</a >

By setting the target attribute as _blank, we are able to open a link in new tab.

Note: For More Interview Questions and Resume Tips visit this website daily.

We will upload most important interview questions, technical interview questions for BCA and MCA freshers.

This blog is for:
BCA MCA Freshers, Software Companies, IT Students, Training Institutes, Colleges, Teachers, Learners, Leaders, Earners,...

: for more details or any query email us: 

How to calculate Age from date of birth in PHP

The question is: How to calculate Age from date of birth in php

This Question asked in Interview

We are going to calculate age if we know the date of birth.

Here is the PHP Script:

$birthdate = new DateTime('1991-01-13');
$today   = new DateTime('today');
$age = $birthdate->diff($today)->y;
echo $age;


How to Go Back Page using Javascript

If You want to go on previous page on button click then following information will help you:

What you need to do is just write the code: 


on OnClick event of HTML button.


<button onclick="javascript:window.history.back();">Go Back</button>


This is the same as clicking the "Back button" in your browser
The back() method loads the previous URL in the history list.

Almost all browsers support this code.

Group Discussion Topics : 2015

Most Important GD Topics in Interview

The important round in selection process of IT Companies is Group Discussion. This Round is for examining your communication skill. This round is also known as “Elimination Round”.

Here are some Topics Of Group Discussion.Be preparing while going for any Walk-in.

Group Discussion Topics 2015:

eLearning vs classroom training

Will Swachh Bharat Campaign Succeed?

Love is not a feeling, but business!

Love marriage vs arrange marriage

Should Beauty Pageants Be Banned In Schools And Colleges?

What's so wrong with celebrating valentine's day?

Child artists: Unnoticed victims of child labour

Start up v/s Big brand names - which one should you join?

Is All The Fuss Over A PM’s Suit Justified?

Losing Virginity Before Marriage is a big deal

Will Swachh Bharat Campaign Succeed?

English should continue to be the official language of India.

Politicians must a have retirement age

Should vehicles older than 15 years be banned in Delhi?

Only Mahatma Gandhi Deserves To Be Featured On The Currency Notes

Journalism should be out of the premises of censorship

Make in India Or Made in India

Obama chewing gum during R-day parade is offensive

Would you send your child to a pre-school before 3 years of age?

Are Gandhi ji and his teachings relevant in today’s world?

Smart Phones: Latest trend or harmful device.

Moral policing on entertainment shows should be exercised

Does “Messenger of God” deserve a clearance ?

Cricket should be the National Game of India

Should tablets replace text books?

C Programming: Objective Questions and answers

These are the questions asked in various companies, for freshers (BCA, MCA).
If you are going for technical interview of IT Company then you must be prepare for these questions.
Here are List of Questions with answers.

1. In which numbering system can the binary number 1011011111000101 be easily converted to?

A. Decimal system
B. Hexadecimal system
C. Octal system
D. No need to convert

Answer & Explanation
Answer: Option B


Hexadecimal system is better, because each 4-digit binary represents one Hexadecimal digit.

2.If the two strings are identical, then strcmp() function returns

A. -1
B. 1
C. 0
D. Yes

Answer & Explanation
Answer: Option C


Declaration: strcmp(const char *s1, const char*s2);

The strcmp return an int value that is

if s1 < s2 returns a value < 0

if s1 == s2 returns 0

if s1 > s2 returns a value > 0

3. How will you print \n on the screen?

A. printf("\n");
B. echo "\\n";
C. printf('\n');
D. printf("\\n");

Answer & Explanation
Answer: Option D


The statement printf("\\n"); prints '\n' on the screen.

4. Which header file should be included to use functions like malloc() and calloc()?

A. memory.h
B. stdlib.h
C. string.h
D. dos.h
Answer & Explanation
Answer: Option B

5. What function should be used to free the memory allocated by calloc() ?

A. dealloc();
B. malloc(variable_name, 0)
C. free();
D. memalloc(variable_name, 0)

Answer: Option C