Search Header Logo

Symposium Round 1

Authored by Dharunkumar V

Engineering

University

Used 29+ times

Symposium Round 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to create a list in Python?

list = {1, 2, 3}

list = [1, 2, 3]

list = (1, 2, 3)

list = <1, 2, 3>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

int main() {

int a = 5;

printf("%d %d %d", ++a, a++, a);

return 0;

}

6 5 7

6 6 7

7 6 7

Output is undefined/implementation dependent

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to create a class in Java?

create

class

new

object

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to include a header file in C?

#include "stdio.h"

#include <stdio.h>

include <stdio.h>

Both A and B are correct

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Java code?

public class Test {

static int x = 10;

static {

x = 20;

System.out.print(x + " ");

}

public static void main(String[] args) {

System.out.print(x + " ");

x = 30;

new Test();

System.out.print(x);

}

{

x = 40;

System.out.print(x + " ");

}

}

20 20 40 30

20 20 30 40

10 20 40 30

20 30 40 40

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of:

print(type(5.0))?

<class 'int'>

<class 'float'>

<class 'double'>

<class 'number'>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is NOT a primitive data type in Java?

int

String

boolean

char

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?