Quantcast
Channel: Interview Topics and Questions
Viewing all 129 articles
Browse latest View live

C program Examples questions | Sample C programs | Practise questions on c | Assignment Programs on c

$
0
0

1. Write a c program to check given number is perfect number or not.
2. Write a c program to check given number is Armstrong number or not.
3. Write a c program to check given number is prime number or not.


4. Write a c function program to reverse any number.

5. Write a c program to check given number is strong number or not.
6. Write a c program to find out sum of digit of given number.
7. Write a c program to check given number is palindrome number or not.

string:
=======
8. Write a c program to check given string is palindrome number or not.

9. Write a c program to find out power of number.          
10. Write a c program to add two numbers without using addition operator.
11. Write a c program to subtract two numbers without using subtraction operator.
12. Write a c program to find largest among three numbers using binary minus operator.
13. Write a c program to find largest among three numbers using conditional operator
14. Write a c program to find out generic root of any number.


15. Write a c program to solve quadratic equation.
18. Write a c program which passes structure to function.



16. Write a c program which passes one dimension array to function.
17. Write a c program which passes two dimension array to function.


19. Write a c program for Floyd’s triangle.
20. Write a c program to print Pascal triangle.
21. Write a c program to generate multiplication table.
22. Write a c program to get factorial of given number.
23. Write a c program to find out prime factor of given number.
24. Write a c program to find out NCR factor of given number.
25. Write a c program to print Fibonacci series of given range.
26. Write a c program to print ASCII value of all characters.
27. Write a c program to check given year is leap year or not.


28. Write a c function program which takes password from user.
29. Write a scanf function in c which accept sentence from user.
30. Write a scanf function in c which accept paragraph from user.


31. Write a c program to print the all prime numbers between 1 to 300.


L.C.M and H.C.F.
32. Write a c program to find out L.C.M. of two numbers.
33. Write a c program to find out H.C.F. of two numbers.
34. Write a c program to find out G.C.D. of two numbers.


Swapping

35. Write a c program to swap two numbers.
35. Write a c program to swap two numbers without using third variable.
36. Write a c program for swapping of two arrays.
37. Write a c program for swapping of two string.



Conversion


38. Write a c program to convert decimal number to hexadecimal number.
39. Write a c program to convert hexadecimal number to decimal number.
40. Write a c program to convert decimal number to octal number.
41. Write a c program to convert octal number to decimal number.
42. Write a c program to convert binary number to decimal number.
43. Write a c program to convert decimal number to binary number.
44.Write a c program to convert farehnite to centigrade.
45.Write a c program to convert centigrade to farehnite.





7.Write a c program to convert binary number to octal number.
8. Write a c program to convert binary number to hexadecimal number.
11. Write a c program to convert hexadecimal number to binary number.
12. Write a c program to convert octal number to binary number.


String


1. Write a c program to convert the string from upper case to lower case.
2. Write a c program to convert the string from lower case to upper case.
3. Write a c program to delete the all consonants from given string.
4. Write a c program to count the different types of characters in given string.
5.  Write a c program to sort the characters of a string.
6. Write a c program for concatenation two strings without using string.h header file.
7. Write a c program to find the length of a string using pointer.
8. Write a c program which prints initial of any name.
9. Write a c program to print the string from given character.
Matrix


1. Write a c program for addition of two matrices.
2. Write a c program for subtraction of two matrices
3. Write a c program for multiplication of two matrices.
4. Write a c program to find out sum of diagonal element of a matrix.
5. Write a c program to find out transport of a matrix.
File


1. Write a c program to open a file and write some text and close its.
2.  Write a c program to delete a file.
3. Write a c program to copy a file from one location to other location.
4. Write a c program to copy a data of file to other file.
5. Write a c program which display source code as a output.
6. Write a c program which writes string in the file.
7. Write a c program which reads string from file.
8. Write a c program which writes array in the file.
9. Write a c program which concatenate two file and write it third file.
10. Write a c program to find out size of any file.
11. Write a c program to know type of file.
12. Write a c program to know permission of any file.
13. Write a c program to know last date of modification of any file.
14. Write a c program to find size and drive of any file.
Complex number


1. Write a c program for addition and subtraction of two complex numbers.
2. Write a c program for multiplication of two complex numbers.
3. Write a c program for division two complex numbers.
Series


