Search Header Logo

invicta

Authored by sowmya lakskmi

Education

University

invicta
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the problem in the following C declarations?

int func(int); double func(int); int func(float);

A function with same name cannot have different signatures

A function with same name cannot have different return types

A function with same name cannot have different number of parameters

All of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of thr following snippet?

void main()

{

for(int i=0;i<3;i++);

printf("AAC\n");

}

AAC

AAC

AAC

AAC

AAC

AAC

AAC

AAC

AAC

AAC

AAC

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this C code?

  1. #include <stdio.h>

  2. int main()

  3. {

  4. float f = 0.1;

  5. if (f == 0.1)

  6. printf("True");

  7. else

  8. printf("False");

  9. }

true

false

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

C language was developed by ?

  1. Dennis Rechard

  1. Bjarne Stroustrup

  1. Dennis M. Ritchie

  1. Anders Hejlsberg

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

C language is a successor to which language?

B

Basic

  1. Cobol

C++

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the datatype of the var in the below code snippet?

var = 10

print(type(var))

var = "Hello"

print(type(var))

int and str

str and str

int and int

str and int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


What will be the output of the following code snippet?

a = [1, 2, 3]

a = tuple(a)

a[0] = 2

print(a)

[2,2,3]

(2,2,3)

(1,2,3)

Error

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?

Discover more resources for Education