Search Header Logo

BT_M2_2023

Authored by Smiley Sunshine

Business

University

BT_M2_2023
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following python program can work with ____ parameters.

def f(x):

    def f1(*args, **kwargs):

           print("Technology")

           return x(*args, **kwargs)

    return f1

any number of

0

1

2

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following option leads to the portability and security of Java?

Dynamic binding between objects

Use of exception handling

Bytecode is executed by JVM

The applet makes the Java code secure and portable

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following are NodeJS global objects?

__dirname

__filename

Buffer

All of the above

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Guess the Logo

Real Madrid

Bayern Munich

Paris Saint-Germain

None of the above

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

 What will be the output of the following Java program?

   class leftshift_operator 

    {

        public static void main(String args[]) 

        {        

             byte x = 64;

             int i;

             byte y; 

             i = x << 2;

             y = (byte) (x << 2);

             System.out.print(i + " " + y);

        } 

    }

 0 256

 0 64

 256 0

64 0

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Predict the logo

Allianz

Max Life Insurance

John Hancock

None of these

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Study the following program:

main() 

   char x [10], *ptr = x; 

  scanf ("%s", x); 

  change(&x[4]); 

 change(char a[]) 

 { 

   puts(a); 

 } 

If abcdefg is the input, the output will be

abcd

abc

efg

Garbage

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?