1. Write a c program to find out the sum of series 1 + 2 + ….  + n.
2. Write a c program to find out the sum of series 1^2 + 2^2 + …. + n^2.
3. Write a c program to find out the sum of series 1^3 + 2^3 + …. + n^3.
4. Write a c program to find out the sum of given A.P.
5. Write a c program to find out the sum of given G.P.
6. Write a c program to find out the sum of given H.P.
7. Write a c program to find out the sum of series 1 + 2 + 4 + 8 … to infinity.
Array


1. Write a c program to find out largest element of an array.
2. Write a c program to find out second largest element of an unsorted array.
3. Write a c program to find out second smallest element of an unsorted array.
4. Write a c program which deletes the duplicate element of an array.
5. Write a c program for delete an element at desired position in an array.
6. Write a c program for insert an element at desired position in an array.
Sorting


1. Write a c program for bubble sort.
2. Write a c program for insertion sort.
3. Write a c program for selection sort.
4. Write a c program for quick sort.
5. Write a c program for heap sort.
6. Write a c program for merge sort.
7. Write a c program for shell sort.
Recursion


1. Write a c program to find factorial of a number using recursion.
2. Write a c program to find GCD of a two numbers using recursion.
3. Write a c program to find out sum digits of a number using recursion.
4. Write a c program to find power of a number using function recursion.
5. Write a c program to reverse any number using recursion.
Size of data type


1. Write a c program to find the size of int without using sizeof operator.
2. Write a c program to find the size of double without using sizeof operator.    
3. Write a c program to find the size of structure without using sizeof operator.
4. Write a c program to find the size of union without using sizeof operator.
Using pointer


1. Write a c program for concatenation two string using pointer.
Searching


1. Write a c program for linear search.
2. Write a c program for binary search.
3. Write a c program for binary search using recursion.
Area and volume


1. Write a c program to find the area of circle.
2. Write a c program to find the area of any triangle.
3. Write a c program to find the area of rectangle.

5. Write a c program to find the area of trapezium.          
6. Write a c program to find the area of right angle triangle.        
7. Write a c program to find the volume and surface area of cube.
8. Write a c program to find the surface area and volume of a cone.
9. Write a c program to find the perimeter of a circle, rectangle and triangle.


Find Answers at C INTERVIEW QUESTIONS

Sample Project on Objective C---BODY MASS INDEX(BMI)

Properties of the Hash Function

$
0
0


1.The distribution should be uniform.

2.An ideal hash function should assign the same number of records in each bucket.

3.The distribution should be random.

4.Regardless of the actual search-keys, the each bucket has the same number of records on average

5.Hash values should not depend on any ordering or the search-keys


C language Sample Interview Questions

$
0
0



C Test


PAPER - 1




1) int prime[7]= {2, 3 ,5, 7, 11, 13};
  The size of the array ‘prime’ assuming ‘int’ variables to occupy 2 bytes is

a)     14
b)    12
c)     6
d)    None of these

2) a = 100;
    b = 5;
    c = a << b << 3;

Assuming the type of all variables to be ‘int’  the value stored in c is

a)     7
b)    25600
c)     5
d)    12800

3)

The output of the program :

#include <stdio.h>
int e=4;
struct x {int a; int b;};
struct x c = {3,4};
struct x d = {5,6};

  void main(){
  c.a = c.b + d.a;
  e = d.a + c.b;
  printf("%d\n",e);}

a)     9
b)    13
c)     10
d)    8


4)
The output of the program :

#include <stdio.h>
void main(){
  int a=1, b=2, c=3;
  a = b << c;
  printf("%d\n",a);}


a)     16
b)    32
c)     8
d)    2


Q 5 – Q7                        3

    5               7

                              1                0          2             9

6                                   4



          8

5) The counter-postfix notation is

          a) 4972683051
          b) 3794268501
          c) 1058624973
          d) 3510726894

6) The infix notation

          a) 3510726894
b) 1503862794
c) 3571029648
d) None of these

7) The corresponding binary search tree in infix notation is

          a) Binary search tree cannot be created as the elements are not sorted when  traversed in any order.
          b) 0123456789
          c) 1503862794
          d) None of these
         


8)Given the following declaration;
FILE *ifp;
Which of the following would not open the file “input.dat” for input in text mode?

