Systems

Systems

University

33 Qs

quiz-placeholder

Similar activities

CodeChef (Secret Snippet)

CodeChef (Secret Snippet)

University

35 Qs

Unit 1 APCSA

Unit 1 APCSA

9th Grade - University

32 Qs

Round_1 (B)| Coding Combat 2.0

Round_1 (B)| Coding Combat 2.0

University

30 Qs

c programming

c programming

University

30 Qs

Structures and Pointers in C

Structures and Pointers in C

University

35 Qs

Arrays and Strings in C

Arrays and Strings in C

12th Grade - University

32 Qs

CODEZILLA 2022

CODEZILLA 2022

University

30 Qs

OODP FT1 Assessment Questions

OODP FT1 Assessment Questions

University

30 Qs

Systems

Systems

Assessment

Quiz

Computers

University

Medium

Created by

Dylan Scott

Used 4+ times

FREE Resource

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the binary number '11010110' in hexadecimal?

0x56

0xD6

0xA9

0x7B

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

For IEEE 754, what is the number of bits used for the sign, exponent, and fraction?

1 sign, 7 exponent, 24 fraction

2 sign, 6 exponent, 24 fraction

1 sign, 8 exponent, 23 fraction

1 sign, 8 exponent, 24 fraction

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is negative 7 in 4-Bit Two's Complement?
Hint: +7 is 0111

1000

1111

0111

1001

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following C code snippet?

255

-1

0

Does not compile

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following statements correctly checks if two strings str1 and str2 are equal in C?

if (str1 == str2)

if (strcmp(str1, str2) == 0)

if (str1.equals(str2))

if (*str1 == *str2)

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of a function prototype in C?

To define the body of a function

To declare a function for later use

To initialize variables used in a function

To call a function

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When passing a string to a function in C, what is actually being passed?

The first character of the string

The entire string as a copy

The address of the first character of the string

The length of the string

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?