1/14
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Which of the following statements are correct if a language is strongly typed. Select all that apply.
Type errors are always reported and each name in a program has a single type associated with it.
Which of the following languages is most likely to report a compilation error for the following snippet of code?
int i = 3;
double n, j = 3.0;
n = i + j;
Java
Converting an integer value 5 to a float number 5.0 takes
At least one important machine instruction to perform conversion between data binary formats.
Type checking happens during compilation phase. It reinforces which of the following structural layers?
Contextual
In the C-Style input function scanf(“%d”, &i), what does the character “&” mean?
scanf takes the address of an variable as its parameter.
A data type is defined by (Select all answers that apply)
the operations allowed and the values allowed.
The imperative programming paradigm is popular and is a part of object-oriented computing paradigm, because it ____ (Select all answers that apply).
matches the common culture of doing things by following the step-wise instructions and is based on computer organization and thus is efficient to execute on hardware.
Where is the main() function located in a C++ program?
outside any class
In C++, what function can be used for inputting a string containing spaces?
cin.getline(...);
Which of the following types is a C++ type, but NOT a C type?
bool
What is NOT the purpose (functionality) of the forward declaration (prototype)?
to allow a function to return different types of values
In the memory hierarchy of a computer system, which type of memory is the fastest one?
Registers
Which of the following C assignment statements (assign a value to a variable at the semantic level) will NOT cause a compilation issue?
Assume the array has been declared as: char a[5];
a[0] = 'h';
Which of the following C declarations (contextual level) will cause a compilation issue?
int d[] = {12.24, 47.13};
iven a declaration: char a[] = "Hello World"; What is the size (in bytes) of the array a[]?
12