programming languages Online Quiz - 54
Description: programming languages Online Quiz - 54 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which of the following denotes file modes that can be used in C program?
Given: 1. class Super { 2. private int a; 3. protected Super(int a) { this.a = a; } 4. } ... 11. class Sub extends Super { 12. public Sub(int a) { super(a); } 13. public Sub() { this.a = 5; } 14. } Which two, independently, will allow Sub to compile? (Choose two.)
What will happen? int main(int argc, char*argv) { char ptr = NULL; free(ptr); return 0; }
Given: 31. // some code here 32. try { 33. // some code here 34. } catch (SomeException se) { 35. // some code here 36. } finally { 37. // some code here 38. } Under which three circumstances will the code on line 37 be executed? (Choose three.)
The code used for denoting unsigned decimal integer in scanf is :
Which of the following differences between malloc and calloc are true? 1) malloc allocates number of bytes passed as argument 2) calloc allocates the product of number of elements multiplied by the size of each element, which are both passed as arguments. 3) both malloc and calloc return void* 4) both malloc and calloc initialize allocated memory to all 0
In theory, which is faster, the call to strcpy or the call to memcpy? #include #include int main(){ char msg[12] = "Hello World"; char buffer1[12]; char buffer2[12]; strcpy(buffer1, msg); memcpy(buffer2, msg, sizeof(msg)); return 0; }
What is the output?int i = 3;if (!i) i++; i++;if (i==3) i+=2; i+=2;printf("%d\n", i);
Which takes the first precedence in evaluation among the following operators?
What gets printed? int i = 3; if (!i) i++; i++; if (i==3) i+=2; i+=2; printf("%d\n", i);
What is the command to display a file in reverse
what is the command to list inode number along its file long listing?
$touch {a}_{b,c} What is the output
How can preserve timestamps of a file while copying
How can we know the type of a file?
mutt is a
How to clear the console?
What is the latest stable version of the linux kernal?
What is the output of the command $sed 's/([a-z]) *([a-z])/\2,\1/' file
Which is not a browser?