Seminar1_EDA25

Seminar1_EDA25

University

10 Qs

quiz-placeholder

Similar activities

Cha-ching 2

Cha-ching 2

1st Grade - University

8 Qs

SESION 6_COMPETENCIAS DIG. IND.

SESION 6_COMPETENCIAS DIG. IND.

University

15 Qs

Operating System - Chapter 1-1

Operating System - Chapter 1-1

University

10 Qs

Computer Science: CPU performance

Computer Science: CPU performance

University

13 Qs

Recording Software Button Identification Quiz

Recording Software Button Identification Quiz

8th Grade - University

10 Qs

Quiz Informatica Jornadas Orientación Asunción

Quiz Informatica Jornadas Orientación Asunción

12th Grade - University

10 Qs

Computer Hardware foundation degree 1

Computer Hardware foundation degree 1

University

12 Qs

001-002

001-002

University

10 Qs

Seminar1_EDA25

Seminar1_EDA25

Assessment

Quiz

Computers

University

Medium

Created by

ARNAU BLANCO

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a variable in C?

int a = 5;

a = 5;

integer a = 5;

declare int a;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of value does `int a = 5;` store by default in C?

An unsigned integer

A signed integer

A decimal number

A character

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does `int a = 4 % 2;` store?

Hint: Remember `%` is the modulus operator.

0

1

2

3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the binary representation of the decimal number 4?

1

10

11

100

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does `int a = 1 << 3;` return in binary?

1

100

1000

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If 2 is 10 in binary, what will `int a = 2 >> 1;" return in binary?

10

100

1

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following code, how do you declare a variable of type Point?

struct Point {

int x;

int y;

};

A) Point p;

B) struct Point p;

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?