Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CSCE 110 EXAM STUDY QUESTIONS AND ANSWERS

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
03-11-2025
Written in
2025/2026

CSCE 110 EXAM STUDY QUESTIONS AND ANSWERS

Institution
Csce 110
Course
Csce 110

Content preview

CSCE 110 EXAM STUDY QUESTIONS
AND ANSWERS
What is the output of the following code?

print('abc', end with = 'period')

print('def', end = '*')

print('xyz') - ANSWER-'abcperioddef*xyz'

What is the output of the following code?

x = 5 + 2**3 // 3 - ANSWER-7

Which ones are valid variable names?

1. ____

2. 2abc00

3. false

4. all_$200

5. Num_of_students

6. - ANSWER-1, 3, 4, 5, 6

What is the output of this code?

a_list = ['a', 10, 1.23, 'Tom']

b_tuple = (1, 2, 3, 4, 5, 6)

print(a_list.index('Tom') + b_tuple.index(5) - ANSWER-7

When opening a file with the mode 'w' and if the file does NOT exist, what
happens? - ANSWER-The file is created

The name used to refer to the current instance in a class - ANSWER-self

what is an input converted to? - ANSWER-a string

what is the output of this code>

class Student:

.def __init__(self, name, id):

, .self.name = name

.self.id = id

.def print_info(self, address):

.self.address = address

.print(self.name)

.print(self.id)

.print(self.address)

s1 = Student('Tom Smith', 'G001')

s1.print('123 Main St') - ANSWER-Tom Smith

G001

123 Main St

what is the output for this code?

a_list = [-10, 10, -20, 20, -30, 30]

b_list = [i*10 if i > 0 else i + 10 for i in a_list]

print(b_list) - ANSWER-[0, 100, -10, 200, -20, 300]

The syntax for invoking a class method is the same as the syntax for calling
a function. - ANSWER-False

dict1 = {'a': 10, 'b': 20, 'c': 30}

dict2 = {'c': 30, 'a': 10, 'b': 20}

print(dict1 != dict2) - ANSWER-False

Class methods are defined within a class and perform some action helpful to
that specific type of object. - ANSWER-True

What is the output of the following code?

a = [1, 2, 3, 4]

print(a * 2) - ANSWER-[1, 2, 3, 4, 1, 2, 3, 4]

What is the output of the following program?

a = list('abcdefg')

Written for

Institution
Csce 110
Course
Csce 110

Document information

Uploaded on
November 3, 2025
Number of pages
11
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EduSprint Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
41
Member since
2 year
Number of followers
5
Documents
6637
Last sold
2 days ago
STUDY_STASH

4.3

6 reviews

5
4
4
0
3
2
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions