MCQOPTIONS
Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Testing Subject
General Aptitude
Logical and Verbal Reasoning
English Skills Ability
Technical Programming
Current Affairs
General Knowledge
Finance & Accounting
GATE (Mechanical Engineering)
Chemical Engineering
→
Programming Language (MCQ) questions
→
Algorithms
→
void main() { float x=5,y=2; int result; result=x...
1.
void main() { float x=5,y=2; int result; result=x % y; cout
A.
1
B.
2.5
C.
1.0
D.
Error
Answer» E.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
C++: A collection of generic class and function is called as
Which of the following is the correct way of declaring an array?
By using what from the following can we define member function outside the class?
What does operator overloading mean?
Explain the concept of data hiding
Predict the output for the following program#include< iostream>using namesp std; class B1 { public: B1() { cout
Which of the following are essential features of an object oriented programming language?1. Abstraction and encapsulation.2. Strictly-typed3. Type-safe property coupled with sub-type rule.4. Polymorphism in the presence of inheritance.
Match the following List-1 with List-2List-1 - - - - - - - - - - - - - - - - - - - - - - - - List-2P. Functional - - - - - - - - - - - - - - - - - - 1.Command-based, procedural.Q. Logic - - - - - - - - - - - - - - - - - - - - - - 2.Imperative, abstract data types.R. Object oriented - - - - - - - - - - - - - - - 3.Side effect free, declarative, expression evaluation.S. Imperative - - - - - - - - - - - - - - - - - - -4.Declarative, clausal representation, theorem proving.
Trace the output.#include< iostream.h># define SQUARE(x) x*x inline float square(float y) { return y*y; } int main( ){float a = 0.5, b = 0.5, c, d; c = SQUARE(++a);d = square(++b);cout
C++ : Which of the following statement is correct?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies