dATATYPES-PART 2

dATATYPES-PART 2

Professional Development

8 Qs

quiz-placeholder

Similar activities

pemrograman dasar

pemrograman dasar

Professional Development

10 Qs

Programação C

Programação C

Professional Development

10 Qs

DAY 1 - C& C++ Assessment _10th June 24

DAY 1 - C& C++ Assessment _10th June 24

Professional Development

10 Qs

Conditional statements

Conditional statements

Professional Development

4 Qs

C programming

C programming

Professional Development

10 Qs

CPR Quiz_chapter 5_structure

CPR Quiz_chapter 5_structure

Professional Development

10 Qs

หน่วยที่ 4 การเขียนโปรแกรมแบบเลือกทำ

หน่วยที่ 4 การเขียนโปรแกรมแบบเลือกทำ

Professional Development

10 Qs

Infoarduino

Infoarduino

10th Grade - Professional Development

10 Qs

dATATYPES-PART 2

dATATYPES-PART 2

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Niranjani Vijayan

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of int in most modern C compilers on 32-bit systems?

4 bytes

2 bytes

8 bytes

Compiler dependent

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type in C is used to store a single character?

char

int

float

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid C data type?

short

long long

byte

long double

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum value that can be stored in an unsigned int on a system where int is 4 bytes?

2^32 - 1

2^31 - 1

2^32

2^31

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword used to declare a floating-point number in C?

int

char

float

double

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?#include <stdio.h>

int main() {

int x = 10;

float y = 5.2;

printf("%d %f", x, y);

return 0;

}

10 5.2

10.0 5.2

10 5.200000

Compiler Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

int main() {

char ch = 'A';

printf("%c", ch + 1);

return 0;

}

A

B

66

65

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

int main() {

float x = 3.5;

printf("%d", x);

return 0;

}

3

3.5

Compiler Error

Undefined behavior