programming languages Online Quiz - 27
Description: programming languages Online Quiz - 27 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Default layout for frame
Check whether the syntax of the piece of code is correct: text.setBackGround(color.Yellow);
Code: FILE *f = fopen( fileName, "r" ); readData( f ); if( ???? ) { puts( "End of file was reached" ); } Which one of the following can replace the ???? in the code above to determine if the end of a file has been reached?
Which one of the following statements allocates enough space to hold an array of 10 integers that are initialized to 0?
Which one of the following C operators is right associative?
Code: #include int i; void increment( int i ) { i++; } int main() { for( i = 0; i < 10; increment( i ) ) { } printf("i=%d\n", i); return 0; } What will happen when the program above is compiled and executed?
char ** array [12][12][12]; Consider array, defined above. Which one of the following definitions and initializations of p is valid?
Code: char *ptr; char myString[] = "abcdefg"; ptr = myString; ptr += 5; What string does ptr point to in the sample code above?
time_t t; Which one of the following statements will properly initialize the variable t with the current time from the sample above
Code: char* myFunc (char *ptr) { ptr += 3; return (ptr); } int main() { char *x, *y; x = "HELLO"; y = myFunc (x); printf ("y = %s \n", y); return 0; } What will print when the sample code above is executed?
int z,x=5,y=-10,a=4,b=2; z = x++ - --y * b / a; What number will z in the sample code above contain?
What number is equivalent to -4e3?
Which one of the following is not written in Delphi?
Find out the odd one.
Which compiler directive controls whether the reserved word 'string' represents a short string or a long string?
Ultimate base class of all Objects and Components.
Components can only be allocated on the -----
Property can be pass as a var parameters. Judge the statement.
What is the ordinal value of 'nodefault' storage specifier of a property?
TButton caption can be left aligned. Judge the comment.