Question 1)Read the data from one file and remove all the
duplicated words and generate an output file containg only
using words.Program should also print number of occurance
of each words on standard output.(Program must be use STL
and iostream object).
Question 2)Write a program to convert the lower case
contents of file to upper case using STL.
Question 3)What is the output of this problem.
int i=12;
int &r =i;
r+r/4;
int +p =&r;
int *p = &r;
P+=r;
return 1;
Answer :a)12 b)17 c) 30 d)24 E)15
Question 4)

#include
#include
#include
void main()
{
char srcstr[30],desstr[30];
int i,len;
clrscr();
cout<<"\nenter the string\n";
cin>>srcstr;
len=strlen(srcstr);
for(i=0;srcstr[i]!='\0';i++)
{
desstr[--len]=srcstr[i];
}
desstr[i]='\0';
cout<<"\nreversed string is\n";
for(i=0;desstr[i]!='\0';i++)
{
cout< }
getch();
}

Answer :
A) string output b)tuptuo gnirts c) string d)output
Question 5)
Class Test
{
static const Tk=LEN;
int q;
public:
foo(intx =LEN):q(x){};
TGet Q() const { return q:}
void call test
Foo<long :9> foo(10);
std::const<< foo.Getq();
Answer: 7,8,9,10,11

question 6)
class A
{
int a;
char b;
};
class B:public A
{
char b;
int a;
};
What is the size?
Answer
a)5 bytes for class A and 5 bytes class B
b)4 bytes for class A and 8 bytes class B.
c)....
d)....

Answer Posted / manoj kumar kar

Question 3)What is the output of this problem.
int i=12;
int &r =i;
r+r/4;
int *p = &r;
P+=r;
return i;
Answer :a)12 b)17 c) 30 d)24 E)15
// Answer will be 12.
r is a reference to i so both r and i will be 12 at first.
r+r/4 is meaningless as there is no assinment.
p is a pointer so increamenting p will not manipulate the
value stored at p(The value of r will not be changed if we
increase p if we want to increase the value of r then we
have to do (*p)+=r).
Qustion 4:
//It will output the reverse string.
Question 5:
Not clear with the question.
Question 6:
//Space is always reserved for base class variables in
derived class objects.So if sizeof(int)=4 and sizeof(char)=1
then answer will be
5 Bytes for Class A and 10 Bytes for Class B.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

1383


How do I convert a stl file?

568


In what scenario does the Logical file and Physical file being used?

2328


Define stl.

778


write a program that will accept a number and print.its equivalent in words the maximum input number is 9999

2504






What is the use of stl?

639


Is there any error below, its a code to delete all entires from a map #include #include iostream.h int main() { int i =0; map TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

1896


how to making game in c++ ?

2183


Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister

1664


Here are the questions and paper pattern from a Birlasoft previous placement paper held at Kolkata, West Bengal. There are two sections 1. Technical questions - 20 2. Aptitude questions - 25 Birlasoft Technical Multiple Choice Questions: Largest integer can be written from 8 bits is a. 256 b. 255 c. 8 d. 10 Change a hexadecimal no to octal How many address lines needed to pass 1MB of data. What is the function of the modulus operator in most language. a) Sets a system environmental value to either base 10 ,base 8 or base 16 b) Returns the remainder after dividing one number by another c) Returns the first argument raised to the second argument power d) Prints out the actual code written to standard output rather than executing the code class professor{} class teacher: public virtual professor{}; class researcher: public virtual professor {} class myprofessor :public teacher,public researcher {}; Referring to the sample code above ,if an object of class myprofessor were created ,how many instances of professor will it contain? a) 0 b) 1 c) 2 d) 3 Modern RDBMS s perfom the following the following functionc except _______. a) Force column values in one table to match any of the values in a column of another table b) Automatically replicate data on another server c) Automatically create new indexes based on query history d) Prevent unauthorized users from accessing data at the firls level RDBMS triggers are typically bound to a _________and one or more a) Table,SQL statement types b) SQL statement type,user c) Column,rows d) User, table What relationship is resolved by an intersecting or associative entity ? a) Recursive b) Mandatory one to one c) Many to Many d) One to One Make a copy of file upper in the directory two levels up . a) jump -2 upper b) cp upper ../..(answer) c) cp upper -2/ d) None of the above i = 0; j = 0; for(j=1;j<10;j++) i=i+1; In the (generic) code segment above what will be the value of the variable i at completion ? a) 0 b) 1 c) 3 d) 9 e) 10 Which of the following statements is true when a derivation inherits both a virtual and non-virtual instance of a base class ? a) Each derived class object has base objects only from the non virtual instance b) Each base class object has derived objects only from the non-virtual instance c) Each derived class object has base objects only from the virtual instance d) Each derived class object has a base object from the virtual instance and a base object from non-virtual instance. class Word { public: Word(const char*,int = 0); }; Referring to the sample code above what is the minimum number of arguments required to call the constructor ? a) 0 b) 1 c) 2 d) 3 What is the function of the modulus operator in most languages ? a) Sets a system environmental value to either base 10 ,base 8 or base 16 b) Returns the remainder after dividing one number by another c) Returns the first argument raised to the second argument power d) Prints out the actual code written to standard output rather than executing the code lass professor{} class teacher: public virtual professor{}; class researcher: public virtual professor {} class myprofessor :public teacher,public researcher {}; Referring to the sample code above ,if an object of class ? myprofessor? were created ,how many instances of professor will it contain? a) 0 b) 1 c) 2 d) 3 Modern RDBMS?s perfom the following the following functionc except a) Force column values in one table to match any of the values in a column of another table b) Automatically replicate data on another server c) Automatically create new indexes based on query history d) Prevent unauthorized users from accessing data at the firls level Which is not the characteristics of a view ? a) Consumes Disk space for data b) Multiple tables c) Multiple rows d) Updateable Technical Questions for computer science engineering students placement paper - cse branch tech / technical interview and written test paper questions from sql, rdbms, queries, c language, programming, etc. The questions are multiple choice / objective type. RDBMS triggers are typically bound to a ________and one or more ________ a) Table,SQL statement types b) SQL statement type,user c) Column,rows d) User, tables What relationship is resolved by an ?intersecting? or ? associative? entity ? a) Recursive b) Mandatory one to one c) Many to Many d) One to One Make a copy of file ?upper? in the directory two levels up . a) jump -2 upper b) cp upper ../.. c) cp upper -2/ d) None of the above Birlasoft Aptitude Section Questions: Question like A is engg. B is doctor C is artist etc then few condition related to them you have give answer to 4 or 5 qs on these conditions . same as above with different data and conditions. 3 qs onfinding error in english sentences If father is three times as old as son . 5 years ago he was 4 times age of his son what is son age. Same as above but now daughter and mother joined in and age in question is that of daughter. A figure is given find no of traingles in this figure Same as above but figure is diffrent and find no of squares and triangles. See other latest free online Birlasoft India placement exam test papers here with technical hr interview candidate real experiences from all over india - submitted by college freshers and company campus recruitment drives.

3833


What is stl in oop?

681


How connect plc and pc through software

1923


What is a list in c++ stl?

696


When did c++ add stl?

740


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1978