• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • Gate
  • /
  • Programming

Gate Programming Sample Question with Solutions

Gate Select Another Category Programming Select Another Topic

Exam

  • ACIO 119
  • AIEEE 334
  • AMCAT 2636
  • Assessment 108
  • Bank 22
  • CAT 988
  • CMAT 82
  • Cocubes 39
  • Elitmus 2952
  • Exam 39
  • Gate 846
  • GMAT 107
  • Gmate 29
  • GRE 469
  • IIT-JEE 471
  • ITC 28
  • Maths Olympiad 205
  • MBA 3481
  • MCA 32
  • Other 159
  • Others 25
  • R-SAT 111
  • Self 68

Gate Question Topics

    Category (172)

    General Ability (20)

  • General Knowledge (5)
  • HR Interview (166)

  • Interview (7)
  • Logical Reasoning (36)

  • Blood Relations (8)
  • Coding Decoding (8)
  • Cryptography (3)
  • Decision Making and Problem Solving (1)
  • Direction Sense (1)
  • General Mental Ability (2)
  • Letter Arrangement (1)
  • Mathematical Reasoning (3)
  • Number Series (3)
  • Numerical Ability (131)

  • Age Problem (2)
  • Algebra (9)
  • Alligation or Mixture (1)
  • Area and Volume (3)
  • Averages (5)
  • Co-ordinate geometry (1)
  • Complex Numbers (1)
  • Data Interpretation (2)
  • Geometry (1)
  • Number System (9)
  • Percentage (5)
  • Permutation and Combination (6)
  • Probability (10)
  • Profit and Loss (4)
  • Quadratic Equations (1)
  • Ratio and Proportion (2)
  • Sequence and Series (4)
  • Simple & Compound Interest (1)
  • Time and Work (15)
  • Time Distance and Speed (5)
  • Trigonometry (2)
  • Programming (13)

  • Arrays (1)
  • Database (3)
  • Technical (1)
  • Verbal Ability (13)

  • Antonyms (1)
  • Miscellaneous (2)
  • Sentence Completion (1)
  • Spotting Errors (4)
  • Synonyms (2)
Keep an EYE (0)
Solved Question (1) UnSolved Question (12)
Pages: 212NextLast
Advertisements

(#M40154104) GATE QUESTION Hashing Keep an EYE Keep an eye puzzle Keep an eye puzzle

Consider a hash table with 100 slots. Collisions are resolved using chaining. Assuming
simple uniform hashing, what is the probability that the first 3 slots are unfilled after the first
3 insertions?

Asked In Gate premlata (10 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40109884) GATE QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

There is a full binary tree with 200 leaf nodes then find the number of such nodes who has exactly 2 child nodes.

Asked In Gate Sourabh Prasad (10 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (1)   (0) Submit Your Solution
Advertisements

(#M40109882) GATE QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

int get(int n)
{
if n<1 get(n-1);
get(n-3);
return (0);
}

If get(6) is called through main then how many times get() function is called?

Asked In Gate Sourabh Prasad (10 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40104601) GATE QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Assume that the memory is word addressable. The number of Memory references for accessing the data in executing the program completely is
(A) 10
(B) 11
(C) 20
(D) 21

Asked In Gate Ponni (10 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40040800) GATE QUESTION Digital Logic Keep an EYE Keep an eye puzzle Keep an eye puzzle

Number of Address lines required for 1MB?

a.) 16
b.) 20
c.) 18

Asked In Gate Sarabeshwar (11 years ago)
Solved AMIT SARKAR Read Solution (3)
Is this Puzzle helpful?   (25)   (4) Submit Your Solution

(#M40040799) GATE QUESTION Operating System Keep an EYE Keep an eye puzzle Keep an eye puzzle

Percentage of Error Distribution in Coding Phase?

a.) 20
b.) 30
c.) 50
d.) 70

Asked In Gate Sarabeshwar (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40040798) GATE QUESTION Operating system Keep an EYE Keep an eye puzzle Keep an eye puzzle

Error Distribution in coding phase?

Asked In Gate Sarabeshwar (11 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40037610) GATE QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Consider the following C function:
int f(int n)
{
static int are = 0;
If (n < = 0) return 1;
If (n > 3)
{ r = n;
return f (n – 2) + 2;
}
return f(n – 1) + r;
}
What is the value of f(5)?

Asked In Gate Hardip Bhalani (11 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (3)   (1) Submit Your Solution Database

(#M40037385) GATE QUESTION binary search tree Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which method is used by binary search tree ?
1- Dynamic programming
2-Divide and concquer
3- greedy algorithms
4- Broute force

Asked In Gate TARUN VISHNOI (11 years ago)
Unsolved Read Solution (6)
Is this Puzzle helpful?   (4)   (6) Submit Your Solution Technical

(#M40037381) GATE QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which algorithm will perform better ? O(n^2) or O(n^3)

1. O(n^2)
2. O(n^3)
3. Depends upon problem instance.
4. Can't say.

Asked In Gate TARUN VISHNOI (11 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution
Keep an EYE (0)
Solved Question (1) UnSolved Question (12)
Pages: 212NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

As for everything else, so for a mathematical theory: beauty can be perceived but not explained.

Arthur Cayley

Learn mathematics better and solve your own problems.

K. Anandakumar

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 5 years ago

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+Engineers
  • 759K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com