Lesson 2- Introduction to C++ Programming Flashcards

1
Q

-is a general purpose programming language that includes features of numerous computer programming models like object-oriented, imperative, generic programming and many more.
-is a middle-level programming language (include features of both low-level and high-level programmig languages) .

A

C++

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

An enhancement of the C language, C++ includes an object oriented paradigm. Correct?

A

Yes, it’s TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

____ invented C++ in 1979, as an extension to C, and it was originally called _____?

remember the year

A

Bjarne Stroustrup
and the
C with Classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is C++ used for? (6)

A
  • Software Engineering
  • Operating System Development
  • Graphical User Interface
  • Virtual Reality
  • Blockchain Technology
  • Game Development!!!
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Features of C++? (5)

A
  • Simple
  • Object Oriented
  • Case Sensitive
  • Rich Library
  • Powerful and Fast
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Sample Syntax of C++

A

#include < iostream > //Header File Library
using namespace std; //Standard Library

int main[]{ //Main Function
cout «“Hello World”; //to output/print
return 0; //ends the Main Function
}

oh my

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Variables in C++? (5)

A
  • int
  • double
  • char
  • string
  • bool
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Operators in C++? (5)

A
  • Addition +
  • Subtraction -
  • Multiplication *****
  • Division /
  • Modulus %
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

are used to assign values to variables.

A

Assigment Operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

are used to compare two values (or variables).

A

Comparison Operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

are used to detemine the logic between variables or values.

A

Logical Operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

____ is used to output or display values,
while ____ is used to read or input data

A

cout
and
cin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

C++ is one of the most simple programming languages.
…and C++ provides a structured approach and allows you to design a modular solution by dividing the problem into parts.

Both are TRUE!

A

Simple

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

OOPs are the most important feature of C++ since they enable easier development and maintenance.

TRUE!

A

Object Oriented

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

C++ is a case sensitive, which means that it treats

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly