programming languages Online Quiz - 254
Description: programming languages Online Quiz - 254 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
char * Name[] = { "Ritesh", "Kumar" "Singh", "Happy", "Bittoo" "Roshan", "Go", }; How many elements does the array dwarves (declared above) contain?
void Free( struct node *ptr ) { while( ptr) { ???? } } Which one of the following can replace the ???? for the function above to release the memory allocated to a linked list?
int n = 0; for ( ; ; ) { if (n++ == 5) break; continue; } printf("x=%d\n", x); What will be printed when the sample code above is executed?
struct customer *p= malloc( sizeof( struct customer ) ); Given the sample allocation for the pointer "p" found above, which one of the following statements is used to reallocate ptr to be an array of 10 elements?
Which one of the following will declare a pointer to an integer at address 0x100 in memory?
Sockets provide an interface for programming networks in which layer?
Socket – based communication is programming language independent.
If a client is run, when the server is not up
The assigned port at the server can be obtained in the client side by
Which one of the following is not marker interface?
Which algorithm is used in thread scheduling?
Which modifier tells JVM to avoid object persistence during serialization?
What is the super class of Hashtable?
Main is the only thread that runs when a Java program is started?
Which of the following does not guarantee the order of data storage will be constant over a period of time?
Iterator for a collection will update along with the collection, when it is modified and give the updated one while traversing.
What is the result of compiling and running the following program? import java.util.Formatter; class Format2 { public static void main(String[] args) { String s="hello123"; Formatter f=new Formatter(); f.format("%S",s); System.out.println(f); } }
What is the result of compiling and running the following code ? 1. StringBuffer s1=new StringBuffer("hello"); 2. StringBuffer s2=new StringBuffer("hello"); 3. Float f1=9.0F; 4. Double f2=9.0; 5. System.out.print(f1.equals(f2)); 6. System.out.print(s1==s2); 7. System.out.print(s1.equals(s2));