image

Solution of Assignment Synopsis & Project Dissertation Report


Note: ⇩    Fill the Name, Email and Mobile to get unlock the priclist...!!!!

PRODUCT DETAILS

Online-Typing-and-Filling

Title Name Amity Solved Assig Introduction to Object Oriented Programming and C++
University AMITY
Service Type Assignment
Course B.Sc-(IT)
Semester Semester-IV Course: B.Sc-(IT)
Short Name or Subject Code Introduction to Object Oriented Programming and C++
Commerce line item Type Semester-IV Course: B.Sc-(IT)
Product Assignment of B.Sc-(IT) Semester-IV (AMITY)
Price

PRICE INR

Click to View Price
Download File (Purchase the product for download...!!!)

Solved Assignment


  Questions :-

                                                                                                             SUB-Introduction to Object Oriented Programming and C++

SECTION A

1  (a) Describe the data types supported by C++. 

(b) Write a program to arrange the given set of numbers in ascending order using pointer.

2.  What is structure in C++? Why we use structure? Write a program by using structure

3. (a) Explain the loop structures available in C++.

(b) Write a program to print prime numbers between two limits

4 (a) Explain the different types of inheritance supported by C++. 

(b) When do you use a virtual function? Explain with suitable example

5 (a) What is Compile time polymorphism? Explain with an example

(b) Write a program to perform complex number arithmetic operations using operator overloading

6 (a) Explain the use of pointers in C++. 

b) Create a class MAT of size m x n. Define all possible matrix operations for MAT type objects

7 (a) What is a friend function? What are the merits and demerit of using friend  function?

(b) Explain the different types of constructors in C++

8 (a) Describe the basic concepts of object-oriented programming

(b) Illustrate with an example, how the endl and setw manipulator works?

 

 

SECTION B

  1. Write a program in C++ to count the number of words in a line of text
  2.  How will you transfer values from derived class constructor to base class constructor? Explain with suitable illustration

 

 

 

SECTION C

Question No: 1

Which of the following is the Boolean operator for logical-and?

  1. &
  2. &&
  3. |
  4. |&

           

Question No: 2

How long does this loop run: for(int x=0; x=3; x++)

  1. Never
  2. Three times
  3. Forever
  4. None of above

 

Question No: 3

Which of the following is not a looping statement in C?

  1. while
  2. until
  3. do

    4. if

 

 

Question No: 4

Which of the following is not a jump statement in C++? 

  1. break
  2. goto
  3. exit
  4. switch

 

 

Question No: 5

Which of the following is selection statement in C++?

  1. break
  2. goto
  3. exit
  4. switch

 

 

Question No: 6

The difference between while structure and do structure for looping is--

  1. In while statement the condition is tested at the end of first iteration
  2. In do structure the condition is tested at the beginning of first iteration
  3. The do structure decides whether to start the loop code or not whereas while statement decides whether to repeat the code or not
  4. In while structure condition is tested before executing statements inside loop whereas in do structure condition is tested before repeating the statements inside loop

 

 

Question No: 7

Looping in a program means--

  1. Jumping to the specified branch of program
  2. Repeat the specified lines of code
  3. Both of above
  4. None of above

 

Question No: 8

The “return 0;” statement in main function indicates--

  1. The program did nothing; completed 0 tasks
  2. The program worked as expected without any errors during its execution
  3. Not to end the program yet.
  4. None of above

 

 

Question No: 9

The size of following variable is not 4 bytes in 32 bit systems 

  1. int
  2. long int
  3. short int
  4. float

 

 

Question No: 10

What punctuation is used to signal the beginning and end of code blocks?

  1. { }
  2.   -> and <-
  3.  BEGIN and END
  4.  ( and )

 

 

Question No: 11 

Which of the following is not a reserve keyword in C++? 

  1. Mutable
  2. Default
  3. Readable
  4. Volatile

 

Question No: 12 

Identify the correct statement regarding scope of variables. 

  1. Global variables are declared in a separate file and accessible from any program.
  2. Local variables are declared inside a function and accessible within the function only.
  3. Global variables are declared inside a function and accessible from anywhere in program
  4. Local variables are declared in the main body of the program and accessible only from functions.

 

Question No: 13

If you use same variable for two getline statements. 

  1. Both the inputs are stored in that variable
  2. The second input overwrites the first one
  3. The second input attempt fails since the variable already got its value
  4. You can not use same variable for two getline statements

 

Question No: 14

To increase the value of c by one which of the following statement is wrong? 

  1. c++;
  2. c = c + 1;
  3. c + 1 => c;
  4. c += 1

 

 

Question No: 15

When following piece of code is executed, what happens?

b = 3;

a = b++;

  1. a contains 3 and b contains 4
  2. a contains 4 and b contains 4
  3. a contains 4 and b contains 3
  4. a contains 3 and b contains 3

 

Question No: 16

The result of a Relational operation is always--

  1. Either True or False
  2. Is less than or is more than
  3. Is equal or less or more
  4. All of these

 

Question No: 17

Which of the following is not a valid relational operator 

  1. ==
  2. =>
  3. >=
  4. >=

 

Question No: 18

What is the final value of x when the code int x; for(x=0; x<10; x++) {} is run?

  1. 10
  2. 9
  3. 0
  4. 1

 

Question No: 19

When does the code block following while(x<100) execute?

  1. When x is less than one hundred
  2. When x is greater than one hundred
  3. When x is equal to one hundred
  4. While it wishes

 

Question No: 20

Which is not a loop structure?

  1. for
  2. do while
  3. while
  4. repeat until

 

Question No: 21

How many times is a do while loop guaranteed to loop?

  1. 0
  2. Infinitely
  3. 1
  4. Variable

 

Question No: 22

What punctuation ends most lines of C++ code?

  1. . (dot)
  2. ; (semi-colon)
  3. : (colon)
  4. ´ (single quote)

 

 

Question No: 23

Which of the following is a correct comment?

  1. */ Comments */
  2. ** Comment **
  3. /* Comment */
  4. {Comment}

 

Question No: 24

 Which of the following is not a correct variable type?

  1. float
  2. real
  3. int
  4. double

 

Question No: 25

Which of the following is the correct operator to compare two variables?

  1. :=
  2. =
  3. equal
  4. ==

 

 

Question No: 26

A variable is/are--

  1. String that varies during program execution
  2. A portion of memory to store a determined value
  3. Those numbers that are frequently required in programs
  4. None of these

 

Question No: 27

Which of the following can not be used as identifiers?

  1. Letters
  2. Digits
  3. Underscores
  4. Spaces

 

Question No: 28

Which of the following identifiers is invalid?

  1. papername
  2. writername
  3. typename
  4. printname

 

 

Question No: 29

Which of the following can not be used as valid identifier?

  1. bitand
  2. bittand
  3. bittand
  4. band

 

 

Question No: 30

The difference between x and ‘x’ is--

  1. The first one refers to a variable whose identifier is x and the second one refers to the character constant x
  2. The first one is a character constant x and second one is the string literal x
  3. Both are same
  4. None of above

 

 

Question No: 31

Which of the following is not a valid escape code?           

  1. v
  2. f
  3. w

                       

Question No: 32

The file iostream includes--    

  1. The declarations of the basic standard input-output library.
  2. The streams of includes and outputs of program effect.
  3. Both of these
  4. None of these

                       

Question No: 33

There is a unique function in C++ program by which all C++ programs start their execution--           

  1. Start()
  2. Begin()
  3. Main()
  4. Output()

           

Question No: 34

Every function in C++ are followed by--      

  1. Parameters
  2. Parenthesis
  3. Curly braces
  4. None of these        

 

 

Question No: 35

Every statement in C++ program should end with--         

  1. A full stop (.)
  2. A Comma (,)
  3. A Semicolon
  4. A colon

                       

Question No: 36

Which of the following statement is true about preprocessor directives?           

  1. These are lines read and processed by the preprocessor
  2. They do not produce any code by themselves
  3. These must be written on their own line
  4. They end with a semicolon

                       

 

Question No: 37

Which of the following header file does not exist?

     

      

Question No: 38

A block comment can be written by--

           

 

Question No: 39

When writing comments you can--

  Answers :-

Only after macking the payment you would be able to see the answer...!!!

Review

Average user rating

4.8 / 5

Rating breakdown

5
80% Complete (danger)
1
4
80% Complete (danger)
1
3
80% Complete (danger)
0
2
80% Complete (danger)
0
1
80% Complete (danger)
0

January 29, 2015
This was nice in buy
Assignment from solve zone is probably one of the first preference of students.

October 09, 2016
This was nice in buy
I recommend a website that was really helpful throughout your session.

March 19, 2017
Some day ago
This was nice in buy
This was good in buy . I found all the answer correct and meaningful and had scored good marks
Back to top