C_ QUIZ1

C_ QUIZ1

University

10 Qs

quiz-placeholder

Similar activities

Redes de computadoras Topologías

Redes de computadoras Topologías

University

10 Qs

Django - WEB50

Django - WEB50

University

12 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

 QUIZ  MS Core Java Quiz-3 2023

QUIZ MS Core Java Quiz-3 2023

University

11 Qs

Dasar Pengenalan Pola 1

Dasar Pengenalan Pola 1

University

15 Qs

ALGORITMO

ALGORITMO

University

10 Qs

Teoria General de los Sistemas IF1300

Teoria General de los Sistemas IF1300

University

10 Qs

PRÁCTICA 02

PRÁCTICA 02

University

13 Qs

C_ QUIZ1

C_ QUIZ1

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Veena Gadad

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type in C is used to store single-precision floating-point numbers?

float

double

long double

int

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When should the 'unsigned' modifier be used with integer data types in C?

When negative values are not allowed.

When negative values are allowed.

It is optional and does not affect the behavior of the data type.

When the range of positive values needs to be extended.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the range of values for the 'char' data type in C when it is declared as 'unsigned'?

0-255

-128 to 127

0 to 127

-32768 to 32767

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

#include <stdio.h> int main() { int x = 10, y = 20; printf("%d", x < y ? x++ : y--); return 0; }

10

11

19

20

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following bitwise operation in C?

unsigned int x = 10, y = 6; unsigned int result = x ^ y;

0

4

14

16

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of z after the following code snippet executes?

float x = 10.5;

int y = 5;

float z = (int)x + (float)y;

10.5

15.5

10.0

15.0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following code:

int x = 10;

char y = 'A';

printf("%d", (int)(x + y));

What will be printed as a result of this code?

75

66

76

Compilation Error

Create a free account and access millions of resources

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?