What is the size og following structuires when packing is allowed and not allowed. Struct A { char c; int i; } Struct B {int i; char c; } Struct C { char c1; int i; char c2; }
Software Developer Interview Questions
467,049 software developer interview questions shared by candidates
How to write an evaluator for a string like "(1+3 * ( 5 / 4)) and get a numeric result.
Give an example of real world scenario where you see inheritance?
Java program in round 3 was the most difficult question in my case. A matrix halfly-filled with numbers - almost randomly was given . And You need to fill the blank matrix of same size with those numbers in similar arrangement in a program using 2D arrays and loops.
Given an array of unique non-negative integers, {A1,…,An}, and a positive integer, X, write a function that finds all pairs of numbers in the array that sum to X”. You are given an integer array nums sorted in ascending order (with distinct values), and an integer target. Suppose that nums is rotated at some pivot unknown to you beforehand (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).” Take a singly-linked list, and reorder in such a way that the first element points to the last element, second element points to second-to-last element, and so on.
However the interview was about Senior Java Position, I just asked a couple of questions about Java and nothing about Javascript. The interview questions were about: 1. Data structure and algorithms (30 minutes) 2. Operating Systems Concepts (System calls, concurrency, etc, Device Drivers.) 3. TCP/IP Layered protocol ( I was really really good at this when I was in college :) ) Till now about 1 hour or more passed from the 90 minutes interview... 4. Couple of questions about REST, Java Concurrency and Testing I could understand the emphasis on the OS, algorithms design and analysis is to be asked at Google & Amazon-like companies or to be asked to a fresh engineer he is just graduated from the university with a fresh knowledge. I am not denying their questions about OS, Data structure, and algorithms, but to make most on the interview for such topics and eventually got rejected because my knowledge in JavaScript is not enough is not honesty in reporting the Interview status. I answered the algorithms question and OS, TCP/IP from memory (which mostly wasn't that accurate as I left university more than 10 years back).
SQL query to find department wise count
Consider 4 components of a color where: unsigned char red = 0x10; unsigned char green = 0xFF; unsigned char blue = 0x0F; unsigned char alpha = 0x44; Generate a packed color ARGB which is a 32 bit integer such that A is in the MSB of ARGB followed by red, green, blue ----------------- | A | R | G | B | -----------------
solve following program void main(){ int x =10; { int y =20; } pfintf('x=%d,y = %d',x. y); }
1) One grandfather has three grandchildren, two of their age difference is 3, eldest child age is 3 times youngest child’s age and eldest child’s age is two times of sum of other two children. What is the age of eldest child? (Ans: 15 years) 2) we can tell you that the first and last digits of the year during which he was born add up to the second digit and that the third digit is one larger than the second digit and that 3 times fourth digit equals 2 times the third digit. Calculate year of his birth. (Ans: 1564) 3) Bella wants to go on a date and prefers her date to be tall, dark and handsome. Of the preferred traits - tall, dark and handsome - no two of Lautner, Jacob, Edward and Welch have the same number. Only Lautner or Welch is tall and fair. Only Jacob or Edward is short and handsome. Lautner and Edward are either both tall or both short. Jacob and Welch are either both dark or both fair. Who is Bella's date? (Ans: Edward)
Viewing 1511 - 1520 interview questions