Sharda university uzbek

Sharda university uzbek

University

5 Qs

quiz-placeholder

Similar activities

OCS752_CP_MODEL 1_PART B (16.10.2020)

OCS752_CP_MODEL 1_PART B (16.10.2020)

University

10 Qs

B2B: Intro to C

B2B: Intro to C

University

10 Qs

C Pointer

C Pointer

University

7 Qs

C Programming Basics - 003

C Programming Basics - 003

University

10 Qs

C - Pointers

C - Pointers

University

10 Qs

Basics Of C Programming

Basics Of C Programming

University

10 Qs

C program quiz 1

C program quiz 1

University

10 Qs

Operators in C(29/08)

Operators in C(29/08)

University

10 Qs

Sharda university uzbek

Sharda university uzbek

Assessment

Quiz

Computers

University

Hard

Created by

Ramkumar Professor)

Used 6+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code?

#include <stdio.h>

int main()

{ int x = 10, y = 20, z;

z = x + y * 2;

printf("%d\n", z);

return 0;

}

50

60

70

80

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code?

#include <stdio.h>

int main() {

int x = 5, y = 2;

printf("%d\n", x / y);

return 0;

}

2

2.5

2.0

error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code?

#include <stdio.h>

int main() {

int x = 5, y = 2;

printf("%d\n", x % y);

return 0;

}

2

2.5

1

error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the 16-bit compiler allowable range for integer constants?

  1. -3.4e38 to 3.4e38

-32767 to 32768

-32668 to 32667

-32768 to 32767

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following comment is correct when a macro definition includes arguments?

  1. The opening parenthesis should immediately follow the macro name.

  1. There should be at least one blank between the macro name and the opening parenthesis.

  1. There should be only one blank between the macro name and the opening parenthesis.

  1. There should be only one blank between the macro name and the opening parenthesis.