TELANGANA SOCIAL WELFARE RESIDENTIAL DEGREE COLLEGE FOR A) int arr[];
WOMEN-ARMOOR B) int arr;
I MPCS,MSTCS I-SEM II -INTERNAL ASSESMENT C) arr int[];
_______________________________________________________________ D) array int;
Subject : Programming in C Max Marks: 15m 9. Which of these is a valid declaration of a char? [ ]
Name ______________________________
A) char ch = 'A';
Hall Ticket Number_____________________________
[Link] CHOICE QUESTIONS 10×1/2=5M B) char ch = "A";
1. Which of the following are features of java ? [ ] C) char ch = A;
A) Object-oriented D) char ch = 'AB';
B) Compiled and Interpreted 10. What is the output of this code? [ ]
C) Platform Independent for (int i=1;i<=3;i++){
D) None of the Above [Link](i + " ");
2. JDK stands for ? [ ] }
A) Java Development kit B) Java Doodle kit A) 012
C) Java Developing kit D) All of the above B) 123
3._________ are the variables that are declared inside the methods? [ ] C) 1 2
A) Class variables B) Instance variables D) 2 3 4
C) Local variables D) Global variables II. Fill-in-the-blank questions10×1/2=5M
[Link] is the output of this code 1.__________statement can be used to exit from the loop.
My class{ 2.__________is an instance of a class.
Public static void main (String args[ ] ){ [Link] stands for_________________________
[Link](“Hi”); 4. A class can be declared by using _____________keyword.
}} ? [ ] [Link] function of java compiler is to translate the source code into ____________.
[Link] method is used to find the length of the string___________
A) hi B) compile time error C) Hii D) Hi 7.A sequence of characters together is called as______________
5..Which of the following is the correct syntax of inheritance in Java? [ ] [Link] _____________ keyword is used to import a package.
A) class A extends B 9.An________ is a collection of homogeneous data items referred by a common name.
B) class A inherits B [Link] __________ statement is used for decision maikingmaking.
C) class A derived B
D) class A base B [Link] THE FOLLOWING QUESTIONS 5M
6. Which keyword is used for inheritance in Java? [ ] [Link] is constructor ?
[Link] type casting?
A) super
[Link] Method overloading ?
B) extends [Link] Method overriding ?
C) implements 4. Define loop ?
D) inherit . [Link] is the purpose of variable ?
8. Which is the correct way to declare an array in Java? [ ]