Java and C
Description: Java and C | |
Number of Questions: 15 | |
Created by: Vijay Puri | |
Tags: Java and C Java/Oracle /C/C++ Arrays and Pointers Operators and Expression Data Types Variables and Storage Classes |
Which of the following accessibility modes in Java does not allow a method to access the data members from the non-subclass of the same package?
Which of the following methods of Iterator class throws NoSuchElementException, if the next element does not exist?
Which of the following Exception classes in Java is used to deal with an exception, where an assignment to an array element is of incompatible type?
Which of the following methods is used in Thread class to resume the execution of a Thread class?
Which of the following methods in Java is used to identify that the input argument is a letter?
Which of the following methods in StringBuffer class concatenates two strings of different types to the end of the invoking string object?
Which of the following methods of Class returns the complete name of the class or interface of the invoking object?
Consider the following C statement. int a = 5; printf(a = %usizeof(a)); What would be the output of the above C code?
Consider the following C statements. int i,alpha = 65; char ch[27]; for(i = 0;i<2;i++) { ch[i] = alpha; alpha = alpha + 1; } printf(!!!^!!!%s!!!^!!!,ch); What would be the output of the above C code?
What would be the value of variables n and m in the following C code? int n, m; n = - 10; m = - n + 5; printf(!!!^!!!n = %dnm=%d!!!^!!!,n,m);
What would be the output of the following C statement? char ch; ch = 'A';ch = - ch + 'a'; printf(!!!^!!!ch = %d!!!^!!!,ch);
What would be the value of the following C code? float a; a = floor(6.523); printf(!!!^!!!a = 0.2f!!!^!!!,a);
By default, the floating-point value displays ______________ digits after the decimal point.
Consider the following C statement. int a = 3,b = 2; a+ = b++; printf(!!!^!!!a = %d!!!^!!!,a); What would be the value of 'a'?
Which of the following methods in Thread class, checks that the thread is a daemon thread?