• 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
  • /
  • C++

Frequently Asked C++ interview questions and answers for freshers Page 12

C++ Select Another Category Select Another Topic

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 261
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70

C++ Question Topics

    Category (1)

    General Ability (4)

  • General Knowledge (2)
  • HR Interview (1)

  • Interview (1)
  • Logical Reasoning (5)

  • Blood Relations (3)
  • Coding Decoding (1)
  • General Mental Ability (1)
  • Numerical Ability (1)

  • Area and Volume (1)
  • Programming (67)

  • Basics (1)
  • Database (2)
  • Definition (16)
  • Program (14)
  • Technical (32)
  • Variables (1)
Keep an EYE (0)
Solved Question (1) UnSolved Question (447)
Pages: 45FirstPrev891011121314151617NextLast
Advertisements

(#M40028195) C++ QUESTION C++ Keep an EYE Keep an eye puzzle Keep an eye puzzle

what is the difference between method overloading and method
overriding?

Asked In C++ MAN (12 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40030280) C++ QUESTION C++ Keep an EYE Keep an eye puzzle Keep an eye puzzle

If there is one class template which has one
static member variable, that static variable will
belong to:
a) Every instance of class template will share the
same copy of static variable.
b) Every instance of class template will have its
own copy of๔€€ static variable.
c) Compilation error

Asked In C++ MAN (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (1) Submit Your Solution
Advertisements

(#M40038181) C++ QUESTION Norvig Spellinbg Corrector Keep an EYE Keep an eye puzzle Keep an eye puzzle

What I wanted to do here is to develop, in less than a page of code, a toy spelling corrector that achieves 80 or 90% accuracy at a processing speed of at least 10 words per second.

So here, in 21 lines of Python 2.5 code, is the complete spelling corrector:

import re, collections

def words(text): return re.findall('[a-z]+', text.lower())

def train(features):
model = collections.defaultdict(lambda: 1)
for f in features:
model[f] += 1
return model

NWORDS = train(words(file('big.txt').read()))

alphabet = 'abcdefghijklmnopqrstuvwxyz'

def edits1(word):
splits = [(word[:i], word[i:]) for i in range(len(word) + 1)]
deletes = [a + b[1:] for a, b in splits if b]
transposes = [a + b[1] + b[0] + b[2:] for a, b in splits if len(b)>1]
replaces = [a + c + b[1:] for a, b in splits for c in alphabet if b]
inserts = [a + c + b for a, b in splits for c in alphabet]
return set(deletes + transposes + replaces + inserts)

def known_edits2(word):
return set(e2 for e1 in edits1(word) for e2 in edits1(e1) if e2 in NWORDS)

def known(words): return set(w for w in words if w in NWORDS)

def correct(word):
candidates = known([word]) or known(edits1(word)) or known_edits2(word) or [word]
return max(candidates, key=NWORDS.get)
The code defines the function correct, which takes a word as input and returns a likely correction of that word. For example:

>>> correct('speling')
'spelling'
>>> correct('korrecter')
'corrector'

Asked In C++ Pawan Pandey (11 years ago)
Unsolved
Is this Puzzle helpful?   (1)   (0) Submit Your Solution Program

(#M40030317) C++ QUESTION C++ Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is the difference between the functions memmove() and
memcpy()?

Asked In C++ MAN (11 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (1)   (1) Submit Your Solution Technical

(#M40030316) C++ QUESTION C++ Keep an EYE Keep an eye puzzle Keep an eye puzzle

what are the types of file?

Asked In C++ MAN (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (1) Submit Your Solution

(#M40030313) C++ QUESTION C++ Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is FILE??

Asked In C++ MAN (11 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40030311) C++ QUESTION C++ Keep an EYE Keep an eye puzzle Keep an eye puzzle

How is fopen()used ?

Asked In C++ MAN (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Technical

(#M40030310) C++ QUESTION C++ Keep an EYE Keep an eye puzzle Keep an eye puzzle

How is a file closed ?

Asked In C++ MAN (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40030309) C++ QUESTION C++ Keep an EYE Keep an eye puzzle Keep an eye puzzle

Is it possible to get the source code back from binary file?

Asked In C++ MAN (11 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (2) Submit Your Solution Technical

(#M40030308) C++ QUESTION C++ Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is the purpose of ftell ?

Asked In C++ MAN (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Technical
Keep an EYE (0)
Solved Question (1) UnSolved Question (447)
Pages: 45FirstPrev891011121314151617NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

"Pure mathematics is, in its way, the poetry of logical ideas."

Albert Einstein

A mathematician is a machine for turning coffee into theorems

ALFRED RENYI

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