Question 1
Which of the given examples is older equivalent of the following function declaration?
void f(int n, int m) { return n * m; }
  
void f(int n, m) { return n * m; }

void f(n, m) int, int { return n * m; }

void f(int, int) n,m { return n * m; }
Correct!

void f(n,m) int n; int m; { return n * m; }

Question 2
/ 1 pts
An empty pair of parentheses put in function declaration denotes that the function:
  
should be invoked without any arguments


should be invoked with no more than three arguments
Correct!
  
may be invoked with any number of arguments

  
should be invoked with exactly one argument


Question 3
/ 1 pts
The use of trigraphs may be necessetry if:
Correct!

the encoding system used by your hardware doesn't contain some of needed symbols

you write a program for a non‑Latin writing systems like Kanji

your hardware is too old to adopt modern removalble media

you write a program for a non‑English speaking customers

Question 4
/ 1 pts
The term "EBCDIC" refers to data of type
  
double

Correct!
  
char

  
float

  
void


Question 5
/ 1 pts
The following statement:
%:include <stdio.h>
Correct!
  
contains digraph

  
contains specialized preprocessor directive

  
is invalid

  
contains reserved identifiers


Question 6
/ 1 pts
Which of the following statements is true?

trigraphs are not recognized instide string literals, digraphs are

both trigraphs and digraphs are not recognized instide string literals
Correct!

trigraphs are recognized instide string literals, digraphs aren't

both trigraphs and digraphs are recognized instide string literals

Question 7
/ 1 pts
A hardware using little‑endian representation will store a 16 bit long int value equal to 17 as (bytes at lower addresses are presented first, all bytes in hex):
Correct!
  
11 00

  
01 01

  
10 10

  
00 11


Question 8
/ 1 pts
If a function does not return to its invoker, is should be declared with the following specifier:
  
_noreturn
Correct!
  
_Noreturn
  
noreturn
  
Noreturn

Question 9
/ 1 pts
The atexit() function:

may not be invoked when the exit() function is utilized
  
may not be invoked more than once


may not be invoked when the _Exit() function is utilized
Correct!
  
may be invoked more than once


Question 10
/ 1 pts
The _Pragma keyword may be used in the following syntax context:
Correct!
  
_Pragma( string_literal )
  
_Pragma( integer_constant )
  
_Pragma( variable_name )
  
_Pragma( )

Question 11
/ 1 pts
Using the older style of function declaration (like below) is:
float sinf(x) float x; { ... }
  
a matter of trafidion and good taste


very convenient as it is more consise than moder style
Correct!

very dangerous as compiler checks neither the number of aguments nor their types
  
higly recommended as it is more elegant


Question 12
/ 1 pts
The two following declarations of main() function:
int main(void) { ... }
int main() { ... }
  
are the same

  
are not the same but are equivalent


aren't equivalent and the former is highly recommanded
Correct!

aren't equivalent and the latter is highly recommanded

Question 13
/ 1 pts
The result of the following expression:
int n = 'z' 'a';
Correct!

depends on encoding system used by specific hardware platform
  
is always 25

  
is always 27

  
is always 26


Question 14
/ 1 pts
The following symbol may be (in certain circumstances) taken as an equivalent of:
??-
  
a bar

Correct!
  
a tilde

  
an underscore

  
a hash


Question 15
/ 1 pts
The following symbol may be (in certain circumstances) taken as an equivalent of:
<:
  
a parenthise

  
a hash

Correct!
  
a bracket

  
a tilde


Question 16
/ 1 pts
Which of the following statements is true?

trigraphs are not recognized inside string literals, digraphs are

both trigraphs and digraphs are recognized inside string literals
Correct!

trigraphs are recognized inside string literals, digraphs aren't

both trigraphs and digraphs are not recognized inside string literals

Question 17
/ 1 pts
If the compiler conforms the ISO standard, its preprocessor defines a symbol named:
Correct!
  
__STDC__

  
__ISOC__

  
__STD_C__

  
__ISO_C__


Question 18
/ 1 pts
Values of _Bool data type behave as:
  
signed long ints

Correct!
  
unsigned ints

  
unsigned long ints

  
signed ints


Question 19
/ 1 pts
The __func__ symbol is a:
  
constant

  
variable

  
function

Correct!
  
reprocessor symbol


Question 20
/ 1 pts
Size of the following structure is:
struct stru {
char a;
double b;
};
  
equal to sizeof(char)+sizeof(double)

Correct!

equal to or greater than sizeof(char)+sizeof(double)


equal to greater of these two: sizeof(char), sizeof(double)

equal to lesser of these two: sizeof(char), sizeof(double)




  1. Modul 01
  2. Modul 02
  3. Modul 03
  4. Modul 04
  5. Modul 05
  6. Modul 06
  7. Modul 07
  8. Modul 08