Write a program to accept a number and to print numbers in
pyramid format?
for eg:for a no. 5
1
212
32123
4321234
543212345
7
sir plz send me a set of questions that been frequently
held in written examination during campus selection.
94
what is oppes
92
Any one help me plzzzz.....
i have an assignment......
that is
______*********_______
Write a program that takes an equation as a string and does
the following:
Solve 8 parts to achieve 100% 1 - 5 are compulsory.
Input: 2x^2+3x+4=0
1) read a quadratic equation
2) print its coefficients (coefficients range is 0 to 9)
3) print the solution of the equation
4) tackle imaginary solution e.g. ( (2+3i), (2-3i) )
5) allow spaces within the input
6) after solving one equation; ask for an other, terminate
on empty line. *
7) tackle negative values as well *
8) tackle more than one values of same exponent (e.g. 2x^2
+ 3x^2 + 4x + 3 = 0)*
9) use strtok *
10) print the solution in fractions e.g. 1.5 should be
printed as (1)1/2 *
11) coefficient can be greater than 9**
12) values on both sides of the ‘=’ sign**
13) plot the graph of the polynomial**
14) use a compiler other than Borland**
15) submit before May 25, 2009 11:59 PM **
_______******________
plz send me c++ code at
sweety.alvi@gmail.com
Am studying basic c++ programming, have been given the
following assignment. Design a linear program to calculate
the maximum stress a material can withstand given a force
and a diameter of a circle. To find the required area pi
should be defined.
Have most of the program sorted out but am at a loss as to
how to show the calculations required. Can anyone help?
155
Write a C++ program that asks the user to choose a number
between 1 and 1000. Then,
your program should be able to guess the number by asking
the user no more than 10 yes/no
questions. Use a while loop in your program
3
C#.net Interview Question
A=10
B=5
C=A+B
Print C
The above will be given in a multiline textbox. You need to
parse the above input, store values for A,B&c. And you have
to display the value of C.
write a code for this:trailer recordId contains a value
other than 99, then the file must error with the
reason ‘Invalid RECORD_ID’(User Defined Exception).
115
How the compilers arranges the various sections in the
executable image?
288
class CTest
{
public:
void someMethod()
{
int nCount = 0;
cout << "This is some method --> " << nCount;
}
};
int main()
{
CTest *pctest;
pctest->someMethod();
return 0;
}
It will executes the someMethod() and displays the value
too. how is it possible with our creating memory for the
class . i think iam not creating object for the class.
Thanks in Advance...
Prakash
33
Explain when u will use Observer pattern and how u will
implement in c++ .
218
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include <stdio.h> //INCLUDE EVERY KNOWN HEADER FILE
#include <conio.h> //FOR ANY CASE...
#include <iostream.h>
#include <dos.h>
#include <process.h>
main()
{
int far *ptr; //FAR POINTER!!!
long address;
char key=0; //A KEY FROM THE KEYBOARD
int temp=0;
clrscr();
cout<<"Enter Address:";
cin>>hex>>address; //GETS THE ADDRESS
clrscr();
(long)ptr=address; temp=*ptr; //PUTS THE ADDRESS IN THE PTR
cout<<"["<<hex<<(unsigned long)ptr<<"]="<<*ptr<<" = "<<
(char)(*ptr);
//SHOWS: [address]=value=ASCII symbol.
while (key!=27) //WHILE YOU DONT PRESS ESC.
{
while(!kbhit()) //WHILE KEY IS NOT PRESSED
{
if (temp!=*ptr) { temp=*ptr; clrscr(); cout<<"["<<hex<<
(unsigned long)ptr<<"]="<<*ptr<<" = "<<(char)(*ptr); };
//IF THE VALUE HAS CHANGED, CLEAR THE SCREEN AND SHOW
//AGAIN
if (key=='p') {key=0; (*ptr)++; } //INCREMENT VALUE
if (key=='m') {key=0; (*ptr)--; } //DEC. VALUE
};
key=getch(); //IF A KEY IS PRESSED, READ IT FROM THE
//KEYBOARD
};
return 0; //IF ESC WAS THE KEY, EXIT THE PROGRAM
}
//---------------------------------------------------------
175
given a set based questions and 5 questions based on it
next data sufficiciency questions 2
and 2/3 english sentence completion with options very easy
and 2 synononmys
paragraph with 10 questions 10 minutes
replace =,-,*,% with -,%,+,* type questions 5
3 questions lik following
itssickhere itssickthere itssickhere istsickhere
which is nt alike the others
very easy
Visual Basic 6
All the questions are compulsory. The first five questions
shall be of 16 marks each and the last question shall be of
20 marks.
Q1. A. Discuss the various types of variables.
B. How to control the file?
Q2. A. How the image application?
B. Write short notes on trees structures work.
Q3. A. How to load and unload child forms.
B. When should we use recursive programming
Q4. A. Write short notes on "The ole control's shortcut
menu"
B. How to test the AX stat class
Q5. A. How to use advanced data-bound controls.
B. Write notes on manipulating the recordset object
Q6. A. What is script control?
B. How to down load image properties.
C. What is meant by building a recordset.
PROJECT 2002
All the questions are compulsory. The first five questions
shall be of 16 marks each and the last question shall be of
20 marks.
Q1. A. How can we determine performance standards?
B. Write note on chaining views.
Q2. A. Discuss the working with task in Gantt chart view.
B. Explain the creation project schedule.
Q3. A. What is understand in resource tracking?
B. Write short notes on Caturing Baseline.
Q4. A. How to customize workgroup message?
B. How to use hyperlink?
Q5. A. Explain the installation of project server?
B. Discuss the working with to-do lists.
Q6. A. Explain the working of templates?
B. What is visual basic?
C. Write shortnotes on user forms.
PROGRAMMING WITH C++
All the questions are compulsory. The first five questions
shall be of 16 marks each and the last question shall be of
20 marks.
Q1. A. What is unary operator? List out the different
operators involved in the unary operator.
B. What is an adjust field format flag?
Q2. A. Distinguish between a # include and #define.
B. Can a list of string be stored within a two dimensional
array?
Q3. A. Explain how a pointer to function can be declared in
C++?
B. List the merits and demerits of declaring a nested class
in
C++?
Q4. A. What are the syntactic rules to be avoid ambiguity
in multiple
inheritence?
B. Explain the operation of overloading of an assignment
operator.
Q5. A. Explain how the virtual base class is different from
the
conventional base classes of the opps.
B. Explain how an exception handler is defined and invoked
in a
Program.
Q6. A. What is a binary file? List the merits and demerits
of the binary
file usagein C++.
B. Write short notes on Text Manipulation Routines.
C. Write bites in Turbo c++ Header ("Include") Files.
Java
All the questions are compulsory. The first five questions
shall be of 16 marks each and the last question shall be of
20 marks.
Q1. A. Write note on "The class path Environment Variable".
B. Which are different kinds of source code?
Q2. A. How to create an interface?
B. Why convert an applet to an application?
Q3. A. How to use Media tracker Class.
B. How to use string tokenizer class.
Q4. A. Explain the overview of UDP messaging.
B. Difference between SQL Exception class and SQL Warning
class.
Q5. A. How to create com object in Java?
B. Write short notes on "The properties class"
Q6. A. When object is created and destroyed?
B. Explain the JDB in depth & command line.
C. Write short notes on Web Sites.
MULTIMEDIA
All the questions are compulsory. The first five questions
shall be of 16 marks each and the last question shall be of
20 marks.
Q.1 Write a C language program to perform CCITT group 3
compression. If possible, scan some images and use your
program to compress the images. What kind of compression
did you achieve?
Q2. How does a magneto-optical technology differ from WORM
technology? Explain the differences in the manner in which
you would use them for a multimedia system.
Q3. What network considerations would you contemplate in
designing an enterprise-wide multimedia system which
supports fully distributed integrated messaging, sharing of
corporate multimedia information databases, and custom
business process applications?
Q4. Explain the difference between the various types of
multimedia object servers. How would you set up
hierarchical storage for a large distributed organization?
Q5. Explain the role of each type of server required in a
multimedia system and the type of storage media that should
be used for it.
Q6. How do your decisions affect the design? Would
different decisions on network technologies and object
server technologies result in a different solution?
OPERATING SYSTEM
All the questions are compulsory. The first five questions
shall be of 16 marks each and the last question shall be of
20 marks.
Q1. What is an interrupt? How are multiple interrupts dealt
with?
Q2. Explain the difference between a MONOLITHIC KERNAL and
a MICROKERNAL?
Q3. List reasons why a Mode switch between threads may be
cheaper than a Mode switch between processes.
Q4. What is the difference among deadlock avoidance,
detection and prevention?
Q5. What items of information about a task might be useful
in real time scheduling?
Q6. Discuss some of the reasons for implementing process
migration ?
How is the process address space handled during process
migration?
WEB APPLICATIONS
All the questions are compulsory. The first five questions
shall be of 16 marks each and the last question shall be of
20 marks.
Q1. Explain Java script in Web pages?
Q2. Explain the advantages of Java script.
Q3. Write the Properties of HTML object.
Q4. How a JavaScript enabled browser handles the document
object?
Q5. What are cookies?
Q6. Explain the process of controlling the Program flow in
Pearl.