stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
CONCEPTS IN C++ extended Flashcards | StudBud
Explore
/
CONCEPTS IN C++ extended
CONCEPTS IN C++ extended
17 terms
·
StudBud Administration
·
47 plays
BASIC CONCEPTS #cpp #programming
Flashcards
17 cards
F
Practice quiz
P
Host live
L
Questions
17
Answers
1
when do you need to create a destructor ?
when you are really upset about your code
when some members are dynamic allocated
everytime
when you use NEW with a local variable
2
int number;
is a variable declaration
is an input statement
is an output statement
is a program
3
which one is wrong ?
int getNumberOfNames(const NamesList& l)
string getName() const;
int& getName() const;
const int member;
4
which sequence is right ?
compilation -> linkage -> execution
compilation-> precompilation -> linkage -> execution
precompilation-> compilation -> linkage -> execution
compilation-> precompilation -> debugage -> execution
5
A memory address is
A step in the program
Where the computer is located
Where a variable is stored
Where the CPU is stored
6
C++ is an example of a
Assembly language
Low-level language
Machine language
High-level language
7
In the .h (or .hpp or .hxx) file, I am not suppose to write :
a class interface
a global function
const int MAX=20;
an inline method
8
From which language did C++ directly evolve?
C
C+
Java
B
9
the wrong one is... ?
int *pa = new int();
int *pa = new int[10];
int *pa=NULL;
int *pa=new int;
10
cout<<"How many items would you want?\n";
is an output statement
is a variable declaration
is a program
is an input statement
11
which statement is wrong ?
pa = *a;
pa = pb;
pa = &a;
*pa = b;
12
cin>>number;
is a variable declaration
is a program
is an input statement
is an output statement
13
C++ statements end with a
Comma
Period
Semicolon
Nothing
14
An algorithm is
A finite set of steps to solve a problem
The inputs and outputs of a program
The part of the computer that does the processing
A complete computer program
15
#include<iostream>
an include directive
is a variable declaration
an executable statement
illegal code
16
The set of instructions that a computer will follow is known as:
Algorithm
Hardware
Program
CPU
17
The exercice about Stack<T> numbers was...
hard (over 4h work)
super hard (6h+ work)
sort of easy
really too much (over 10h work)