0

programming languages Online Quiz - 304

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

The file extension associated with Websrvice pages in Asp.net is _____.

  1. .aspx

  2. .ascx

  3. .asmx

  4. .ashx


Correct Option: C

AI Explanation

To answer this question, you need to understand the file extensions used in ASP.NET for different types of web pages.

Option A) .aspx - This option is incorrect because .aspx is the file extension for ASP.NET web forms pages.

Option B) .ascx - This option is incorrect because .ascx is the file extension for ASP.NET user control files.

Option C) .asmx - This option is correct because .asmx is the file extension for ASP.NET web service pages. Web service pages in ASP.NET are used to expose web services that can be consumed by other applications.

Option D) .ashx - This option is incorrect because .ashx is the file extension for ASP.NET generic handler files.

The correct answer is C) .asmx. This option is correct because .asmx is the file extension associated with web service pages in ASP.NET.

A factor in selection of source language is

  1. Programme Skill

  2. Language Availability

  3. Programme capability with other software.

  4. All of the above


Correct Option: D

What is the name given to first generation computer language.

  1. Binary Language

  2. Machine Language

  3. Primary Language

  4. Assembly Language


Correct Option: B

Which are not provided in C

  1. Test and Loops

  2. Grouping and Subprograms

  3. Synchronization and parallel operations

  4. All of the above


Correct Option: C

Which is usually implemented with an interpreters

  1. Assembly

  2. PASCAL

  3. COBOL

  4. BASIC


Correct Option: D

COBOL was designed for

  1. Business

  2. Scientific

  3. Simulation

  4. All of the above


Correct Option: A

What does PROC APPEND do?

  1. appends records anywhere in base dataset

  2. appends records at the start of the base dataset

  3. appends records at the start from the base dataset

  4. appends records at the end of base dataset


Correct Option: D

Why might you use PROC CONTENTS?

  1. Describes the structure of the data set

  2. To find variable datatypes

  3. To find unique values

  4. To find total number of obeservations


Correct Option: A,B

Name 3 main report generating Procedures in Base SAS

  1. proc Report

  2. proc Display

  3. proc GPLOT

  4. proc Print

  5. proc Forms


Correct Option: A,D,E

public class test { public static void main(String [] args) { int x = 5; test t = new test(); t.doStuff(x); System.out.print("main x = " + x); } void doStuff(int x) { System.out.print("doStuff x = " + x++); } } What is the result?

  1. doStuff x = 6 main x = 6

  2. doStuff x = 5 main x = 6

  3. doStuff x = 5 main x = 5

  4. Compilation fails


Correct Option: C

AI Explanation

To answer this question, let's go through the code step by step:

  1. In the main method, an integer variable x is declared and assigned the value of 5.
  2. An instance of the test class is created using the new keyword and assigned to the variable t.
  3. The doStuff method of the test class is called with the argument x.
  4. Inside the doStuff method, the value of x is printed, which is initially 5. Then, the x++ expression is evaluated, which increments the value of x by 1.
  5. The main method continues executing after the doStuff method call and prints the value of x, which is still 5.

Therefore, the output of the program is: doStuff x = 5 main x = 5

So, the correct answer is C. doStuff x = 5 main x = 5.

public static void main(String[] args) { String str = "null"; if (str == null) { System.out.println("null"); } else (str.length() == 0) { System.out.println("zero"); } else { System.out.println("some"); } } What is the result?

  1. null

  2. zero

  3. some

  4. Compilation fails


Correct Option: D

public static void main(String [] args) { int x = 5; boolean b1 = true; boolean b2 = false; if ((x == 4) && !b2 ) System.out.print("1"); System.out.print("2"); if ((b2 = true) && b1 ) System.out.print("3"); } } What is the result?

  1. 2

  2. 2 3

  3. 1 2 3

  4. Compilation fails


Correct Option: B

Choose the correct statement:

  1. A final method in class X can be abstract if and only if X is abstract.

  2. A private static method can be called only within other static methods in class X.

  3. A protected method in class X can be overridden by any subclass of X.

  4. A non-static public final method in class X can be overridden in any subclass of X.


Correct Option: C
  1. Encapuslation

  2. Abstraction

  3. Information Hiding

  4. Polymorphism


Correct Option: B

During Compilation, The function call is replaced by function code for which function?

  1. Virtual functions

  2. Inline functions

  3. Static functions

  4. Friend functions


Correct Option: B

__________ pointer is a type of pointer of any data type and generally takes a value as zero

  1. Vptr

  2. Void

  3. Null

  4. Zero


Correct Option: C

Types of Storage Class Variables

  1. Automatic

  2. Global

  3. Static

  4. External


Correct Option: A,C,D

A __________function is used for accessing the non-public members of a class.

  1. Static

  2. Virtual

  3. Void

  4. Friend


Correct Option: D

The static member functions have a class scope and they have access to the 'this' pointer of the class.

  1. True

  2. False


Correct Option: B

Types of Polymorphism

  1. Operator overloading

  2. Virtual functions

  3. Virtual base class

  4. Function overloading


Correct Option: A,B,D
- Hide questions