0

programming languages Online Quiz - 303

Description: programming languages Online Quiz - 303
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Encapsulation is the process of combining data and functions into a single unit called class.

  1. True

  2. False


Correct Option: A

Which of the following statements are true?a. By default,all members of structure are private.b.new and delete operator can be overlaodedc.friend fucntion can overload [],(),= operators.

  1. a only

  2. a and b

  3. b only

  4. none of the above


Correct Option: C

Default return type of functions in C++ is

  1. Void

  2. Int

  3. Bool

  4. none of the above


Correct Option: B

Which of the following statement/statements is /are true ?

  1. Reference types are stored on stack and value types are stored on heap area.

  2. Boxing allows you to convert value types to reference types.

  3. For boxing, during runtime it creates a temporary reference type box for the object on the heap

  4. Unboxing allows you to convert reference type to value type


Correct Option: B,C,D

Which statement is/are correct ?

  1. In C#, we can define one and only one main( ) method .

  2. If there is more than one main( ) method defined in your programme ,the compiler will return compile time error.

  3. If there is more than one main( ) method defined you can explicitely tell the compiler which main( ) method is to be used as the entry point.

  4. All the statements are wrong


Correct Option: B,C

Which of these are correct answers for Identifiers used in C# ?

  1. These are the names that one user gives to variables such as the user defined types(eg;classes and structs)

  2. These are not case sensitive.

  3. Their names must begin with a letter or with a underscore .

  4. They must not contain any numeric characters


Correct Option: A,C

Which statement is/are correct ?

  1. You can not use C# keywords as the Identifiers

  2. abstract is a valid identifier .

  3. _Identifier and \u006fIdentifier are identical

  4. Identifiers can also contain unicode characters.


Correct Option: A,D

Which of the folowing are correct for the Structs and Classes ?

  1. Both are essential templates for which we can create objects.

  2. Both structs and classes are reference types and are stored on heap .

  3. For both struct and class, we use 'new' keyword to declare an instance.

  4. All of the above are correct


Correct Option: A,C

Which of the following are correct ?

  1. Value types are stored in heap and reference types are stored in stack area.

  2. Boxing allows users to convert value types to reference types

  3. Unboxing allows users to convert value type to reference type.

  4. During runtime boxing creates a temporary reference type box for the object on the heap.


Correct Option: B,D

Choose the correct statements for creating a table?

  1. Names are case sensitive.

  2. Names must not be oracle server reserve word.

  3. Table names and column names need not be start with a letter.

  4. We cannot use a column alias in a WHERE clause


Correct Option: B,D

Table may also called as

  1. Relation

  2. Entity

  3. Records

  4. Fields


Correct Option: A,B

The process of modeling data into relational tables is called normalization.

  1. True

  2. False


Correct Option: A

Which of the following are Data manipulation language commands(DML)?

  1. Select

  2. Insert

  3. Update

  4. Create

  5. Delete

  6. Alter


Correct Option: A,B,C,E

At what situation you will create Index?

  1. The column contain wide range of values.

  2. The column contain large number of Null values.

  3. The table is large.

  4. Columns which are not frequently used.


Correct Option: A,B,C

Which operation code allows you to update only specified fields on a record?

  1. EXFMT

  2. UPDAT

  3. EXCPT

  4. WRITE


Correct Option: C

In RPG, how would you reverse the sign of a numeric field?

  1. Z-SUB

  2. MULT -1

  3. 0 SUB

  4. all the above


Correct Option: D

What is the maximum number of files that can be specified in a RPG400 program?

  1. 40

  2. 60

  3. 100

  4. 50


Correct Option: D

CPF4131 message indicates a level check error?

  1. True

  2. False


Correct Option: B
- Hide questions