Search Header Logo

C Basics 2

Authored by Ashish Kumar

Information Technology (IT)

University

Used 1+ times

C Basics 2
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

Which one is correct declaration of a variable-

int number1;

int number 1;

int number1 number 2;

int 123;

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Number of keywords in C are?

30

32

31

33

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one is right-

int a = 10, b =5;

int a = b;

int a; b;

int a, a;

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

which one is correct?

int a, b;

scanf("%d,%d",&a,&b);

int a, b;

scanf("%d%d",a,b);

int a, b;

scanf("%d%d",&a, &b);

int a, b;

scanf("Enter numbers %d %d", &a, &b);

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Is both the statements are equivalent?

int a = 10, b = 20;

and

int b = 20, a = 10;

Yes

No

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is the following statement correct?

int a = b = c = 20;

Yes

No

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Is the following statement correct?

int a, b, c;

a = b = c = 20;

Yes

No

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?