a)     ifp = fopen (“input.dat”, “r”);
b)    ifp = fopen (“input.dat”, “r+”);
c)     ifp = fopen (“input.dat”,  “rb”);
d)    ifp = fopen (“input.dat”, “rt”);



Q9 – Q12
typedef union ut
{
    int I;
    float f;
    char s [20];
};

ut u, *pu, au [5];

(Assume that an int is '2 bytes', float is '4 bytes', char is '1 byte' and pointer is '4 bytes').


9) The size of ‘ut’ is
a)     20
b)    21
c)     Trying to find the size results in an error
d)    26

10) The size of  ‘u’ is
a)     21
b)    22
c)     20
d)    19

11) The size of ‘pu’ is
                   a)   20
                   b)   4
c)     26
d)    Cannot be decided as it is compiler dependent

12) The size of ‘au’ is
a)     80
b)    100
c)     130
d)    20


13)
The output of the program :

#include <stdio.h>

void main(){
  char c[ ] = "Hi_mom";
  char *cp = c;
  printf("%d\n",sizeof(cp));}

                   a) 6 
                   b) 5
                   c) 4
                   d) None of these as the ‘sizeof’ function flags an error


14) p is a 15-element array of pointers to functions; each function accepts an argument which is a pointer to a float and returns a pointer to a double. The declaration used is

          a)  double (**p[15]) (float []);
          b) double *(*p[15])(float *a);
          c) double *( (*p)[15]) *(float a);
          d) double (*p[]) *(float *a);

   
15)           Assume the size of int to be 2 bytes and the program is run on a 486 machine

register int a = 10;

The size of a

a)     is 2 as int is assumed to occupy 2 bytes
b)    Error ! As it is illegal to find the size of a register variable
c)     is 4 as registers of 486 are 32bit in length
d)    Compiler dependent



PAPER – 2


Assume char occupies 1 byte, int 2 bytes, float 4 bytes and double 8 bytes unless explicitly stated.

1) What is the number of bytes occupies  by  the array Arr declared as
double Arr [20] [5] [6];

a)     3040
b)    4800
c)     2400
d)    1200

2) Which one of the following with respect to the following declarations is true :
char strl [5] = "ABCD";
char *str2 = "ABCD";

a)     size of str1 = size of str2
b)    str1[5] = ‘\0’;
c)     *(str2+4) = ‘\0’;
d)    All are false


3) The output of the program :

#include <stdio.h>

void main(){

  int a=1, b=2, c=3, d=4;

  char ca[80];

  a= sprintf(ca,"%1d %1d %1d\n",b,c,d);

  printf("%d\n",a);}

a)     2 3 4
1

b)    2 3 4
6

c)     6
d)    None of the above



4) The output of the program :

#include <stdio.h>

void main(){

  int a=1, b=2, c=3;

  a = b << c;

  printf("%d\n",a);}

a)     2
b)    8
c)     4
d)    16


5) The output of the program :

#include <stdio.h>

void main(){

  int a=1, b=5, c=3;

  a = b ^ c;

  printf("%d\n",a);}

a)     5
b)    7
c)     1
d)    None of the above


6)

float a = 3.56;

void main()
{
  float b;

  b = a % 3;
  printf (“%f”,b);
}

a)     0.56
b)    Results in a compiler error
c)     Results in a  linker error
d)    Depends on the compiler


7)    Sparse matrix is

a)    A  representation  of a matrix containing more zero elements
b )   A matrix wherein the number of  non-zero elements is very less
c)     A representation of a matrix containing only zero elements
d)    A singular matrix


8)   The sorting technique with the best efficiency when the no. of elements is large and the no. of digits in each element is quite less is
a)     Quick sort
b)    Merge sort
c)     Bubble sort
d)    Radix sort

9) The output of the program is

#include <stdio.h>
#include <string.h>

void main(){
  char c[] = "Hi folks";
  char d[] = "Hi folks";
  printf("%d\n",strcmp(c,d));}

a)     0
b)    Some non-zero value
c)     Declaration error
d)    None of the above



10)
 The output of the program :

#include <stdio.h>
int play(int x, int y){
  int a;
    if (y == 0) return 1;

    if (y % 2 == 0) return (play (x,y/2)*play(x,y/2));

    return (x*play(x,y/2)*play(x,y/2));
  }

  void main(){
    int a, b=8;
      a = play(3, b);
      printf("%d\n",a);}

a)     Goes to an infinite loop
b)    81
c)     2187
d)    6561



11)           The value of  ‘i’  when the loop terminates

int i,j;

for (i = 0,j = 0; i <= 10, j < 5; i++, j+=2);

a)     3
b)    11
c)     4
d)    10

12)
The output of the following program :

#include <stdio.h>
void main(void){
  int a=2;
  switch (a){

    case 0:a=a+2;

    case 1:a=a+4;

    case 2:a=a+8;

    case 3: a=a+6;

    default: a=a+32;}

  printf("%d\n",a);}

          a)  10
          b) Error because of absence of ‘break’ statement at the end of case structure
c) 48
          d)  14



13)           Assuming ‘i’ to be an integer with the value 10 the output of the following program statement

printf (“ %d %d %d”, ++i, i++, i);

is

a)     12 10 10
b)    11 11 12
c)     10 12 12
d)    11 12 12

14)           ‘Function xxxx should have a prototype’  errors are produced during
a)     Run-time
b)    Compile Time
c)     Link Time
d)    While preprocessing

15)           The output of the program


void main()
{
  char  str[5] = “abc”;

 printf (“%s”,&0[str]);
}

a)     abc
b)    Error
c)     Unpredicatable output
d)    bc


Answers – Paper 1


1)    a
2)    b
3)    a
4)    a
5)    b
6)    b
7)    b
8)    c
9)    a
10)           c
11)           b
12)           b
13)           c
14)           b
15)           a

Paper – 2


1)    b
2)    c
3)    c
4)    d
5)    d
6)    b
7)    a
8)    d
9)    a
10) d
11) a
12) c
13) a
14)c
15) a

FAQ on UNIX,C,C++,NETWORKING

$
0
0


1.In which layer are packets formed ( in network layer).

2.What are virtual functions?

3.What is a scope resolution operator?

4.Write a program to concatenate two circular linked lists into a single circular list.

5.Write a program to reverse a linked list.

6.Base class has some virtual method and derived
        class has a method with the same name. If we initialize the base class pointer with derived         object,.calling of that virtual method will result in which method being called?   Ans--- derived         method.

7.Go through virtual functions concepts in C++ and how the pointers to functions would be handled.---            aztec

8.A thread is  Ans. Detachable unit of executable code).

9.In the command scanf, h is used for   Ans. Short int.

10.How is memory management done in Win95   Ans. Through paging and segmentation.

11.What is meant by polymorphism  Ans. Redfinition of a base class method in a derived class.

12.How is linked list implemented  Ans. By referential structures.

13.What method is used in Win95 in multitasking  Ans. Non preemptive check.

14.What is meant by functional dependency.

15.What is a semaphore Ans. A method synchronization of multiple processes .

16.Preorder of A*(B+C)/D-G     Ans.*+ABC/-DG.

17.What is the efficiency of merge sort  Ans. O(n log n).

18.In which layer are routers used  Ans.In network layer.

Check to see if I have an Internet connection on the iPhone using the Cocoa Touch libraries

$
0
0




- (void) checkNetworkStatus:(NSNotification *)notice
{
// called after network status changes

NetworkStatus internetStatus = [internetReachable currentReachabilityStatus];
switch (internetStatus)

{
case NotReachable:
{
NSLog(@"The internet is down.");
self.internetActive = NO;

break;

}
case ReachableViaWiFi:
{
NSLog(@"The internet is working via WIFI.");
self.internetActive = YES;

break;

}
case ReachableViaWWAN:
{
NSLog(@"The internet is working via WWAN.");
self.internetActive = YES;

break;

}
}

NetworkStatus hostStatus = [hostReachable currentReachabilityStatus];
switch (hostStatus)

{
case NotReachable:
{
NSLog(@"A gateway to the host server is down.");
self.hostActive = NO;

break;

}
case ReachableViaWiFi:
{
NSLog(@"A gateway to the host server is working via WIFI.");
self.hostActive = YES;

break;

}
case ReachableViaWWAN:
{
NSLog(@"A gateway to the host server is working via WWAN.");
self.hostActive = YES;

break;

}
}
}--------------
///Import at the beginning of your implementation file
#import "Reachability.h"

//// Where you need it
Reachability *r = [Reachability reachabilityWithHostName:@"www.google.com"];
NetworkStatus internetStatus = [r currentReachabilityStatus];

if ((internetStatus != ReachableViaWiFi) && (internetStatus != ReachableViaWWAN)){
/// Create an alert if connection doesn't work
UIAlertView *myAlert = [[UIAlertView alloc]
initWithTitle:@"No Internet Connection" message:@"You require an internet connection via WiFi or cellular network for location finding to work."
delegate:self
cancelButtonTitle:@"Ok"
otherButtonTitles:nil];
[myAlert show];
[myAlert release];
} else{
/// Whatever you want
}


//Class.h
#import "Reachability.h"
#import

- (BOOL)connected ;

//Class.m
- (BOOL)connected
{
Reachability *reachability = [Reachability reachabilityForInternetConnection];
NetworkStatus networkStatus = [reachability currentReachabilityStatus];
return !(networkStatus == NotReachable);
}
Then, we can use this whenever we want to see if there is a network
if(![self connected])
{
// not connected
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"No network connection"
message:@"You must be connected to the internet to open the website."
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
[alert release];
} else
{
// connected, do some internet stuff

}


Iphone Code for MEDIA (PLAYING AUDIO AND VIDEO)

$
0
0

MediaViewController.h

#import <UIKit/UIKit.h>

#import <MediaPlayer/MediaPlayer.h>

#import <AVFoundation/AVFoundation.h>

@interface MediaViewController : UIViewController {

            AVAudioPlayer *audioPlayer;

            IBOutlet UISlider *sliderVolume;

            IBOutlet UIProgressView *progressAudio;}

-(IBAction)playVideo;

-(IBAction)playAudio;

-(IBAction)pauseAudio;

-(IBAction)backPlay;

-(IBAction)forwardPlay;

-(IBAction)changeVolume;

@end

MediaViewController.m

#import "MediaViewController.h"

@implementation MediaViewController

-(IBAction)playVideo{


NSString *strVideoPath =  [[NSBundle mainBundle]pathForResource:@"rangam nemali kjannula" ofType:@"mp4"];

NSURL *url = [NSURL fileURLWithPath:strVideoPath];

MPMoviePlayerController *player = [[MPMoviePlayerController alloc]initWithContentURL:url];

self.view = player.view;

[player play];  }

-(IBAction)playAudio{         [audioPlayer play];  }

-(IBAction)pauseAudio{      [audioPlayer pause];}

-(IBAction)backPlay{

      audioPlayer.currentTime-=10;

            [audioPlayer play];  }

-(IBAction)forwardPlay{

         audioPlayer.currentTime+=10;

            [audioPlayer play];  }

-(IBAction)changeVolume{

       audioPlayer.volume  = sliderVolume.value;  }

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.

- (void)viewDidLoad {

    [super viewDidLoad];

NSString *strVideoPath =  [[NSBundle mainBundle]pathForResource:@"rangam nemali kjannula" ofType:@"mp4"];

            NSURL *url = [NSURL fileURLWithPath:strVideoPath];

            NSError *err;

            audioPlayer = [[AVAudioPlayer alloc]initWithContentsOfURL:url error:&err];

[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(updateProgress) userInfo:nil repeats:YES]; }

-(void)updateProgress{

progressAudio.progress = audioPlayer.currentTime/audioPlayer.duration; }

Some Useful expressions while presenting your resume for video recording:

$
0
0

I am Rakesh Manohar. I am doing my final semester in Computer Science Engineering from Sasi Institute of Technology and Engineering.  I have got more than 70% consistently throughout my career.
I hail from a farmer’s family.
I have a strong passion for computers and programming since my childhood. My interest in computers has made me choose Computer Science Engineering in my graduation.
I am much interested in programming side. I like Java and C++ very much. In fact I have used them when I did my project in my third year and using the same in my final project as well.
I would like to launch my career as a software developer in a reputed Multi National Company.
I am strong in _____________________________________________________ (mention your technical skills) and my favourite subject is ________________
I am good at communication, team building and presentation skills.
My biggest strength is: my commitment sometimes it is also my weakness, that is  I can not sleep if I can not complete my work in time or successfully.
By biggest strengths are my adaptability and ability to work under pressure. I can easily adapt myself and work under pressure.

My hobbies are:  playing cricket
_______________________________________________________________________
Other useful expressions:
I can manage my time efficiently. I always meet deadlines and I have never asked for extension of time to submit my records or project work.
I prepare a ‘to do list’ every week and every day and act accordingly.
I prioritize my work into the most difficult work or urgent task first and other tasks later.
It gives me a clear idea about how I am spending my time and I am always ahead of others in completing my tasks successfully.

Dxcorr Sample Interview Questions | FAQ's in VLSI CAMPUS | VLSI Interview Topics

$
0
0
1. Define Set-up Time and Hold Times.

2. Differentiate between Flip-Flop and Latch.

3. Techniques to overcome Setup/hold time violations.

4. Definition for Threshold Voltage.

5. Layout precautions to be observed for Analog/Mixed Signal Layout.

6. A few questions on Operational Amplifiers.

7. Define DRC and LVS.

8. ASIC Design Flow.

9. Flash A/D converters (Since this was one of my projects)

10. They didn’t ask any questions related to the tools, but just asked if I was familiar with Cadence Virtuoso and Diva.

Web Services Interview Questions - IPHONE development | Iphone Web Services

ATRIA LOGIC INTERVIEW QUESTIONS

$
0
0

1.    Project ( They are expecting the project to be done on FPGA minimum ).

2.    Design a circuit that decides whether an input infinite serial stream of bits is divisible by 5 or not. (            For eg. 10 is not div but with the next bit 101 is div and so on). Atleast explain it in the form of a state diagram.

3.    What is the maximum frequency of your project? Can't you still increase it? How/Why? ( Yes/No )

4.    What are setup and hold times?

5.    How many clocks did your project use? How did you handle them?

6.    What are the default values of reg and wire data types?

7.    What is the difference between blocking and non blocking assignment?  ( Both conceptual and
       hardware based ).

8.    How do you decide whether to use Synchronous and Asynchronous resets?


  •  Questions asked mostly on project ( In depth )
  •  No questions asked on tools.

How to Make iPhone Apps With No Programming Experience

$
0
0

The iPhone has taken the mobile industry by storm, and has positioned itself as the cool new most-needed gadget. Part of what makes the iPhone so popular is the abundance of apps that are available to iPhone users. There are literally lots of apps, and new ones keep coming day by day, letting iPhone users play games, check weather, edit photos, create music, and much more: all without ever lifting their gaze from the glow of the iPhone screen.
So start your new dream App without any Programming knowledge.Lets go into the book!..





Job Interview Sucess System

Crack the Interview

Winit interview questions | winit software interview questions

$
0
0

Phase-1
Q1) Introduce yourself
Q2) Why should I hire you?
Q3) How many companies did you attended so far?
Q4) What are the reasons for your rejection in those companies?
Q5) You are 2011 passed out but why did not get the job till now?
Q6) Are you willing to work hard and eager to learn new things?
Q7) There will be upside downs in future while you are learning. Are you ready to sustain with those?

Phase-2
Q1) Tell me about yourself
Q2) Tell me about your family
Q3) Tell me about your good qualities
Q4) What do you know about the company?
Q5) Are you ready to work with us and accepting our terms and conditions?

UTC interview questions

$
0
0

First 3 rounds:
1. volatile. purpose? avoiding time optimization or Memory optimization?
2. What are the synchronisation mechanisms used? 
    semaphores vs Mutex? Question extended to processes waiting on semaphore?
3. How shared memory is implemented?
Adv and disadv of shared memory?
4. Have u ever worked on pipes?
5. Working mechanism of message Queues. Disadv of message queues?
6. different storage sections 
7. protected vs private?
8. what is polymorphism? How do u achieve it?
9. Late binding vs Early binding?
10. What is the mechanism involved in late binding? (VTABLE concept) 
11. Single ton pattern
12. OS vs RTOS
13. what is Priority Inversion?
14. How do u achieve class behavior(data members + Member functions) in C? Similar to the lines of how to declare a function in structure in C?
       Write a small piece of code to do it and access it? 
15.  What is an Exception? Why we can't handle asynchronous exceptions in C++?
16. write the syntax for copy constructor and Assignment operator?
17. (i)A ob1 = ob2;  which one is called ? copy contructor or Assignment operator?
       (ii)A ob1; A ob2;
       ob2 = ob1; which one is called?
18.  What is Context switching? what OS do while switching?
19. Few questions on structure padding. 
20. Program to interchange elements in a Matrix?
21. Reversing a Linked List.
22. Write a pgm to know whether a system is little endian or big endian? extended the question to are there any alternate methods?
23. memory leaks?
24. select() system call? 
25. Purpose of virtual destructor?
26. Can we have virtual constructor?
27. Have u worked on UML? Represent diagramatically a composition?
28. Questions on Inheritance Acess specifier modes? 
How the base class members are inherited, When the acess specifier is public/private/Protected?
29. Abstract classes? When do u go for an abstract class?
30. What happens when u don't define a pure virtual function in the derived class?
31. Interrupt Handling mechanism(RTOS)?
32. Explain the mechanism of RS232?
33. Overloading postfix and prefix operators?
34. system calls on Client side and server side(Socket Programming)?
35. Different states of a Process?
36. Syntax of function pointers?
37. What is preemptive based scheduling?(RTOS)
38. What is encapsulation? What is data abstraction?
39. Shallow copy vs Deep copy?
40. What do the C++ compiler provide u by default?
41. Size of an empty class?
42. Object Slicing in C++?
43. Stack Unwinding in C++?
44. What is Segmentation fault? Questions related to Core dump.
45. diamond problem in C++? How to resolve it?
46. questions related to malloc(), calloc()  and realloc()
47. const char*p;
       char const *p;
       char *const p;
48. Overloading new operator?
49. what is a Smart pointer in C++?
50. how do u allocate memory for a double pointer?
51. What is a Race Condition? extended the question to thread-safety?
52. Indirect question referrring to Reference Counting in C++?
53. What is double buffering technique?
54. fork() system call?
55. What is Deadlock? How do u prevent it?

4th Round - All Process related 
1. Have u worked on Interrupt Handlers?
2. What are the design methodologies used?
3. Different diagrams in UML?
3. How do the Code Review process is done?
4. He has given a scenario and asked me to design it.

AMI interview Questions

$
0
0

for me they asked only C

1) on libraries (all commands for creation , linking and all)
2) on makefile and make commmand 

3) study the concept of inclusion of header file and standard header file n all related 

4) on pointers 

5) all linked list concepts and related logics ........


             he covered all concepts in C for me ?

ALL THE BEST !..

Reference to prepare an interview | Interview Links | Interview Reference Links

$
0
0
LINUX: JAVA: C programming and data structures:

http://www.youtube.com/playlist?list=PLD9781AC5EBC9FA16

heap sort:http://www.youtube.com/watch?v=9GK2Aw8GC5E&feature=relmfu
DIGITAL: Networking----CCNA(URDU) SOcket Programming TCP/IP: UDP:
RTOS: operating system:
very IMPP--
operating system ppts and assignments----
http://web.cs.dal.ca/~hawkey/3120/index.html

Update gcc compiler ubuntu | Install gcc compiler ubuntu

$
0
0
Hi Ubuntu Installers,

Run the following commands on the TERMINAL to update the VI /
C++ and MAN pages in Ubuntu



  1. Boot your system to Ubuntu
  2. Connect internet to your system
  3. Log in to the system
  4. Open the Terminal
  5. Type the following commands to update the system
Terminal Commands-

To install Security Updates :

a. sudo apt-get update

To install vim :

b. sudo apt-get install vim

To install C++:

c. sudo apt-get install g++


To install MAN pages :

d. sudo apt-get install manpages manpages-dev freebsd-manpages
funny-manpages gmt-manpages man2html manpages-posix manpages-posix-dev
asr-manpages

Lipta Inc interview Questions

$
0
0
1)  Pointer to a constant sting and constant pointer difference (*p="Vector"  & p[7]="Vector")

2)    double f=89.9;
         printf"("%f", f);
        try with %g and %e ,%d also and check the o/p;

3)   which one should be used in case of constructor ?
        pointer /refrence parameter
   
          And Explain why?,supporting your answer.

4)  Explain copy constructor

5)    printf("%s","abcdefgh[4]);
        check with %c and %d

6)  Task control block(PCB)
        where it is created????
        when it destroyed ???   
       
7) If you have to design some task,,what  SCI's will you require???
        He asked like " I want to design one task ......what will i need??

8) Write a prototype of pthread_creat()
Viewing all 129 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>