Top Banner

of 16

Epicsystems Inc Sample Programming Placement Paper Level1

Apr 04, 2018

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    1/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    TITLE: Epicsystems Inc Sample Programming Placement Paper Level1 (Bolded option is your answer)1. Which of the following is the correct ways to set a value 3.14 in avariable pi such that it cannot be modified?

    A float pi = 3.14F; B #define pi3.14F;

    C const float pi =3.14F;

    D const floatpi; pi = 3.14F;

    2. Which of the following statement correctly assigns a value 33 to avariable c?

    byte a = 11, b = 22, c;

    A c = (byte) (a +b);

    B c = (byte) a+ (byte) b;

    C c = (int) a + (int) b; D c = (int)(a +b);

    3. If a variable is a pointer to a structure, then which of the followingoperator is used to access data members of the structure through thepointer variable?A . B & C * D ->

    4. What does the following C#.NET code snippet will print?

    int i = 0, j = 0;

    label:i++;

    j+=i;if (i < 10)

    {Console.Write(i +" ");goto label;

    }

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    2/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    A Prints 1 to 9 B Prints 0 to 8 C Prints 2 to 8 D Prints 2 to 9

    5. What would be the equivalent pointer expression for referring thearray element a[i][j][k][l]

    A ((((a+i)+j)+k)+l) B*(*(*(*(a+i)+j)+k)+l)

    C (((a+i)+j)+k+l) D ((a+i)+j+k+l)

    6. The operator used to get value at address stored in a pointer variableis

    A * B & C && D ||

    7. Which of the following statements is correct about the C#.NETprogram given below?

    namespace IndiabixConsoleApplication{

    class Baseclass

    { int i;public Baseclass(int ii){

    i = ii;Console.Write("Base ");

    }}

    class Derived : Baseclass{

    public Derived(int ii) : base(ii){

    Console.Write("Derived ");

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    3/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    }}class MyProgram{

    static void Main(string[ ] args){

    Derived d = new Derived(10);}

    }}

    A The programwill workcorrectly only if we implementzero-argumentconstructors inBaseclass as wellas Derived class.

    B Theprogram willoutput:Derived Base

    C The pr ogram willreport an error inthe statementbase(ii).

    D Theprogram willoutput: BaseDerived

    8. What does the following declaration mean?int (*ptr)[10];

    A ptr is array of pointers to 10integers

    B ptr is apointer to anarray of 10integers

    C ptr is an array of 10 integers

    D ptr is anpointer toarray

    9. For the code snippet shown below, which of the followingstatements are valid?

    public class Generic{

    public T Field;

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    4/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    public void TestSub(){

    T i = Field + 1;}

    }class MyProgram{

    static void Main(string[] args){

    Generic gen = new Generic();

    gen.TestSub();}}A Addition willproduce result 1.

    B Result of addition issystem-dependent.

    C Program willgenerate run-timeexception.

    D Compilerwill report anerror:Operator '+'is not defined

    for types Tand int.

    10. Which of the following statements is correct about the C#.NETprogram given below if a value "ABCD" is input to it?

    using System;namespace IndiabixConsoleApplication{

    class MyProgram{

    static void Main(string[] args){

    int index;

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    5/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    int vat = 88;int[] a = new int(5];try{

    Console.Write("Enter a number: ");index = Convert.Toint32(Console.ReadLine());a[index] = val;

    }catch(Exception e){

    Console.Write("Exception occurred");}Console.Write("Remaining pro gram");

    }}

    }A It will output:Exception

    occurred

    B It willoutput:

    Remainingprogram

    C It will output:Remaining program

    Exception occurred

    D It willoutput:

    ExceptionoccurredRemainingprogram

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

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

    12. The library function used to find the last occurrence of a characterin a string is

    A strnstr() B laststr() C strrchr() D strstr()

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    6/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    13. Which of the following function is used to find the first occurrenceof a given string in another string?

    A strchr() B strrchr() C strstr() D strnset()

    14. Which of the following function is more appropriate for r eading in amulti-word string?

    A printf(); B scanf(); C gets(); D puts();

    15. Which of the following statements should be added to thesubroutine fun( ) if the C#.NET code snippet given below is to output 913?

    class BaseClass{

    protected int i = 13;}class Derived: BaseClass

    { int i = 9;public void fun(){

    // [*** Add statement here ***]}

    }A

    Console.WriteLine(base.i + " " + i);

    B

    Console.WriteLine(i + " " +base.i);

    C

    Console.WriteLine(mybase.i + " " + i);

    D

    Console.WriteLine(i + " " +mybase.i);

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    7/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    16. Which of the following statements is correct about the C#.NETprogram given below if a value "6" is input to it?

    using System;namespace IndiabixConsoleApplication{

    class MyProgram{

    static void Main (string[] args){

    int index;int val = 66;int[] a = new int[5];try{

    Consote.Write("Enter a number: ");index = Convert.ToInt32(Console.ReadLine());a[index] = val;

    }catch(Exception e){

    Console.Write("Exception occurred ");}Console.Write("Remaining program ");

    }}

    }A It will output:Exceptionoccurred

    B It willoutput:Remainingprogram

    C It will output:Exception occurredRemaining program

    D It willoutput:Remainingprogram

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    8/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Exceptionoccurred

    17. In which stage the following code#includegets replaced by the contents of the file stdio.hA During editing B During

    linkingC During execution D During

    preprocessing

    18. Which of the following is the correct order of evaluation for thebelow expression?

    z = x + y * z / 4 % 2 - 1A * / % + - = B = * / % + - C / * % - + = D * % / - + =

    19. Which of the following correctly shows the hierarchy of arithmeticoperations in C?

    A / + * - B * - / + C + - / * D / * + -

    20. Which of the following is the correct order if calling functions in thebelow code?a = f1(23, 14) * f2(12/4) + f3();A f1, f2, f3 B f3, f2, f1 C Order may vary

    from compiler tocompiler

    D None of above

    21. Which of the following is the correct usage of conditional operatorsused in C?

    A a>b ? c=30 :c=40;

    B a>b ? c=30; C max = a>b ?a>c?a:c:b>c?b:c

    D return(a>b)?(a:b)

    22. Which of the following statements is correct about the C#.NET codesnippet given below?

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    9/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    interface IPerson{

    String FirstName{

    get;set;

    }String LastName{

    get;set;}void Print();void Stock();int Fun();

    }A Properties

    cannot bedeclared insidean interface.

    B This is a

    perfectlyworkableinterface.

    C The properties in

    the interface musthave a body.

    D Subroutine

    in theinterfacemust have abody.

    23. Which of the following range is a valid long double (Turbo C in 16 bitDOS OS) ?

    A 3.4E-4932 to1.1E+4932

    B 3.4E-4932to 3.4E+4932

    C 1.1E-4932 to1.1E+4932

    D 1.7E-4932to 1.7E+4932

    24. Which of the following will be the correct output for the C#.NETprogram given below?

    namespace IndiabixConsoleApplication

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    10/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    {class Sample{

    int i;Single j;public void SetData(int i, Single j){

    this.i = i;this.j = j;

    }

    public void Display(){Console.WriteLine(i + " " + j);

    }}class MyProgram{

    static void Main(strin g[ ] args)

    { Sample s1 = new Sample();s1.SetData(36, 5.4f);s1.Display();

    }}

    }A 0 0.0 B 36 5.4 C 36 5.400000 D 36 5

    25. Which of the following statements is correct about the C#.NET codesnippet given below?

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    11/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    int i, j, id = 0; switch (id){

    case i:Console.WriteLine("I am in Case i");break;

    case j:Console.WriteLine("I am in Case j");break;

    }

    A The compilerwill report case iand case j aserrors sincevariables cannotbe used in cases.

    B Compilerwill report anerror sincethere is nodefault case inthe switchcasestatement.

    C The code snippetprints the result as"I am in Case i"".

    D The codesnippet printsthe result as"I am in Case

    j".

    26. We want to round off x, a float, to an int value, The correct way todo is

    A y = (int)(x +0.5)

    B y = int(x +0.5)

    C y = (int)x + 0.5 D y =(int)((int)x +0.5)

    27. The binary equivalent of 5.375 is

    A 101.101110111 B 101.011 C 101011 D None of above

    28. Which of the following statement obtains the remainder on dividing5.5 by 1.3 ?

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    12/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    A rem = (5.5 %1.3)

    B rem =modf(5.5, 1.3)

    C rem = fmod(5.5,1.3)

    D Error: wecan't divide

    29. What will you do to treat the constant 3.14 as a float?

    A use float(3.14f) B use 3.14f C use f(3.14) D use(f)(3.14)

    30. A float occupies 4 bytes. If the hexadecimal equivalent of these 4bytes are A, B, C and D, then when this float is stored in memory inwhich of the following order do these bytes gets stored?A ABCD B DCBA C 0xABCD D Depends

    on big endianor littleendianarchitecture

    31. Which of the following is the correct output for the C#.NET codesnippet given below?

    enum color{

    red,green,blue

    }color c;c = color.red;

    Console.WriteLine(c);A 1 B -1 C red D 0

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    13/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    32. Which of the following will be the correct output for the C#.NETcode snippet given below?

    enum color : int{

    red = -3,green,blue

    }Console.Write( (int) color.red + ", ");

    Console.Write( (int) color.green + ", ");Console.Write( (int) color.blue );A -3, -2, -1 B -3, 0, 1 C 0, 1, 2 D red, green,

    blue

    33. Which standard library function will you use to find the lastoccurance of a character in a string in C?

    A strnchar() B strchar() C strrchar() D strrchr()

    34. What will the function randomize() do in Turbo C under DOS?

    A returns arandom number.

    B returns arandomnumbergenerator inthe specified

    range.

    C returns a randomnumber generatorwith a randomvalue based ontime.

    D return arandomnumber witha given seedvalue.

    35. Which of the following is correct about the C#.NET snippet givenbelow?

    namespace IndiabixConsoleApplication

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    14/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    {class Baseclass{

    public void fun(){

    Console.WriteLine("Hi" + " ");}public void fun(int i){

    Console.Write("Hello" + " ");

    }}class Derived: Baseclass{

    public void fun(){

    Console.Write("Bye" + " ");}

    }class MyProgram{

    static void Main(string[ ] args){

    Derived d;d = new Derived();d.fun();

    d.fun(77);}

    }}

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    15/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    A The programgives the outputas: Hi Hello Bye

    B Theprogram givesthe output as:Bye Hello

    C The programgives the output as:Hi Bye Hello

    D Error in theprogram

    36. What will be the size of the object created by the following C#.NETcode snippet?

    namespace IndiabixConsoleApplication{

    class Baseclass

    { private int i;protected int j;public int k;

    }class Derived: Baseclass{

    private int x;

    protected int y;public int z;

    }class MyProgram{

    static void Main (string[ ] args){

    Derived d = new Derived();

    }}

    }

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/
  • 7/29/2019 Epicsystems Inc Sample Programming Placement Paper Level1

    16/16

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Togetfreeupdates tomail https://groups.google.com/group/latestoffcampus Live updates on Facebook @https://www.facebook.com/LatestOffCampus

    A 24 bytes B 12 bytes C 20 bytes D 10 bytes

    http://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttp://www.latestoffcampus.com/http://www.latestoffcampus.com/http://www.latestoffcampus.com/https://groups.google.com/group/latestoffcampushttps://groups.google.com/group/latestoffcampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/https://www.facebook.com/LatestOffCampushttps://groups.google.com/group/latestoffcampushttp://www.latestoffcampus.com/