Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CSE 6242 Programming Knowledge Prep: Questions and Answers, Exams of Computer Programming

A series of questions and answers related to programming knowledge in cse 6242. It covers topics such as number representation in different bases (decimal, octal, hexadecimal), binary digit conversion, and character handling in c programming. Useful for students preparing for exams or quizzes in programming courses.

Typology: Exams

2024/2025

Available from 03/13/2025

Fortis-In-Re
Fortis-In-Re 🇺🇸

1

(1)

2.3K documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSE 6242 Programming Knowledge
Prep|Questions and Answers|2025
pf3
pf4
pf5
pf8

Partial preview of the text

Download CSE 6242 Programming Knowledge Prep: Questions and Answers and more Exams Computer Programming in PDF only on Docsity!

CSE 6242 Programming Knowledge Prep|Questions and Answers|

In Java. C or C++ code. when a number begins with a leading O, what do you know about that number: (example: int zzz = 012;) — ANS—-Octal In Java, C or C++ code, when a number begins with a leading Ox, what do you know about that number: (example: int 77% =Ox1 — ANS-Hexadecimal In Java, C or C++ code, when a number begins without a prefix, what do you know aboul that number: (example: int zzz =12;) - ANS—Decimal How many binary digits are necded to represent one hexadecimal digit? - ANS—-4 In C, in your writcline function, you have a loop of printing characters terminating when processing what character: - ANS—-\O Should you print a NULT. character in writcline? - ANS-No Write the hexadecimal value that represents all 1s for 64 bits - ANS- OxPEEE EEE EEE EEE EEE Assuming a 4 bit unsigned word. convert the binary number 0101 to hexadecimal: — ANS—Ox5