• 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

Frequently Asked 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

(#M40029646) GATE QUESTION GATE-CS Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which of the following statements are TRUE about an SQL query?
P : An SQL query can contain a HAVING clause even if it does not have a GROUP BY clause
Q : An SQL query can contain a HAVING clause only if it has a GROUP BY clause
R : All attributes used in the GROUP BY clause must appear in the SELECT clause
S : Not all attributes used in the GROUP BY clause need to appear in the SELECT clause

option
(A) P and R
(B) P and S
(C) Q and R
(D) Q and S

Asked In Gate Rats (12 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (7)   (4) Submit Your Solution Database

(#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
Advertisements

(#M40019940) GATE QUESTION DIFFERENTIAL EQUATIONS Keep an EYE Keep an eye puzzle Keep an eye puzzle

how to find differential eqn. of all conics whose axes coincide with coordinate axes??

Asked In Gate vignesh (12 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (10)   (9) Submit Your Solution Arrays

(#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

(#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

(#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

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

Given digits 2,2,3,3,4,4,4,4 how many distinct 4 digit numbers greater than 3000 can be formed?

Asked In Gate Devendra Marghade (13 years ago)
Unsolved Read Solution (6)
Is this Puzzle helpful?   (44)   (13) Submit Your Solution Database

(#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

(#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

(#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

mathematics never dies because it always stays in the minds and souls of people who love mathematics. Those people will not let maths die instead they will die.................

D . kalyan kumar

MATHEMATICS is a great motivator for all humans.. Because its career starts with "ZERO" but it never end(INFINITY)..

Vignesh R

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