0
Alien head

programming languages Online Quiz - 57

Description: programming languages Online Quiz - 57
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. enum A{A} 2. class E2{ 3. enum B{B} 4. void C(){ 5. enum D{D} 6. } 7. } which statements are true?(Choose all that apply.)
  1. Code compiles

  2. If line 1 is removed the code compiles

  3. If line 3 is removed the code compiles

  4. If line 5 is removed the code compiles

  5. If line 1,3 are removed the code compiles

  6. If line 1,3,5 are removed the code compiles


Correct Option: D,F

public enum days{MON,TUE,WED,THU} String s=null; switch(days.TUE){ case MON:s+="MON"; break; case TUE:s+="TUE"; case WED:s+="WED"; break; default:break; } System.out.println(s);

  1. MON

  2. TUE,WED

  3. THU

  4. Compiletime Error


Correct Option: D

Variables declared inside interface can be..?

  1. public

  2. default

  3. static

  4. final


Correct Option: A,C,D

final and static access specifiers can be used for all kinds of variables

  1. True

  2. False


Correct Option: B

JVM is vendor dependent

  1. Not vendor dependent

  2. Completely vendor dependent

  3. Partial vendor dependent

  4. None of these


Correct Option: B

CPYSPLF copies the spooled file to the data base file.

  1. True

  2. False


Correct Option: A

To extract the information from the specified string the command used is %SST.

  1. True

  2. False


Correct Option: A

UDATE supports two-digit year i.e in the form MMDDYYYY and system date supports four digit year i.e in the form MMDDYY.

  1. True

  2. False


Correct Option: B

What is the use of UNIQUE keyword?

  1. It will select only the field on which the keyword is specified.

  2. It will select only one record.

  3. It will avoid to enter duplicate key values.

  4. None of the above.


Correct Option: C

Where can you specify an indicator in LOKUP operation?

  1. HI

  2. LO

  3. EQ

  4. MQ


Correct Option: C

How many primary files allowed in a program?

  1. two

  2. one

  3. three

  4. four


Correct Option: B

How can you identify End of file in CLP program?

  1. ENDPGM

  2. STRPGM

  3. With the help of MONMSG MSGID(CPF0864) we can identify end of file in clp program.

  4. STRDBG


Correct Option: C

What is the CLP command to access a Query/400?

  1. WRKOUTQ

  2. WRKSPLF

  3. WRKQRY

  4. WRKMBRPDM


Correct Option: C

How do you set the keywords SFLSIZ and SFLPAG if you want the subfile to dynamically expand?

  1. SFLSIZ > SFLPAG.

  2. SFLSIZ < SFLPAG.

  3. SFLSIZ = SFLPAG.

  4. SFLSIZ <> SFLPAG.


Correct Option: A

Which of the following is the commonly used command for debugging?

  1. ENDDBG

  2. STRDBG

  3. WRKMBRPDM

  4. WRKSPLF


Correct Option: B

Spring does not support which of the ORM framework?

  1. True

  2. False


Correct Option: A

..... table will remove all the rows and data in a table but table structure is not removed whereas in ..... table the entire table is removed and moved to recycle bin.

  1. DROP, DELETE

  2. TRUNCATE, DROP

  3. DROP, TRUNCATE

  4. DELETE, DROP


Correct Option: B

How do you achieve interface implementation in VB.NET?

  1. Implements

  2. Uses

  3. Imports

  4. Overrides


Correct Option: A

Which of the following are the valid method of command object

  1. ExecuteNonQuery & ExecuteScalar

  2. ExecuteQuery & ExecuteScalar

  3. ExecuteParameter

  4. None of the above


Correct Option: A

Which is not a collection type in VB.Net

  1. Hashtable

  2. ArrayList

  3. Heap

  4. Stack


Correct Option: C
+ View questions