C++ Introduction

Description

Quiz contains basic C++ Quesiions
REZO KTM
Quiz by REZO KTM, updated more than 1 year ago
REZO KTM
Created by REZO KTM about 6 years ago
18
0

Resource summary

Question 1

Question
C++ was developed by

Question 2

Question
C++ Language was initially called as
Answer
  • B Lnaguage
  • Simula67
  • C with Classes
  • CPP

Question 3

Question
C++ is a
Answer
  • Assembly language
  • Object - Oriented Language
  • Procedure - Oriented Language
  • Object - Base Language

Question 4

Question
The Wrapping up of data and functions into a single unit is known as
Answer
  • Data Abstration
  • Inheritance
  • Polymorphism
  • Data Encapsulation

Question 5

Question
An Object is a Variable of Type
Answer
  • integer
  • Class
  • Structure
  • Object is not a variable

Question 6

Question
What is inheritance?
Answer
  • It is refer to the act of representing essential features without including background details or Exaplantion
  • User - defined data type
  • ability to take more than one form
  • Is the process by which objects of one class acquire the properties of another class

Question 7

Question
A C++ Program may not have the main( ) funtion
Answer
  • True
  • False

Question 8

Question
A C++ Program may have more than one main( ) funtion
Answer
  • True
  • False

Question 9

Question
The default return type of main( ) is
Answer
  • void
  • int
  • char
  • class

Question 10

Question
Find the invalid variable declaration
Answer
  • int BCA
  • int bca_2017
  • int 2017_bca
  • int bca

Question 11

Question
A Class is a
Answer
  • Primary data type
  • Derived Data type
  • User Defined data type
  • It is not a Data type

Question 12

Question
An array is a
Answer
  • Derived data type
  • Primary data type
  • User - defined data type
  • it is not a data type

Question 13

Question
void main() { int a=0; int *b; b=&a *b=100; cout<<a; } What will be the output of the program?
Answer
  • 0
  • Error
  • 100
  • a

Question 14

Question
Which one of the following is a Relational Operator?
Answer
  • &&
  • <=
  • %
  • |

Question 15

Question
Which one of the following is an Exit controlled Loop
Answer
  • Do-While Loop
  • While Loop
  • For Loop
  • None
Show full summary Hide full summary

Similar

Data Types
Jacob Sedore
Mapa Conceptual - Arreglos
ciroivan94
Examen POO C++ Final 1er Trimestre
kamyacademy
Vector
Ariel Sanchez
FEH C/C++ Quiz
Jared Sherrick
ITC Quiz 1
Ahmad Bilal0467
3. Сокеты Беркли. Мультиплексирование.
Sergei Fomin
OOP Phase Test (Summer)
b3014292
Mapa conceptual - Palabras reservadas
Giulio Gagliardi
COMP 206 Unit 3: The C in C++
Adriana Vincelli-Joma