Systems

Systems

University

33 Qs

quiz-placeholder

Similar activities

IT-OOPRGO21 PRELIM

IT-OOPRGO21 PRELIM

University

35 Qs

AP CS A unit 1

AP CS A unit 1

11th Grade - University

36 Qs

C Quiz 2

C Quiz 2

University

30 Qs

TECH - C

TECH - C

University

30 Qs

Coding Club_SNSCE Quiz (28-04-2023)

Coding Club_SNSCE Quiz (28-04-2023)

University

30 Qs

BUG@MASTER

BUG@MASTER

University

30 Qs

C Questions for BCA & BSc

C Questions for BCA & BSc

University - Professional Development

30 Qs

C++ Programming Quiz sesi (ii) 2023/2024

C++ Programming Quiz sesi (ii) 2023/2024

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?