Microsoft Off-Campus Coding Questions and Answers 2024

Microsoft Off Campus Coding Questions & Answers 2024 | Microsoft Data Analytics, Software Engineer, Data Annotation Specialist  Coding Questions With Solution | Microsoft Interview Questions | Microsoft Interview Questions & Answer 2024

Microsoft on-campus coding questions and answers 2024: Microsoft has released off-campus notification for 2024. This notification is an opportunity for fresh graduates and professionals who are willing to work in Microsoft company. But getting selected for this competitive post is not that easy. It is possible with proper guidance and training. If you want to prepare for this Microsoft off-campus then knowing the previous year’s norms will help you to prepare accordingly. You need more practice to make your exam easy. You will have to spend a lot of time to know the previous questions. It will affect your training time. As a solution for that, you can know Microsoft Campus Previous Questions, Microsoft Selection Method, etc., for those who are preparing for off-campus on our site dailyrecruitment.in.

Following the norms of Microsoft’s previous recruitment campaigns will help you. Code will be very important for you to qualify for Microsoft off-campus. Among them, you need to be very strong in problem-solving. you should choose a language you are comfortable with like C, C++, Java, or Python to complete the coding tasks. More details like Microsoft off-campus coding questions and answers, Microsoft coding questions and answers, Microsoft interview questions and answers, Microsoft cut-off, salary, promotion, increment, and annual evaluation are available on this page.

The test pattern for Microsoft Recruitment Process is as follows:

Round  No .of Questions  Time Duration 
Online Coding Test 3 to 5 60 Min
Technical Written Test 5 to 10 60 Min
Total  10 2 hr

Microsoft Coding Questions and Answers 2024

Q ) How do you reverse a string in Java?

  • Declare a string.
  • Take out the length of that string.
  • Loop through the characters of the string.
  • Add the characters in reverse order in the new string.

String str = “hello”;

String reverse = “”;

int length = str.length();

for (int i = 0; i < length; i++) {

reverse = str.charAt(i) + reverse;

}

out.println(reverse);

Q ) How do you determine if a string is a palindrome?

  • A string is a palindrome when it stays the same on reversing the order of characters in that string.
  • It can be achieved by reversing the original string first and then checking if the reversed string is equal to the original string.

if (str.equals(reverse))

{

System.out.println(“Palindrome”);·

}

else

{

System.out.println(“Not Palindrome”);·

}

Q ) Find the number of occurrences of a character in a String?

To find the number of occurrences, loop through the string and search for that character at every iteration; whenever it is found, it will update the count.

int count = 0;

char search = ‘a’; f

or (int i = 0; i < length; i++)

{

if (str.charAt(i) == search)

{

count++;

}

}

System.out.println(count);

Q ) How do you calculate the number of vowels and consonants in a String?

  • Loop through the string.
  • Increase the vowel variable by one whenever the character is found to be a vowel, using the if condition. Otherwise, increment the consonant variable.
  • Print the values of both the vowel and the consonant count.

int vowels = 0;

int consonants = 0;

for (int k = 0; k < str.length(); k++) {

char c = str.charAt(k);

if (c == ‘a’ || c == ‘e’ || c == ‘i’ || c == ‘o’ || c == ‘u’)

vowels++;

else

consonants++;

}

System.out.println(“Vowel count is ” + vowels);

System.out.println(“Consonant count is: ” + consonants);

Q ) How would you implement the bubble sort algorithm?

  • Declare an array.
  • Nest a couple of loops to compare the numbers in the array.
  • The array will be sorted in ascending order by replacing the elements if found in any other order.

int[] a = { 1, 2, 7, 6, 4, 9, 12 };

for (int k = 0; k < a.length; k++) {

for (int l = 0; l < a.length – l – 1; l++) {

if (a[l] > a[l + 1]) {

int t = a[l];

a[l] = a[l + 1];

a[l + 1] = t;

}

}

}

Microsoft Technical Interview ( Written Test) Questions and Answers 2024

Q ) What is a Linked List?

  • Like an array, a Linked list refers to a linear data structure in which the elements are not necessarily stored in a contiguous manner.
  • It is basically a sequence of nodes, each node points towards the next node forming a chain-like structure.

What is a Stack?

  • A stack refers to a linear data structure performing operations in a LIFO (Last In First Out) order.
  • In a stack, elements can only be accessed, starting from the topmost to the bottom element.

Q ) What is the OOPs concept?

OOPs stands for Object Oriented Programming System, a paradigm that provides concepts such as objects, classes, and inheritance.

Q ) What do you mean by inline function?

The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application’s performance in exchange for increased compile time and possibly (but not always) an increase in the size of the generated binary executables.

Q ) what are the two integrity rules used in DBMS?

The two types of  integrity rules are referential integrity rules and entity integrity rules. Referential integrity rules dictate that a database does not contain orphan foreign key values. This means that
A primary key value cannot be modified if the value is used as a foreign key in a child table. Entity integrity dictates that the primary key value cannot be Null.

Q) What is Doubly link list?

A doubly linked list is a linked data structure that consists of a set of sequentially linked records called nodes. Each node contains two fields, called links, that are references to the previous and to the next node in the sequence of nodes. The beginning and ending nodes’ previous and next links, respectively, point to some kind of terminator, typically a sentinel node or null, to facilitate traversal of the list. If there is only one sentinel node, then the list is circularly linked via the sentinel node. It can be conceptualized as two singly linked lists formed from the same data items, but in opposite sequential orders.

Keep watch dailyrecruitment.in site for more upcoming jobs, study material notification.

JOB ALERT ON INSTAGRAM FOLLOW NOW>>
JOB ALERT ON TELEGRAM  JOIN NOW>>

 

Govt Jobs by Qualifications

Education & Vacancies Salary Apply Link
10th Pass Govt Jobs - 5,000 Vacancies Rs. 5,200 - 63,200 Apply Now
12th Pass Govt Jobs - 18,000+ Vacancies Rs. 5,200 - 92,300 Apply Now
ITI Pass Jobs - 3,500 Vacancies Rs. 5,200 - 35,000 Apply Now
Any Graduate Jobs - 19,100 Vacancies Rs. 5,200 - 92,300 Apply Now
Central Govt Jobs Rs. 5,200 - 17,000 Apply Now
Bank Jobs - 1,000 Vacancies Rs. 5,200 - 29,200 Apply Now
Diploma Jobs - 9,300 Vacancies Rs. 5,200 - 35,000 Apply Now
BTech/BE Jobs - 18,000 Vacancies Rs. 15,000 - 1,00,000 Apply Now
Data Entry Jobs - 1,300 Vacancies Rs. 5,200 - 29,200 Apply Now
Private Jobs Rs. 10,000 - 67,700 Apply Now