Quiz
Code Crasher Prelims
Este quiz tem tempo limite, por isso abre no player de sempre.
Perguntas do quiz (20)
1The process of converting one data type to another is called
- ATranslating
- BCasting
- CCompile
- DDeclaring
2"Use of undeclared variables" is the ___________ type of error
- ALogical
- BException
- CRun-Time
- DCompile-Time
3In List,if no item is selected then the method getSelectedIndex() returns_______________
- A0
- B1
- C-1
- DNULL
4Strings are instances of class String.
- AVerdadeiro
- BFalso
5Which of the following operators are used in conjunction with the "this" and "super" references?
- AThe new operator
- BThe instance operator
- CThe dot operator
- DNone of these
6When a program does not want to handle the exception,the ______________class is used
- AThrows
- Btry -catch
- Cfinally
- DNone of these
7What is the output of the program?
public class Question {
public static void main(String args[]) {
String s1="abc";
String s2="def";
String s3=s1.concat(s2.toUpperCase());
System.out.println(s1+s2+s3);
}
}- Aabcdefabcdef
- BabcdefDEFDEF
- CabcdefabcDEF
- DNone of the above
8Which of the following methods of the Graphics class?
1)darwRect() 2)drawImage()
3)drawPoint() 4)drawString()- A1,2 and 4
- B2,3 and 4
- C1,2 and 3
- D1,3 and 4
9Which of the following are TRUE?
1)The Class class is the superclass of the object class.
2)The Object class is final.
3)The Class class can be used to load the other classes
4)The ClassLoader class can be used to load other classes- A3 and 4
- B1 and 4
- C2 and 4
- D2 and 3
10Which of the following creates a List with 5 visible items and multiple sections enabled?
- Anew List(5,true)
- Bnew List(true,5)
- Cnew List(5,false)
- Dnew List(false,5)
11Understand the given program and answer the following questions?
Int main()
{ int a=5,b;
b=a++;
cout<<b<<a;
return 0;
}
What is the value stored in the variable b?- A4
- B5
- C6
- D7
12 Int main()
{ int x=3,y=4,ctr=2,res=x;
While(ctr<=y)
{
res*=x;
ctr+=1;
}
Cout<<”\n x to the power of y is:”<<res;
return 0;
}
What is the output of the program?- A27
- B64
- C81
- D256
13Reference belongs to which data type?
- Auser defined type
- Bbuilt in type
- Cderived type
- Dnone of this
14Which is not a keyword in c++?
- Athis
- Bprivate
- Cpublic
- Dcreate
15How many bytes for the long double keyword?
- A4
- B8
- C10
- D16
16int main()
{ int x=10,w,z;
w=++x + x++;
z=++x * ++x;
return 0;
}
What is the value stored in z?- A124
- B144
- C169
- D196
17The pointer holds_______________
- Aa) address of the variable
- Bb) value of the variable
- Cc) both (a)&(b)
- Dd)none of the above
18Overloading belongs to which features of OOPs concept ?
- AInheritance
- BPolymorphism
- CEncapsulation
- DData hiding
19Which of the file stream is used to write a file?
- Aostream
- Bfstream
- Cistream
- Dnone of these
20\a is used for _____________
- Abell
- Bnew line
- Chorizontal line
- Dnone of the above
Informações
- Descrição
- Quiz sobre Code Crasher Prelims, criado por prabu .G em 19-09-2017.
- Autor
- prabu .G
- Idioma
- English
- Visualizações
- 60
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz