Question
1) Given the following command line entered at the Linux command prompt $ Myprog1 file1 file2 file3 how many command line arguments will be reported
1)
Given the following command line entered at the Linux command prompt
$ Myprog1 file1 file2 file3
how many command line arguments will be reported by the ARGC variable passed into main in the code for Myprog1?
A- 2 |
B- 0 |
C- 3 |
D- 4 |
2)
An array of structures declared like
struct person people[20];
is considered a homogeneous array.
True |
False |
3)
The overall size of a union variable is the sum of the sizes of all the type declared in the union
True |
False |
4)
which of the following describe the rules required for function overriding? ( more than 2 answer)
A- the functions must have different signatures |
B- the funcitons must be in classes in an inheritance relationship |
C- the functions have to be in unrelated classes |
D- the functions must have the same signatures |
E- the virtual keyword is required |
5)
Which of the following are conditions that describe overloading of a function ( more than 2 answer)
A -the function must be a member of a class |
B- the function signatures must be the same |
C- the function signatures must be different |
D- the function names must be the same |
E- the function names must be different |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started