Programming Language

Answer all questions carefully. After submission, you will see a detailed result and answer review.

Question 1
Which of the following for loops will be an infinite loop?
Question 2
Which of the following blocks execute compulsorily whether an exception is caught or not.
Question 3
What will be the output after the following statements?
x = 'python job interview'
print(x.title())
Question 4
_________ literal is used to Create a Values of the integral types byte, short, int, and long.
Question 5
What is the result of compiling and running the following code?
class Base{
        private Base(){
                System.out.print("Base");
        }
}
public class test extends Base{
        public test(){
                System.out.print("Derived");
        }
        public static void main(String[] args){
                new test();
        }
}
Question 6
Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class.
Question 7
What will be the output after the following statements?
x = True
y = False
print(not y)
Question 8
What will be the output of the program?

#include<stdio.h>

int main()
{
    const int i=0;
    printf("%d\n", i++);
    return 0;
}
Question 9
Which one of the following function is capable of reading a specific number of characters form a file?
Question 10
Select from among the following character escape code which is not available in Java.