CS-Interview Questions with Solutions

ms_cs
@ms-cs-Ab8svl Oct 15, 2024

This thread contains solutions to interview questions discussed in the thread

#-Link-Snipped-#

Hope this thread will helps to a New members of CE and those who is preparing for interview.


PS:
this thread will contains the questions with corresponding correct
solutions. no more discussions here about the questions.

here the question with solution , will be updated only after the question at the thread #-Link-Snipped-# is answered

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • ms_cs

    @ms-cs-Ab8svl Jun 30, 2009

    No-1
    [ java ]
    ++i+ ++j is equivalent to
    (a)i+j+1
    (b)i+j+2
    (c)i+j
    (d)can't be compiled

    Answer d

    No-2
    will be updated

    No-3
    Randomization is good for which algorithm(quick sort, heap sort, selection sort, hashed table, ….

    Answer : quicksort


    No-4
    find legal statements [ java]
    (a)int a=30;
    (b)float f=1.4;
    (c)double d=34.5;
    (d)byte b=128;

    Answer : a & c

  • ms_cs

    @ms-cs-Ab8svl Jun 30, 2009

    No-5

    the sorting method which don't generally use recursion
    (a)heap sort
    (b)bubble sort
    (c)quick sort
    (d)strand sort

    Answer : bubblesort